Jason Posted June 22, 2019 Report Share 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 Link to comment Share on other sites More sharing options...
Jason Posted June 22, 2019 Author Report Share 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 Link to comment Share on other sites More sharing options...
Jerry Medved Posted June 22, 2019 Report Share Posted June 22, 2019 will check/fix. Quote Link to comment Share on other sites More sharing options...
Jason Posted June 25, 2019 Author Report Share Posted June 25, 2019 Have you been able to confirm there is an issue with this? Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted June 25, 2019 Report Share Posted June 25, 2019 Yes. Please download and install the beta version. It will fix the issue Quote Link to comment Share on other sites More sharing options...
Jason Posted June 25, 2019 Author Report Share Posted June 25, 2019 Wow, thank you! Quote Link to comment Share on other sites More sharing options...
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.