Hangover, I couldn't find .....experts\scripts folder, but I found .....MQL4\scripts folder. Therefore, I copied your code into that file. Then, I tried to adjust the heading section and FileWrite section of your code as it is below.
FileWrite(handle,"Date,Time,Open,High,Low,Close,Volume,MACD");
FileWrite(handle, date1, time1, iOpen(ccy,tf,i), iHigh(ccy,tf,i), iLow(ccy,tf,i), iClose(ccy,tf,i), iVolume(ccy,tf,i), iMACD(ccy,tf,12,26,9,PRICE_CLOSE,MODE_MAIN,i));
Then, I recompiled it, and dragged to gdpusd daily graph. And then, I exported the history from the history center, but I didn't see MACD values on my excel sheet. Therefore, where did I make mistake?
FileWrite(handle,"Date,Time,Open,High,Low,Close,Volume,MACD");
FileWrite(handle, date1, time1, iOpen(ccy,tf,i), iHigh(ccy,tf,i), iLow(ccy,tf,i), iClose(ccy,tf,i), iVolume(ccy,tf,i), iMACD(ccy,tf,12,26,9,PRICE_CLOSE,MODE_MAIN,i));
Then, I recompiled it, and dragged to gdpusd daily graph. And then, I exported the history from the history center, but I didn't see MACD values on my excel sheet. Therefore, where did I make mistake?