How can I export EMA value to the DDE Sample file

 

Hello, I want to add EMA values of different timeframes (for example 50 EMA for 1H, 4H, 1D, 1W..) Is there any way to export them dynamicly to the DDEsample.xls (like the BID,ASK etc. price which comes default with the file)

Thanks.

 
halitbaris:

Hello, I want to add EMA values of different timeframes (for example 50 EMA for 1H, 4H, 1D, 1W..) Is there any way to export them dynamicly to the DDEsample.xls (like the BID,ASK etc. price which comes default with the file)

Thanks.

Hi, I would suggest an Expert Advisor (EA) would help you, as it allows you to obtain any EMA at any timeframe (along with any other pricing data, etc.), and the EA could easily generate that DDE file you need.  MQL4 doco explains how to obtain any EMA:

https://docs.mql4.com/indicators/ima

I recently shared a template (myHistory.mq4) to a similar question if that helps you to go from there (also some moderators and folks contributed with more ideas there):

https://www.mql5.com/en/forum/351366

Exporting MT4 Data to Excel
Exporting MT4 Data to Excel
  • 2020.09.16
  • www.mql5.com
Hello, i want to know if its possible to export specific data onto an excel sheet, e.g...