Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MTF question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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]
    				)

    #2
    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.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    56 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X