Announcement

Collapse
No announcement yet.

colour coding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • colour coding

    Hi guys

    I have been trying to colour code this indicator when below 10 and above 90 but can't seem to get it to work. A bit of a novice when it comes to EFS so am hoping one of you might be able to help.

    My efforts is attached..

    TIA
    Attached Files
    Last edited by nwal66; 02-19-2007, 11:32 AM.

  • #2
    nwal66,

    You had a couple of problems.
    1. you had multiple return statements, and one of them was before your check for <10 and >90 so they were never getting executed.
    2. Your if statement syntax was wrong.
    3. You weren't selecting a series to color, see the help file documentation for setBarFgColor().

    Attached is a corrected version that colors the lines individually. Note that the lines will be colored over the 90/10 lines as they cross them. Nothing you can do about that.

    You also have K2 = 1, which makes the dss and EMA2 plot on top of each other

    Steve
    Attached Files

    Comment

    Working...
    X