Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 17:33:56 +0000



Color EMA Based on Above/Below Price

View Count: 1968

[2014-05-27 14:10:27]
infpz - Posts: 826
Is this possible? Function would be similar to the Color Bar Based on Study, but I want to color the EMA, not the bar.
[2014-05-28 08:44:00]
Sierra Chart Engineering - Posts: 104368
This can be done with the Color Bar Based on Alert Condition Study:
http://www.sierrachart.com/index.php?l=doc/doc_TechnicalStudiesReference.html#s245

The documentation explains how to color a Subgraph of another study.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-05-30 15:26:03]
infpz - Posts: 826
OK. this is working, but what I'm looking to do is have the EMA colored when the market is above the EMA, and a different color when it's below. It appears that this function colors then entire EMA, when I want the color vary depending on where the market is, kind of how the line looks like when you have color bar based no slope selected in subgraphs.
[2014-05-31 01:07:24]
vegasfoster - Posts: 444
You have to use two, assuming ema is ID1 and first color bar is ID2, enter alert formula the first color bar study as =C>ID1.SG1 and set the second color bar study as =ID2.SG1=0

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

Login

Login Page - Create Account