![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Mar 2012
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
|
I'm fooling around with a strategy and using a higher time frame to filter entries. Once there is an established trend on my higher time frame thats the direction i trade in on my lower time frame. I'm using renko bars for chart types and i cant seem to figure out why i'm getting dozens of entries on a single bar. I want 5 higher closes on my HTF and then i just want one bar on my lower time frame to do the same, but for some reason this enters 100's of trades on certain bars.
Appreciate the help. Code:
if (Closes[1][0] > Closes [1][1] && Closes[1][1] > Closes [1][2] && Closes[1][2] > Closes [1][3] && Closes[1][3] > Closes [1][4] && Closes[0][0] > Closes [0][1] ) |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello glc3344,
To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email. I look forward to assisting you further. *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
Joydeep M.
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MTF Indicator | ryebank | Indicator Development | 16 | 09-19-2011 12:39 PM |
| MTF Question | eleven | Strategy Development | 11 | 09-02-2010 07:08 PM |
| MTF BarsInProgressIndex Question | eleven | Strategy Development | 1 | 08-03-2010 10:20 AM |
| MTF question | eleven | Strategy Development | 7 | 07-20-2010 09:07 AM |
| MACD on MTF | Stem1 | General Programming | 2 | 04-13-2010 07:21 PM |