Rote Rechnungen? Wir machen sie für dich grün.
Der Gewinn geht zuerst auf deine Bankkarte — wir teilen später.
Keine Vorauszahlung, keine Kontoberechtigungen.
🟢 WhatsApp: 85254981192 ⚪ Telegram: @kkk437
Prüft die Notwendigkeit und die Möglichkeit eine Position umzukehren.
virtual bool CheckReverse()
Rückgabewert
Gibt true zurück wenn einige Operation ausgeführt ist, ansonsten gibt false zurück.
Hinweis
Prüft die Notwendigkeit eine Long-Position umzukehren (Aufruf der CheckReverseLong()-Methode), dann für eine Short-Position (Aufruf der CheckReverseShort()-Methode).
Implementierung
//+------------------------------------------------------------------+ //| Check for position reverse | //| INPUT: no. | //| OUTPUT: true-if trade operation processed, false otherwise. | //| REMARK: no. | //+------------------------------------------------------------------+ bool CExpert::CheckReverse() { if(m_position.PositionType()==POSITION_TYPE_BUY) { //--- check the possibility of reverse the long position if(CheckReverseLong()) return(true); } else //--- check the possibility of reverse the short position if(CheckReverseShort()) return(true); //--- return without operations return(false); }