Login Page - Create Account

Support Board


Date/Time: Mon, 06 Apr 2020 15:10:41 +0000



Highlighting bars based on moving average

[2020-03-19 17:32:04]
User525965 - Posts: 15 | Ending Date: 2020-04-15
Hi,
Is there a way i can highlight bars green or red using a simple moving average cross?
Ex. if 8 period close > 8 period open = green bar
8 period close < 8 period open = red bar.

Thanks!
[2020-03-20 03:53:02]
Sierra Chart Engineering - Posts: 83164 | Ending Date: 2020-06-09
Yes, this can definitely be done using the Color Bar Based on Alert Condition study. Refer to the information here:
https://www.sierrachart.com/index.php?page=doc/StudiesReference.php&ID=245&Name=Color_Bar_Based_on_Alert_Condition

Also, refer to the information for how to create alerts here:
https://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php
Sierra Chart Support - Engineering Level

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

If your question/request has been answered and you do not have anything further, then it is easiest for us if you do not reply again to say thank you.
[2020-03-26 17:38:31]
User525965 - Posts: 15 | Ending Date: 2020-04-15
Thank you. I was able to get the bar colored based on the 8 period moving average open vs. close using this:
=ID2.sg1 < ID9.sg1

I am also wanting to add to this a condition where the Close of the bar is less than the open.
C < O

How do i combine them together? When I put "and"between them nothing happens.
=(ID2.sg1 < ID9.sg1) and C < O
[2020-03-26 19:05:12]
John - SC Support - Posts: 1693 | Ending Date: 2020-04-29
Refer to the information here:
https://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php#ORANDFunctions
[2020-03-26 20:09:22]
User525965 - Posts: 15 | Ending Date: 2020-04-15
I saved these studies as a collection. But i dont see how i can add them to another chart. Is there any easy way to just add the collection of studies to a new chart?

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

Login

Login Page - Create Account