universeisgr8
New member
I want to reference a certain number of bars in the past based on the aggregation period I am looking. For example, if i am looking at a weekly chart, i want to go back 1 year and look for the lowest price, if i am using daily chart, I want to go back 6 months, if I am using 30 min chart, i only want to reference the past one month.
is there a way to pull the aggregation period and define some value in thinkscript on how far back i want to look for a specific aggregation period?
Thank you so much.
is there a way to pull the aggregation period and define some value in thinkscript on how far back i want to look for a specific aggregation period?
Thank you so much.