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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    89 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X