I set an initial value of the UpperBand and LowerBand and do a check to see if that value is breached. The problem I’m having is that as soon as a bar is completed, the initial values for UpperBand and LowerBand go to zero. How do I make these values retain their previous value?
The chart I’ve attached shows a 30 sec bar chart. The horizontal lines show the UpperBand and LowerBand. If you run the code, you'll see that the values go to zero.
Anyone know how I can solve this?
Thanks,
Taddypole…
Comment