Forum

I can't find why "Last exit deal is a buy" and "Last exit deal is a sell" is not getting printed in the journal. Any please help figure this out, Thanks.

#include <Trade\Trade.mqh> CTrade trade; datetime gBarTime; void OnTick () { datetime RightBarTime = iTime ( _Symbol , _Period , 0 ); if (RightBarTime != gBarTime) { gBarTime = RightBarTime; OnBar(); } } void OnBar() { double open = iOpen ( _Symbol , PERIOD_CURRENT , 1 );