Support Board
Date/Time: Wed, 22 Jan 2025 20:47:56 +0000
Post From: building an alert
[2018-10-15 16:45:46] |
John - SC Support - Posts: 37407 |
In order to check for the slope, you would just need to compare the current bar value against the previous bar value and see if it is less than the previous for a down-slope (or higher for an up-slope). Then you need to just check for a crossover of the bar with each of the Moving Averages. Here is an example alert assuming 200(EMA) is ID1.SG1, 120(EMA) is ID2.SG1, 21(Simple) is ID3.SG1 and 15(EMA) is ID4.SG1 and that we are looking for a down slope: = AND (ID1.SG1 < ID1.SG1[-1], ID2.SG1 < ID2.SG1[-1], ID3.SG1 < ID3.SG1[-1], ID4.SG1 < ID4.SG1[-1], CROSSOVER(C, ID1.SG1), CROSSOVER(C, ID2.SG1), CROSSOVER(C, ID3.SG1), CROSSOVER(C, ID4.SG1)) You can get fancier with the CROSSOVER and use CROSSFROMBELOW or CROSSFROMABOVE instead if you need the bar to be moving in a specific direction. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |