Jump to content
Medved Trader Forums

PBarColor Conditional Test Doesn't Appear to Work


Doug Hayman

Recommended Posts



The following PBarColor conditional statement doesn't appear to be working for either the current Bar or Prior Bars:

   SetColor(Color.Green);   // Sets Paintbar to Color Green

   if (PBarColor == Color.Green)

   {

       LogString("Here");

   }

The conditional statement compiles OK, but during runtime, my LogString debug statement never shows up in DBGVIEW, so that portion of code never gets executed.  Same thing happens for conditional test of prior Paintbar colors.

Am I doing something wrong in my conditional test or is this a bug?

Running latest Beta.

Thank you in advance.

 

Edited by Doug Hayman
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...