Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exit orders dont get executed

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

    exit orders dont get executed

    Hi why my exit orders dont get executed and get ignored?

    EnterShortLimit(0,true, PositionSize, slShortCCI - 5, "CCI Short");

    Code:
    Print("ShortCCIEntry Before"+ShortCCIEntry);
                    if (Position.MarketPosition == MarketPosition.Short  && ShortCCIEntry  == true )
                    {    
                    if(Position.AveragePrice + cciTPSL >= ask){
                        ExitShortStopMarket(1, true, Position.Quantity, Position.AveragePrice + cciTPSL, "SLS", "Short CCI");
                    }
                    if( Position.AveragePrice - cciTPSL <= ask){
                        ExitShortLimit(1, true, Position.Quantity, Position.AveragePrice - cciTPSL, "PTS", "Short CCI");
                    }
                    breakevenTriggerShort = Position.AveragePrice - (TickSize * BreakevenTriggerAmount);    
                    myFreeBEShort = true;    
                    trailTriggerShort = Position.AveragePrice - (TickSize * TrailTriggerAmount);                
                    ShortCCIEntry = false;
                        Print("ShortCCIEntry After"+ShortCCIEntry);
                    }​
    My Prints

    ShortCCIEntry BeforeTrue
    3/12/2024 12:21:19 PM Strategy 'FVGAlgo/312670698': Entered internal SubmitOrderManaged() method at 3/12/2024 12:21:19 PM: BarsInProgress=1 Action=BuyToCover OrderType=StopMarket Quantity=1 LimitPrice=0 StopPrice=18437.50 SignalName='SLS' FromEntrySignal='Short CCI'
    3/12/2024 12:21:19 PM Strategy 'FVGAlgo/312670698': Ignored SubmitOrderManaged() method at 3/12/2024 12:21:19 PM: BarsInProgress=1 Action=BuyToCover OrderType=StopMarket Quantity=1 LimitPrice=0 StopPrice=18437.50 SignalName='SLS' FromEntrySignal='Short CCI' Reason='SignalName does not have a matching FromEntrySignal to exit'
    3/12/2024 12:21:19 PM Strategy 'FVGAlgo/312670698': Entered internal SubmitOrderManaged() method at 3/12/2024 12:21:19 PM: BarsInProgress=1 Action=BuyToCover OrderType=Limit Quantity=1 LimitPrice=18386.50 StopPrice=0 SignalName='PTS' FromEntrySignal='Short CCI'
    3/12/2024 12:21:19 PM Strategy 'FVGAlgo/312670698': Ignored SubmitOrderManaged() method at 3/12/2024 12:21:19 PM: BarsInProgress=1 Action=BuyToCover OrderType=Limit Quantity=1 LimitPrice=18386.50 StopPrice=0 SignalName='PTS' FromEntrySignal='Short CCI' Reason='SignalName does not have a matching FromEntrySignal to exit'
    ShortCCIEntry AfterFalse​

    #2
    Sorry I had mismatched exit name orders

    Comment

    Latest Posts

    Collapse

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