Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detect a new candle

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

    Detect a new candle

    Hi,

    I have a strategy witch start a the current candle (120 Tick)

    The stop condition is fonction of previous candle ... [1]

    but the stop condition MUST start a the next candle after the strategy start,

    how can I say
    - after the next candle stop condition is valid ....
    - detect a change of candle after the strategy Enter in the market

    Thanks

    Pierre

    #2
    Hello Pierre,
    You can use the FirstTickOfBar to detect the start of a new candle. Please refer to our help guide for more details http://www.ninjatrader.com/support/h...ttickofbar.htm

    You can also refer to this sample code which demonstrates how to effectively use FirstBarOfTick http://ninjatrader.com/support/forum...ad.php?t=19387
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks !!!!!!!!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      60 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X