Login Page - Create Account

Support Board


Date/Time: Thu, 06 Nov 2025 02:49:01 +0000



Post From: Filter signals based on price being above or below a moving average

[2025-11-04 18:41:41]
John - SC Support - Posts: 42801
The "Stochastic Crossover System" is it's own system with Buy/Sell signals generated based on the Stochastic Slow lines. So we are not certain how what you are asking relates to this study, as it does not have a Simple Moving Average that you specifically set.

If you are asking how to have a Buy signal when price is above a particular 200 period SMA, and a Sell Signal when the price is below that 200 period SMA, then you would need two copies of the "Color Bar Based on Alert Condition" study to do this. One copy for the Buy situation and one for the Sell situation.

For the Buy setup, you would enter an Alert Condition that looks like the following:
=C > ID1.SG1

Where "C" is the Close (Last) of the bar, or the current price. "ID1" is the ID of the Simple Moving Average study. And "SG1" is the subgraph of the Simple Moving Average study that actually contains the data.

If you then want a down pointing green arrow to print at the bar, then set the "Draw Style" for the "Color Bar" subgraph of the "Color Bar Based on Alert Condition" to be "Down Arrow" and the color to "Green". Then set the following Inputs for the study to have the arrow at the high of the bar:
- Output When Condition True: Use Input Data
- Input Data: High

We leave the rest to you.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing