Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SubmitOrderUnmanaged automatically unchecks itself

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

    SubmitOrderUnmanaged automatically unchecks itself

    Hi everyone,

    I am trying to use SubmitOrderUnmanaged and I guide with https://ninjatrader.com/support/help...orderunmanaged .htm

    but I dont know why it doesnt work it to me.

    I already have:
    • IsUnmanaged = true; → In setdefault
    • I am using Calculate.OnBarClose
    • Without multitimeframes, just normal way
    I am trying to use the simple syntax:

    SubmitOrderUnmanaged(int selectedBarsInProgress, OrderAction orderAction, OrderType orderType, int quantity)

    Code:
    protected override void OnBarUpdate()
    {
    if (isTrigger)
    {
    SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.Market, 1, 0, 0, string.Empty, string.Empty);
    }

    When you should make the entry, the strategy is automatically unchecked and then the program makes a sound.​

    in the other hand, when I used this in the strategy, it works good

    Code:
    protected override void OnBarUpdate()
    {
    if (isTrigger)
    {
    /// Stop Loss
    double stopLossPrice = High[0] + StopLossTicks * TickSize;
    SetStopLoss(CalculationMode.Price, stopLossPrice);
    
    /// Entry
    EnterShort();
    }
    }

    My interest to use ​SubmitOrderUnmanaged is because I would like to have double SL using 1 entry... but when I use setstoploss X2 it doesnt work properly, I guess they plus each other

    When I try to use SubmitOrderUnmanaged to make SL, it doesnt work neither. For that reason first at all I am trying to make the simple way, with the simple syntax

    Thanks

    #2
    Hello FaaZer,

    Are there errors on the Log tab of the Control Center when enabling the strategy?
    If so, what is the full error message?

    "I already have: IsUnmanaged = true; → In setdefault"

    Try setting this in State.Configure.

    If you modify the defaults, you would need to remove the instance of the strategy from the chart or strategies tab of the control center and add a new instance to pull the new defaults.

    Below is a link to an example (ProfitChaseStopTrailUnmanagedExample) of an unmanaged strategy.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 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