Announcement

Collapse
No announcement yet.

Help With Adding Line Colors & Prices to WEVOMO,Please

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

  • Help With Adding Line Colors & Prices to WEVOMO,Please

    Good Evening,
    This is a nice study. I'm trying to color the WEVOMO one color when going up & another color when going down. I'm also trying to color the price close one color when greater than the WEVOMO & another color when less. I'm not having much luck. Can you help, please? Thank you.
    Diane
    Attached Files

  • #2
    Diane
    In both conditions ie if(close(0)>=xWEVOMO){ and if(close(0)<=xWEVOMO){ replace xWEVOMO with xWEVOMO.getValue(0)
    In the second conditional statement replace the 1 with 0 in the setDefaultBarFgColor(Color.red,1); command.
    Lastly in both conditional statements replace the setDefaultBarFgColor(...) commands with setBarFgColor(...)
    To color the plot if rising or falling see the example enclosed below
    Alex

    PHP Code:
    if(xWEVOMO.getValue(0) > xWEVOMO.getValue(-1)){
        
    //commands to be executed here eg setBarFgColor(...)
    }else if(xWEVOMO.getValue(0) < xWEVOMO.getValue(-1)){
        
    //commands to be executed here
    }else{
        
    //commands to be executed here

    Comment


    • #3
      Good Morning, Alex!
      Your corrections were perfect. Again, my sincerest thanks for all your help & hard work! Have a great day.
      Diane

      Comment


      • #4
        Diane
        My pleasure and thank you for the feedback
        Alex

        Comment

        Working...
        X