Announcement

Collapse
No announcement yet.

Color bar question

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

  • Color bar question

    Hello,

    I am running a 135t chart of ES Z3, and am trying to have two different basicOSC indicators in the same study pane.

    The complication is, I want them to do the following:
    1. Color red when negative
    2. Color green when positive
    3. Do so individually (sometimes one will be green, one will be red)
    4. Keep the same scale relative to each other. That is, creating two basicOSC and merging the study panes works, but the zero lines for the two individual indicators move relative to each other (I need these to be "stuck" together)

    Whew, long post..thanks for reading this far.

    My solution is a single .efs that plots both the OSC's.. But how do I change each individual OSC's bar color (setBarFGColor(Color.lime,0))?

    Thanks
    Daniel Parker

  • #2
    Correct...

    Within your main(), you set conditions for the coloring of the unique OSC indicators and use the...

    setBarFGColor(Color.lime,0)

    or

    setBarFGColor(Color.lime,1)

    to designate when indicator you want to change to a different color.

    Does this make sense??
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      I think so, I will give this a try when I get home tonight.

      Thanks
      Daniel

      Comment

      Working...
      X