Announcement

Collapse
No announcement yet.

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


    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.



    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.
    BrettNinjaTrader Product Management

    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.

        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.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            574 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            333 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            553 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X