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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X