Is there a way to reset setBarsRequired after you've done
setBarsRequired(sbrAll, sbrAll)?
I have a paramTrigger that sets all bars required so it can perform a
computation. But once I've done that, the only way I've found to get it back to
normal is to open the script and apply it again.
E.g. This doesn't work
if (trigger){
setBarsRequired(sbrAll, sbrAll);
computeSomething();
}
else{
setBarsRequired(0, 0);
}
The setBarsRequired(all) also doesn't take effect until the second time I click
the trigger, but that's not much of a problem.
Thanks,
Jules.