Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Next bar opening trade in a specific range

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

    Next bar opening trade in a specific range

    Hello, I´d like to program in my strategy that there will be only entered a trade "on bar close" when the next opening bar is as example: "less than 1 Tick away" from the entry signal
    when the next incoming opening price after the signal is greater then 1 Tick away from the signal, the condition is false.

    Does anyone have a solution?

    #2
    As example:

    Signal is coming in

    When next bar is opening price after signal is less equal 1tick / 10 pips whatever , then condition is true

    Comment


      #3
      Hello Uregon,

      To get the number of ticks between two prices.

      (PriceA - PriceB) / TickSize

      If you want the previous Close or SMA, use a barsAgo value of 1 on the series.

      For example:

      if ( (Close[1] - SMA(7)[1]) / TickSize < 2 )

      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      478 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      318 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      257 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      340 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      308 views
      0 likes
      Last Post CarlTrading  
      Working...
      X