Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Trailing Max (t-2) Breakout

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

    Trailing Max (t-2) Breakout

    This should be utterly simple, but I am not even close

    I am looking to have a dot on a breakout of the trailing max- call it 6 bars, 2 periods back. Obvious a period of 0 back would never occur.

    if (Close[0] > (MAX(6)[2]));
    {DrawDot("My dot" + CurrentBar, true, 1, Close[1], Color.Lime);





    TIA

    #2
    Hello,


    Thank you for your note.


    Can you please attach the full test simple strategy so I can run it on my side really quick.

    Just to clarify, your getting the dots on the chart at locations you are not expecting correct?

    I look forward to assisting you further.

    Comment


      #3
      Sure thing Brett.

      I tested both dots and long entries- both are not reading the "signal." I even tried both CrossAbove and > syntax. This is very similar to bollinger breakouts or donchian breakouts. I have yet to find the correct code for those either to try to replicate with the max // min indicators.
      Attached Files

      Comment


        #4
        wprosser, I see signals executing here on my end - but there's no other exit running besides the default ExitOnClose one, so please try adding for example a stoploss / target and you should see definitely more trades when your conditions trigger.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thank you sir. That was all it needed.

          Thanks again for the timely response



          Comment


            #6
            You're welcome, glad to hear that helped resolve it for you.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by WHICKED, Today, 12:45 PM
            2 responses
            16 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Started by GussJ, 03-04-2020, 03:11 PM
            15 responses
            3,272 views
            0 likes
            Last Post xiinteractive  
            Started by Tim-c, Today, 02:10 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Taddypole, Today, 02:47 PM
            0 responses
            2 views
            0 likes
            Last Post Taddypole  
            Started by chbruno, 04-24-2024, 04:10 PM
            4 responses
            51 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Working...
            X