![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2007
Location: Atlanta
Posts: 281
Thanks: 0
Thanked 4 times in 3 posts
|
How can I create a multi Condition MRO?
Example: I want to get the Bar Number for the Most Recent Occurence that StochasticsFast.D was below 20 AND Rising. This does not work int barsAgo = MRO(delegate {return StochasticsFast(3, 8).D < 20 && Rising( StochasticsFast(3, 8).D ) ;}, 1, 20); |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
See if this works
Code:
int barsAgo = MRO(delegate {return StochasticsFast(3, 8).D[0] < 20 && Rising(StochasticsFast(3, 8).D);}, 1, 20);
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NinjaScript Condition Possible? | jason83 | General Programming | 3 | 01-20-2008 06:41 PM |
| Multi Time Frame/Multi Instrument? | GreenTrade | Strategy Development | 3 | 01-14-2008 02:24 PM |
| Condition Builder | OUFan | Strategy Development | 6 | 12-19-2007 02:05 PM |
| Need help with a condition to check the angle of an MA | NinjaTrader_Ray | Strategy Development | 2 | 06-08-2007 02:00 PM |
| Multi strategies, multi superDOM windows | N40K | Miscellaneous Support | 1 | 12-20-2004 01:51 AM |