How to Create a Condition for Price Crossing a Moving Average
Plotted indicators can be used to create a variety of conditions (behaviors). In this example price and a moving average are used to create a crossover condition. The same steps will work for crossover conditions on any indicator. Here are the steps.
1. Click on the label for the Price Plot at the top of the chart.
2. Click on Create Condition.
3. Click on the condition drop down menu.
4. Select your desired relationship between price and the moving average.
5. Set time for the condition to occur
The true field will let you set parameters for when or how often the condition returned true.
- Now = Condition is true for current bar
- x bars ago = Condition was true specified number of bars ago
- within last x bars = Condition was true at least once within the specified period of bars
- x bars in a row = Condition has been true for the last specified number of bars
4. Apply the condition
Select from the Apply To menu the way you want to apply the condition set.
- Window in Current Layout (opens target mode with option to choose any window)
- New Filtered WatchList (Opens new window with default WatchList and sorts by condition set)
- New Market Gauge (summary of scan results over time)
- New Market Indicator (historical scan plot)
- New True/False Column in WatchList (sortable T/F column in current active WatchList)
- New Data Grid (creates new Data Grid with the condition set as an entry)
- Color Price Plot (colors price plot each time the condition occurs historically)
- Copy to Clipboard (copy conditions to computer clipboard for reuse)
For instructions to Save Conditions to the library click here.
1. Click on the label for the Price Plot at the top of the chart.
Click on Create Condition.
2. Click the plus sign "+" next to price history to add a child indicator.
3. Select the desired moving average type.
4. Click on the indicator title to edit the child indicator. Set desired parameters. Select OK.
5. Click on the condition drop down menu.
6. Select your desired relationship between price and the moving average.
7. Set time for the condition to occur
The true field will let you set parameters for when or how often the condition returned true.
- Now = Condition is true for current bar
- x bars ago = Condition was true specified number of bars ago
- within last x bars = Condition was true at least once within the specified period of bars
- x bars in a row = Condition has been true for the last specified number of bars
8. Apply the condition
Select from the Apply To menu the way you want to apply the condition set.
- Window in Current Layout (opens target mode with option to choose any window)
- New Filtered WatchList (Opens new window with default WatchList and sorts by condition set)
- New Market Gauge (summary of scan results over time)
- New Market Indicator (historical scan plot)
- New True/False Column in WatchList (sortable T/F column in current active WatchList)
- New Data Grid (creates new Data Grid with the condition set as an entry)
- Color Price Plot (colors price plot each time the condition occurs historically)
- Copy to Clipboard (copy conditions to computer clipboard for reuse)
For instructions to Save Conditions to the library click here.