Announcement

Collapse
No announcement yet.

setBar(Bar.FgColor, ...) problems ?

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

  • setBar(Bar.FgColor, ...) problems ?

    I need to change the color of a previously-displayed price bar.
    I have tryed with setBar(Bar.FgColor, ...) but don't work.

    For instance, this code would have to change the color to green of all bars:

    function preMain() {
    setPriceStudy(true);
    setColorPriceBars(true);
    }
    function main(){
    setBar(Bar.FgColor, -1, 0, Color.green);
    return true;
    }

    but donĀ“t work. However, this code with SetBar(Bar.BgColor, ...) work fine:

    function main(){
    setBar(Bar.BgColor, -1, 0, Color.green);
    return true;
    }

    I don't understad it. Could you help me? Thanks very much.

  • #2
    cls
    At this time EFS can only paint the price bar that is being processed. It cannot paint prior price bars.
    Alex

    Comment

    Working...
    X