How to use two underlyings (example: DOW and DAX) for a backtest --> for livetrading it is easily possible

 

Hy,

I want to use two underlyings within my expert advisor. For example two moveing averages:


double MA_US_cur=iMA("US30",0,1,0,MODE_SMA,PRICE_OPEN,0); // DOW Indices

double MA_DE_cur=iMA("DE30",0,1,0,MODE_SMA,PRICE_OPEN,0); // DAX (GERMAN 30) Indices


When I use the above code for live trading I have the MA values available but for a backtest only the "master" chart value can be used.

Do you know any solution?

Thanks in adavance

Serafino

 

Has anyone an idea for solving this topic?

regards

Serafino

 
The second parameter should be set to the time frame you need instead of 0.
Reason: