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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      47 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      15 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      21 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X