Disliked1: Robot continues to operate (or at least doesn't stop actions) after the defined trading end time. It "continues" beyond the hour it should have stopped. void OnTick(){ datetime tm_new = Time[0]; if(gl_tm_old != tm_new){ bool b = false; // Check if within trading hours if(!IsWithinTradingHours()) return; // <--- This line *prevents further actions in OnTick* if outside hours, but doesn't CLOSE orders //--- GET SIGNAL ENUM_TREND sig = ( TimeCurrent() < (tm_new+inp_sign_shift) ? TREND_NO : Fn_signal(inp_sign_bar) ); // ... rest of OnTick ... } }...Ignored
1