Login Page - Create Account

Support Board


Date/Time: Mon, 20 May 2024 19:33:27 +0000



[Programming Help] - Stochastic Signal Overlay as Background Color

View Count: 1037

[2018-10-16 07:59:15]
User371906 - Posts: 141
Good morning,

Can you tell me how to set up a Stochastic Signal Overlay as Background Color.

I have the Stochastic SG1 Draw Style = Fill Top
Stochastic SG2 Draw Style = Fill Bottom

http://www.sierrachart.com/image.php?Image=1539676686241.png

Want to take the color signal (green/red) and overlay it to my Chart Region 1 as a Color Background?

I tried with several indicators but at time no go (Color Background on Alert Condition, Study Subgraphs Reference, etc, etc)

Thank you

Regards

g
[2018-10-16 14:45:59]
Sawtooth - Posts: 4001
Use two instances of the Color Background Based On Alert Condition study, one for each color.

Use these formulas:
For green:
=ID1.SG1>ID1.SG2
For red:
=ID1.SG1<ID1.SG2
where ID1 is the Stochasitcs study; edit as needed.
[2018-10-16 19:05:12]
User371906 - Posts: 141
Tom,

Good evening,

Worked perfectly as you specified.

Thank You.

Kindly

g

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account