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 NullPointStrategies, Today, 05:17 AM
    0 responses
    23 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    120 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X