if (orderId.Length == 0 && atmStrategyId.Length == 0 && CrossAbove(Close[1]etc.))
{
atmStrategyId = GetAtmStrategyUniqueId();
orderId = GetAtmStrategyUniqueId();
AtmStrategyCreate(Action.Buy, OrderType.Limit, 0, 0, TimeInForce.Day, orderId, "MY-ATM", atmStrategyId);
}
But if i want to put another priority condition > to my stop loss generated on the Dom to close my strategy, do i have to put :
if (Close[1] < MyIndicator(...))
{
AtmStrategyClose("idValue");
thanks

Comment