How to create an overlay study that compute on different timeframes

Tessanix

New member
Joined
Feb 2, 2025
Posts
4
Likes
1
Hello! I would like to create an overlay that computes lines based on multiple timeframes. For example my "line1" would compute based on 5 minutes timeframes my "line2" would compute based on 15 minutes timeframe and my "line3" would compute based on 1 hour time frame. Like that, whatever the timeframe I chose my chart to be, my study will always be based on those 3 preset timeframes.
I don't know which settingdescriptor I should use for this, can someone maybe give me a snippet of code I can use for it ?
 
when using multiple DataSeries this way in calculate, how the "index" param should be used?
 
Top