Hello. With the attached script, I am trying to store data from my correlation indicator to a csv text file. Any ideas on why this would not work? No values are showing up in the file for the correlation indicator values. The other fields are there.
store the outputhistory ex4 file in the experts/scripts folder. Restart MT,then drag the script to the chart. Then it stores the chart values to a file. As seen, I am trying to use the iCustom function to reference the correlation indicator..
store the outputhistory ex4 file in the experts/scripts folder. Restart MT,then drag the script to the chart. Then it stores the chart values to a file. As seen, I am trying to use the iCustom function to reference the correlation indicator..
Inserted Code
double val=iCustom("USDCAD",0,"Correlation",0,0); FileWrite(handle, date1, time1, iOpen(ccy,tf,i), iHigh(ccy,tf,i), iLow(ccy,tf,i), iClose(ccy,tf,i),val);
Attached File(s)
output_history.mq4
4 KB
|
902 downloads
Correlation.ex4
3 KB
|
375 downloads
Correlation.mq4
2 KB
|
559 downloads