diff --git a/Classes/x-saherelm.x121.xea.class.mq5 b/Classes/x-saherelm.x121.xea.class.mq5 index 0492d217..c8da30f1 100644 --- a/Classes/x-saherelm.x121.xea.class.mq5 +++ b/Classes/x-saherelm.x121.xea.class.mq5 @@ -472,7 +472,9 @@ public: // bool canAccept = // - isLong + iSignal.provider == XEQMSupportToken + ? true + : isLong ? longs < shorts || longProfits > shortProfits : shorts < longs || shortProfits > longProfits // @@ -1349,6 +1351,41 @@ public: // mAlert.Alert(message); + + // + XPosition position; + bool isRecieved = mTrader.GetPosition( + track.ticket, + position // + ); + if (!isRecieved) + { + return; + } + + // + XSignal signals[]; + + // + XSignal signal; + bool isPrepared = signal.PrepareOpposit(position); + if (!isPrepared) + { + return; + } + + // + signal.comment = ""; + signal.provider = XEQMSupportToken; + + // + AddRef( + signal, + signals // + ); + + // + HandleEQMState(signals); } //