Forum

Please help me point out any issue associated with the code which compile convenient with no error but seems not to trail the stoploss on vix75 index

//Create an instance of CTrade #include<Trade\Trade.mqh> CTrade trade; void OnTick () { double Ask= NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_ASK ), _Digits ); if ( PositionsTotal ()== 0 ) trade.Buy( 0.30 , NULL ,Ask,(Ask- 1000 * _Point ), 0 , NULL ); CheckTrailingStop(Ask);

Pls I need someone to help me identify the two complaint error from this code.

#include<Trade\Trade.mqh> CTrade trade; int OnStart () { double g; int m,s,k; m =Time[ 0 ] + Period ()* 60 - TimeCurrent (); g=m/ 60.0 ; s=m% 60 ; m=(m-s)/ 60 ; double OPen[]; double Close[]; double High[]; double Low[]; void OnTick () { double Ask=