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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X