NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 08-24-2012, 07:15 AM   #1
glc3344
Junior Member
 
Join Date: Mar 2012
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default MTF question

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]
				)
glc3344 is offline  
Reply With Quote
Old 08-24-2012, 07:26 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

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.
NinjaTrader_Joydeep is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 03:48 AM.