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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    163 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    82 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    125 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    206 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    184 views
    0 likes
    Last Post CarlTrading  
    Working...
    X