Hi Billy101, Thank you. Some errors/questions? 1. I added a ) after BarNumber(). Like this: AddChartBubble(showBubblesVolume and !IsNaN("ZZ$"and BarNumber()) != 1. Is this correct 2. but I am not sure how to get a future BarNumber[-1]?? 3. Also, are these variables defined? data, barcount, state 4. from: 5. the below works, replace it for the last bubble. def dLo = xxLow;by se - Trading Discussion
Hi, I am trying to use ThinkScript to count the successive differences between highs and lows and also to count the number of highs and lows in a given period. And then use AddLabel or AddChartBubble to show the results on the chart. However, the variables do not paint values in either AddChartBubble or AddLabel and I can't figure out why? The code comes from different public sources, includinby se - Trading Discussion