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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      663 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      376 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      575 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X