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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    64 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X