first bar of 5min chart
datetime bod = date(); int iBod = iBarShift(_Symbol, PERIOD_M5, bod); double hBod = iHigh(_Symbol, PERIOD_M5, iBod);
datetime bod = date(); int iBod = iBarShift(_Symbol, PERIOD_M5, bod); double hBod = iHigh(_Symbol, PERIOD_M5, iBod);
You agree to website policy and terms of use
newbie trying to learn mql4 here.
I want to write an EA that will take the high low of the first bar of the day in a 5 min chart to draw a fibo retractment, and then trade based on those lines.
Have been struggling with finding the first bar of the day. Any guidance will be greatly appreciated.
Thanks in advance~