Hello
I am interested in a strategy that simultaneously sends two Stop Market orders for a price channel:
MaxUP=MAX(High,Lenght);
Mindown=MIN(Low,Lenght);
if ((A > B) && (Position.MarketPosition == MarketPosition.Flat))
{
EnterLongStopMarket(DefaultQuantity, MaxUp, @"BuyStop");
EnterShortStopMarket(DefaultQuantity, MinDown, @"SellStop");
}
Only the "EnterLongStop..." Order is sent and the "EnterShortStop..." is ignored
I want to send both orders at the same time and when one is done OCO
Can you help me?
Thank you
Comment