How to make a paintbar persist until new condition is true?
Having difficulty figuring out how to keep the bars painted a certain color until a new condition is true. Here's my code so far:
When I plot it, it only paints the bars that meet those conditions. However, I would like to plot all the paintbars that follow the initial one that meets the condition, until the second condition is met. Trying to generate a trend paintbar picture.
Attached is an example of what I mean. Thanks for any help!
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).
Last edited by jackbravo; June 24th, 2016 at 02:07 PM.