Announcement

Collapse
No announcement yet.

setting diffrent color

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

  • setting diffrent color

    Hi
    How can I set up a differnet color for each line in indicator.
    e.g. I have double stoch indicator with two lines. I want
    the first would be green and the second blue. It's a non basic study so I tried to do it thru the wizard but it didnt work out.

    Thanks

  • #2
    pilpilonim
    In preMain() you would enter the following

    setDefaultBarFgColor(Color.green,0);
    setDefaultBarFgColor(Color.blue,1);

    The number after the comma assigns the color to the corresponding element of the returned array. So 0 would be to the first element returned, 1 the second, etc. You can do the same for line style, plot type, thickness, etc
    Hope this helps
    Alex

    Comment


    • #3
      Dear Alexis - the one that always help me....
      Now i understand all. thanks mate

      Comment

      Working...
      X