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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X