Doug Hayman Posted October 20, 2021 Report Share Posted October 20, 2021 Small display (color) bug: yields a GREEN (instead of RED) color in the "Scan Result" column. The "Engulfing" pattern function is used for both positive engulfing (== 1) and negative engulfing (== -1). Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 20, 2021 Report Share Posted October 20, 2021 What is the code? Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted October 20, 2021 Author Report Share Posted October 20, 2021 3 minutes ago, Mike Medved said: What is the code? Mike, I included it in original message, but for some reason it didn't get posted (I cut/paste from Paintbar editor): if (CandlePattern.Engulfing() == -1) { SetColorandShape("Engulfing", PBShape.Circle, Color.Red); SetScanResult("Bearish: Bearish Engulfing); } Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 20, 2021 Report Share Posted October 20, 2021 Ok it is a bit strange. The ONLY SetColor you have is Red but it still shows Green? Send me the scan - export it and attach to support@ Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted October 20, 2021 Author Report Share Posted October 20, 2021 Mike, to be clear, the SetColorandShape works correctly, and labels the Engulfing correctly on the Chart as a RED dot; that's not the issue. In my Scanner tab of my portfolio, the above code which flags the candle pattern correctly just displays the bearish result in the Scan Result column in color GREEN. I don't think that I have control over the color that is displayed in the Scan Result Column; that must be something you do by default, depending on whether the Candle Pattern is bullish vs. bearish. Given that the "Engulfing" function handles both Bullish and Bearish cases, I'm guessing that you're not displaying the color correctly in the bearish case. [Sorry, when I cut/paste my code from the Advanced Paintbar window, the forum S/W cut off the code and my explanation originally] Again, I don't think it's a function of the scan code. If you still need it, let me know, and I'll send it to you via Email. Quote Link to comment Share on other sites More sharing options...
Doug Hayman Posted October 20, 2021 Author Report Share Posted October 20, 2021 Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted October 21, 2021 Report Share Posted October 21, 2021 yea. please send it in email. 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.