Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

3 line break code

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

    3 line break code

    How would I code a 3 line break entry?

    I am trying to write a condition :

    I price within range of PP and 3 line breaks enter long/short?

    Any ideas?

    Thanks

    #2
    mccallum28, thanks for the post - our new NinjaScript trainee will take a look at your questions and get back to you.

    Comment


      #3
      Hello Mccallum28,

      You would need to first determine, at what distance is price considered to be within range of the PP.

      If you are referring to a three line break chart you would run the strategy on this chart. You can also check if you're dealing with an up or down bar by checking the Open[0] and Close[0] prices.

      If you are referring to breaking the PP line three times, you would need a variable that tracks the number of times price travels through the PP by checking when price is > PP and < than PP.
      LanceNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

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