Announcement

Collapse
No announcement yet.

color moving average

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

  • color moving average

    i would like to alter the color of the 20sma based on the close of the candlestick. for example, the obvious is close above 20 ma, color 20 ma green.
    i would also like to use different parameters for the trin: close below 20 ma and below 1, turn 20 ma green.

  • #2
    This requires the setBarFgColor() function.

    setBarFgColor(Color.green);

    You need to create conditions that change the bar FG color in your efs.

    if (MA1.getValue(0) > close()) {
    setBarFgColor(Color.red);
    }

    I hope this helps. If you don't understand programming or basics, then please ask for more help.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      color moving average

      thank for your reply.
      after reading it, i'm not sure what you posted will change the color of the 20 ma line vs. the candle bars. ?
      its the ma line color within a candlestick chart i'd like to change.
      please correct me, if i misunderstand.
      thank you again.

      Comment


      • #4
        Hi Matt,

        I've authored a colored moving average script that is user definable in terms of the denoting colors and trigger degrees. It is quite a useful tool to keep traders on the "right side" of the trade.

        Let me know if you'd like to try it out by emailing to:

        [email protected]

        Regards,
        Ryan.

        Comment

        Working...
        X