Analysis Techniques & Strategies
Name | Type | Default | Description |
Price | Numeric | Close | Price upon which the moving average is based. |
Length | Numeric | 9 | Number of bars used to calculate the moving average. |
ConfirmBars | Numeric | 1 | Number of consecutive bars in which the price must be greater than the moving average. |
Long entry based on prices being above a moving average for a consecutive number of bars.
A long entry order is placed for the next bar at open when the Price (Input) crosses above the moving average and remains above it for ConfirmBars (Input) number of bars.
You can change the Price and Length (Input) used to calculate the moving average, as well as the number of bars the Price must be above the average. When the input ConfirmBars is set to 1, the long entry order is generated immediately upon the crossover.
Order Name: MACrossLE
Related Strategy: MovAvg Cross SE
Related Function(s): AverageFC