Support Board
Date/Time: Fri, 07 Feb 2025 18:23:39 +0000
[User Discussion] - color bar based on alert condition
View Count: 1841
[2013-05-02 15:30:45] |
Avio - Posts: 14 |
I’m using two different moving averages and would like to get a signal when their slopes turn in the same direction. Is there a way to stop the repetition of the signal until next cycle using color bar based on alert condition? Looking at the attached picture – I would like to get only the “stars” on 8:45 and 10:15 bars and be able to prevent the appearance of the rest of the stars. Is that possible and if so, what condition should I write? Thanks http://www.sierrachart.com/image.php?l=1367508483129.png |
[2013-05-02 16:13:15] |
Sawtooth - Posts: 4173 |
Try this: Upslopes: =OR(AND(ID1.SG1>ID1.SG1[-1],ID1.SG1[-2]>ID1.SG1[-1],ID2.SG1>ID2.SG1[-1]),AND(ID2.SG1>ID2.SG1[-1],ID2.SG1[-2]>ID2.SG1[-1],ID1.SG1>ID1.SG1[-1])) Downslopes: =OR(AND(ID1.SG1<ID1.SG1[-1],ID1.SG1[-2]<ID1.SG1[-1],ID2.SG1<ID2.SG1[-1]),AND(ID2.SG1<ID2.SG1[-1],ID2.SG1[-2]<ID2.SG1[-1],ID1.SG1<ID1.SG1[-1])) Where ID1 and ID2 are the MAs. Edit as needed. |
To post a message in this thread, you need to log in with your Sierra Chart account: