Пример #1
0
        public override void OnStopExecuted(Stop stop)
        {
            if (HasLongPosition(1))
                Sell(1, "StopExit");

            if (HasShortPosition(1))
                Buy(1, "StopExit");

            canEntry = true;
        }
Пример #2
0
 protected override void OnStopExecuted(Stop stop)
 {
     // If our trailing stop indicator was executed,
     // issue a market sell order to close the position.
     marketOrder = SellOrder(Instrument, Qty, "Stop Exit");
     Send(marketOrder);
 }