Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I set for entry on a breakout using strategy wizard?

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

    How do I set for entry on a breakout using strategy wizard?

    Hi

    Using the wizard, for entry on a breakout, I have tried unsuccessfully to set for an entry on say, highest of the last 20 bars. I am getting error messages, which are beyond my comprehension. I have tried Close(0) ==Highest Bar(0,20), and
    Lowest bar(0,10)==True. Both generate error messages.

    What am I doing wrong?

    Steve

    #2
    Hi Steve,

    Given here in Australia, I know it might be a few hours before one of the Ninja team are back online so this might get you going in the meantime.

    I use the following when looking for the high of the current bar is greater than the high of the previous 20 bars:

    High[0] > MAX(High, 20)[1])

    There is a good reference sample that you can look at for breakout trading also.



    I hope this gets you going.

    Regards,
    Kylie.

    Comment


      #3
      Hi Kylie

      Thanks for that. I seem to be running on that one.

      Do you know how to add RSI(9) <70 under the same condition set? I'm new to this without the wizard and the error message just keeps on coming up.

      I'm also stuck on exit long when open> entry price.

      Steve

      Comment


        #4
        Steve,

        We will be able to better assist you if you posted exact complete code snippet of what you have already. Then we can direct your efforts accordingly to adjust the code. Thanks.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        414 views
        0 likes
        Last Post CaptainJack  
        Working...
        X