I have a complex study I'm working on and when I update and save my code it takes a long time for it to plot/load the results. Is there a way to limit the number of bars the study will analyze I need a couple of month's worth of data not years?
I tried the max_bars_back in the study function but it doesn't seem to do anything.
//30 minute 2 months worth of bars - 2880
study(title="MyScriptStudy", overlay=true, max_bars_back=2880)
I'm also hoping a solution will work when I use the "Replay bar" tool so I'll get 2 months of bars from where I slice off the starting bar. So, if I slice starting at March 1, I'll get bars going back to Jan 1 which I'm thinking will help load my study much faster.