HISTORICAL DATA

 
Very good,
I wanted to get a file with OHLC historical data, fractal and zigzag. I developed what I think is the main part, and I'm learning MQL4 language. But the rest of code would be to get these EURUSD historical data on all timeframes?

thank you very much

for(int i=Bars-1;i<=0;i--)
{
FileWrite(f,TimeToStr(Time,TIME_DAT E|TIME_MINUTES),Open,High,Low,Close ,iFractals(Symbol(),0,1,i),iFractal s(Symbol(),0,2,i),iCustom(Symbol(), 0,"ZigZag",0,i),iCustom(Symbol(),0, "ZigZag",1,i));
}

Reason: