Login Page - Create Account

Support Board


Date/Time: Sat, 21 Dec 2024 13:03:03 +0000



[User Discussion] - Color Price Bars on a MA Crossover?

View Count: 1280

[2014-12-01 00:32:46]
User20200 - Posts: 38
Hello Guys,

I want to set up my Price Bars to be colored based on a Moving Avg Crossover (3 Exp MA crossing 8 Exp MA) on Main Graph Chart.

I need the formula and where to put it?

So the Price Bars will be say Green when the 3 EMA is on top of the 8 EMA and Red visversa...

Thank you so much,

Team One
imageESZ4 2.00 Range #4 2014-11-30 19_29_32.403.png / V - Attached On 2014-12-01 00:30:26 UTC - Size: 66.24 KB - 419 views
Attachment Deleted.
Attachment Deleted.
[2014-12-01 02:04:19]
Sawtooth - Posts: 4141
You'll need two instances of the Color Bar Based On Alert Condition study, one for each color.

Put these formulas on the Alerts tab of the respective color bar study:
green:
=ID1.SG1>ID2.SG1
red:
=ID1.SG1<ID2.SG1
where ID1 is the 3EMA and ID2 is the 8EMA
[2014-12-01 02:14:01]
User20200 - Posts: 38
Thank you perfect as always...

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

Login

Login Page - Create Account