Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged Limit Short Order

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

    Unmanaged Limit Short Order

    What am I missing?

    My unmanaged Limit Short order is getting filled at market.
    All my print statements state there should be a limit short order placed at 21730 (the price where 10SMA/20SMA crossed). The order is filled on the bar after the cross at MARKET (21689.50).

    Here's my code:
    Code:
                        if (limitOrder == true) {
                            Print(Times[0][0] + "  ------------- Entering a Limit Order at: " + shortLimit);
                            SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.Limit, Qty, 0, shortLimit, oco, "Short entry");
                            limitOrder = false;
                        } else {
                            SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.StopMarket, Qty, 0, mktShortStop, oco, "Short entry");
                        }
    
    ​
    See attached screenshots
    Attached Files

    #2
    Never mind, I need to place a zero for the market-price.

    SubmitOrderUnmanaged(0, OrderAction.SellShort, OrderType.Limit, Qty, shortLimit, 0, oco, "Short entry");

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    57 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    39 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    45 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    35 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    153 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X