Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FirstTickOfBar on 30 sec Strategy

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

    FirstTickOfBar on 30 sec Strategy

    HI,

    I have a strategy in 30 secondes
    I want enter on the next bar after declenchement of Strategy

    but "If (FirstTickOfBar) {EnterShort ()...}"
    enter on the same bar not on the next bar

    what can i do ?
    have you an idea ?

    Thanks

    #2
    You would need to add a counter variable that would let you create a delay.

    Something like this might work for you

    if(Historical)
    return;

    if(FirstTickOfBar && myVar > 0)
    {
    //do something
    }
    else if(FirstTickOfBar)
    myVar++;

    Let me know if I can be of further assistance
    LanceNinjaTrader Customer Service

    Comment


      #3
      i don t understand what do exactly FirstTickOfBar

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X