Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Entries Per Direction

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

    Entries Per Direction

    Whenever my strategy is enabled with 1 entry per direction it works fine and executes trades when it is supposed to. Whenever I change the number of entries per direction to a number higher than 1, trades will execute all over the place. How can I set it so all trades per direction execute at the same time?

    #2
    Hello ngatkins,

    You can require the position to be flat to allow a new entry. Then place all of the entries from the same conditions action block.

    Or you could use a bool that is set to true when the entries are placed, and then set this back to false when the trades are exited. In the conditions that submit the order require this bool to be false.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    6 responses
    3,290 views
    1 like
    Last Post jgualdronc  
    Started by Touch-Ups, Today, 10:36 AM
    0 responses
    7 views
    0 likes
    Last Post Touch-Ups  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    61 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    8 views
    0 likes
    Last Post Option Whisperer  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    24 views
    0 likes
    Last Post halgo_boulder  
    Working...
    X