Jason Posted June 22, 2019 Report Posted June 22, 2019 I am trying to create a paintbar that will highlight a candle that crosses over a pivot point level. This is the code I have: My intent is for only the candle that is overlapping the PP level to be identified. What seems to be happening is that once a candle has closed over (or above) the R1 level many (but not all) candles that close above it will also be highlighted. And vice versa after the close of the first candle below the S1. This is happening without much rhyme or reason regardless of whether or not the PP level was ever within the candle's range. I've tried experimenting with CurrentCandle without finding any traction on this. Quote
Jason Posted June 22, 2019 Author Report Posted June 22, 2019 Here is the code: public void MainCalculation() { if (Close.CrossesUp(PP_R1, 0)) { SetColorAndShape("Crossover", PBShape.Fill, SysColor.Positive); } if (Close.CrossesDown(PP_S1, 0)) { SetColorAndShape("Crossover", PBShape.Fill, SysColor.MainIndicator3); } } Quote
Jason Posted June 25, 2019 Author Report Posted June 25, 2019 Have you been able to confirm there is an issue with this? Quote
Jerry Medved Posted June 25, 2019 Report Posted June 25, 2019 Yes. Please download and install the beta version. It will fix the issue Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.