Forum

Timer Function Acting Strange

#include <Mql5Book/Timer.mqh> CTimer Timer; input bool UseTimer = true ; input bool UseTrailingStop = true ; input bool UseLocalTime = false ; input int StartHour = 15 ; input int StartMinute = 59 ; input int EndHour = 18 ; input int EndMinute = 59 ; int OnInit () { bool timerOn = true ; if

Can't work my Trailing Stop. P.s. Beginner to MQL5

static double Static_Open; static double Static_SL; static double Static_R; //--------------------------------------------------------------- if ( PositionSelect ( _Symbol ) == true && UseTrailingStop == true ) {