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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X