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, 05-11-2026, 05:56 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      199 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      365 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      283 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X