Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder

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

    Strategy Builder

    Hello
    Is there away or condition to make a strategy take Long position then only Take short position after and not take two consecutive positions on same type ?

    I appreciate your help and efforts

    Thank you

    #2
    Hello bofygym7, thanks for writing in.

    In the strategy builder, you can check the current market position of the strategy. You can also add a boolean variable to the script in the Inputs and variables section and add it in as a part of the trade condition so that it only triggers once. e.g.

    if(MyBoolean && <conditions to trade>)
    {
    //go long
    MyBoolean = false; // set to false, then reset to true when ready to go long again
    }

    How exactly you add it depends on the entry conditions of your strategy/ how your strategy is designed. Please see this example we have on checking the market position:

    https://ninjatrader.com/support/help...ionComparisons

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    172 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    88 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    128 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    208 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X