Announcement

Collapse
No announcement yet.

line~histogram part 2

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

  • line~histogram part 2

    Here is a picture of my line~histogram that I want to change from red to green to red as they cross over the zero line.

    DaTr8dr
    Attached Files

  • #2
    This should do the trick.
    Attached Files
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11

    Comment


    • #3
      Thank you Jay. I will review the script to see how you did this.

      DaTr8dr

      Comment


      • #4
        My apologies for not summarizing what I did. Basically, I added two conditions for the histogram portion. Then I actually had to open the Formula Editor to insert some code into the OnAction functions.

        setBarFgColor(Color.RGB(255,0,0),0);

        This says turn the first returned study color red. The first study is referenced by putting a ",0" after the Color.RGB function. Here's another example...

        setBarFgColor(Color.RGB(0,255,0),1);

        This says turn the second returned study color green.

        The reason for the weird circumstance that 0 means 1st returned value and 1 means the 2nd, is due to the way JavaScript handles arrays. In an array, the first value is assigned a reference of zero, the second is 1, the third is 2, and so on.
        Regards,
        Jay F.
        Product Manager
        _____________________________________
        Have a suggestion to improve our products?
        Click Support --> Request a Feature in eSignal 11

        Comment

        Working...
        X