Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to exit on tick/price change?

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

    How to exit on tick/price change?

    NinjaTrader Support,

    I know below is how to enter on the one tick data series, but how do you exit?

    EnterShort(1, 1, "EnterShort");

    Thanks,

    -Omer

    #2
    Hello omermirza,

    To have the exit submitted during the tick series you would need to call the exit during the tick series BarsInProgress.

    Comment


      #3
      Ok, how do I do that?

      Comment


        #4
        Hello

        You can find some examples of using BarsInProgress in the following link:



        To do something during the secondary series you would need to surround that code with:

        Code:
        if(BarsInProgress == 1)
        {
        
        }
        Which means the secondary series, 0 would be the primary.


        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        429 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        281 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        241 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        330 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        290 views
        0 likes
        Last Post CarlTrading  
        Working...
        X