Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entires per direction not working as expected

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

    Entires per direction not working as expected

    Hi,

    I was trying to code a Strategy in NT 7 where I only have one order until it is stopped or profit realized don't place any other orders. I thought having the Entires per direction to 1 and Entry Handling to All Entries would take care of this issue. However, this is not the case. Attached please find my strategy. It is placing multiple orders even if the Strategy order is open. Can anyone suggest a solution please. Please Help...I have calculate on Bar close as False for this Strategy but I still only want to execute one time until either the profit or loss is realized.
    I thought the code
    if (Position.MarketPosition == MarketPosition.Flat)

    {EnterLong();}
    }
    might be causing an issue so I removed it and tried without it but it's the same results.
    Attached Files

    #2
    sqadri,

    I am happy to assist you.

    I have been unable to replicate your results. It appears to me that the strategy doesn't enter more than 1 order at a time.

    What instruments and time frames are you using?

    If you could perhaps post a screen shot of what it is your are seeing it would be beneficial in helping us help you solve your issue.

    Please let me know if I may assist further.
    Last edited by NinjaTrader_AdamP; 10-30-2011, 05:18 PM.
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X