this_bar_time = TimeLocal();
All times on the chart are broker's times.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
SOLVED
long NewMinute[]; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit(){ ArrayFree(NewMinute); ArrayResize(NewMinute,2); } //+------------------------------------------------------------------+ //| ON TIMER | //+------------------------------------------------------------------+ void OnTimer() { MqlDateTime date; datetime start = TimeCurrent(); datetime StartFade=start+50; for(int i=0; i<ArraySize(NewMinute); i++){ if(date.sec==00){ ArrayFill(NewMinute,0,1,start); ArrayFill(NewMinute,1,1,StartFade);} } ArrayPrint(NewMinute);