Just modified a tool...
Open and Close Line: Added control process elements with updated code structure.
RunOnNewBar :
= true: Updates on new bar (default)
= false: Updates every half a minute
...and process only the equivalent number of bars based on the desired number of instances (via parameter input)
Now, instead of providing the number of bars to calculate, I replaced it with a parameter to input a user-desired value for Open or Close lines (instances). And then the tool automatically calculates the equivalent number of bars required. Hence, at H1 TF, if the input value for the number of instances needed is 10 lines with input TFBar of Daily (1440) which means it only needed 240 H1 TF Bars (10x1440/60) to calculate.
Open and Close Line: Added control process elements with updated code structure.
RunOnNewBar :
= true: Updates on new bar (default)
= false: Updates every half a minute
...and process only the equivalent number of bars based on the desired number of instances (via parameter input)
Now, instead of providing the number of bars to calculate, I replaced it with a parameter to input a user-desired value for Open or Close lines (instances). And then the tool automatically calculates the equivalent number of bars required. Hence, at H1 TF, if the input value for the number of instances needed is 10 lines with input TFBar of Daily (1440) which means it only needed 240 H1 TF Bars (10x1440/60) to calculate.
Attached File(s)
Since Frank Sinatra sings in his own way, my chart sing... I did it, my way
3