Jump to content
Medved Trader Forums

Scan Result: Bearish Engulfing Candle Pattern Displays as GREEN in Scan Result Column


Doug Hayman

Recommended Posts

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);

}

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...