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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      256 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      166 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      170 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      253 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      203 views
      0 likes
      Last Post CarlTrading  
      Working...
      X