Mohd Najib Bin Saidin / Publications
Forum
How to open a new buy order after 20 pips away from previous order
#include<Trade\Trade.mqh> CTrade trade; void OnTick () { double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); datetime time= TimeLocal (); string HoursAndMinutes = TimeToString (time, TIME_MINUTES ); if (( PositionsTotal ()== 0 ) && ( StringSubstr