note: CalculateOnBarClose = true;
OnBarUpdate()
{
if entry condition is met
Open ATM strategy order with stop order buy above previous bar high
if ATM order is not yet filled (for next onbarupdate)
change ATM order stop price to high of previous bar
if reverse signal is met, then close ATM order (which has not been filled)
}
Could you help to tell me which APIs to call for those actions above?
Thanks

Comment