Change Chart Timeframe Automatically

Hi,


I want to draw trend lines based on Daily time frame (D1) and on the hourly time frame (H1).


Is it possible to switch the chart time frame programmatically? I mean...


1) switch to D1 and draw the trend lines...then

2) switch to H1 and draw the trend lines.


Is it possible? I am already drawing the trendlines so the lines are not the issue.


Thanks

forexeas:

Hi,


1) switch to D1 and draw the trend lines...then

2) switch to H1 and draw the trend lines.

No you can't switch. Get the values from the time frame you want and draw on the current chart.

see:

ArrayCopySeries(D1close,MODE_CLOSE,Symbol(),PERIOD_D1);