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.
No you can't switch. Get the values from the time frame you want and draw on the current chart.