Stevan Vukovic / Publications
Forum
Trailing pending orders
#include <Trade\Trade.mqh> CTrade trade; input int TrailingPoints = 1000 ; input int TslTriggerPoints = 2000 ; int OnInit () { return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { } void OnTick () { double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK