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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      177 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      331 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      254 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      356 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      184 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X