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