Fixed Bands
The Fixed Bands are a moving average with two bands a fixed number of points away from it: MA ± margin · point.
Role in the strategy
| Slot | Available | Role |
|---|---|---|
| Entry Point | Yes | Enters at the upper or lower band. |
| Entry Rule | Yes | Filters entries by the bar open or the bar close relative to the bands. |
| Exit Point | Yes | Exits at the upper or lower band. |
| Exit Rule | Yes | Triggers exits by the bar open or close position relative to the bands. |
As a point indicator the bands are the pending order levels; as a rule the indicator filters entries (AND) or triggers exits (OR). See Indicators for the slot semantics.
As an exit point it places resting orders the bar reaches, so it allows no exit rules: Exit Rules are available only behind Bar Open or Bar Close.
Logic rules
- Entry Point: Enter long at Upper Band, Enter long at Lower Band.
- Exit Point: Exit long at Upper Band, Exit long at Lower Band.
- Rule slots:
| Rule | Long order price | Short order price |
|---|---|---|
| Enter/Exit long at Upper Band | Upper Band | Lower Band |
| Enter/Exit long at Lower Band | Lower Band | Upper Band |
- Entry Rule / Exit Rule:
| Rule | Long signal is 1 when | Short signal is 1 when |
|---|---|---|
| The bar opens above Upper Band | bar open is above the upper band | bar open is below the lower band |
| The bar opens below Lower Band | bar open is below the lower band | bar open is above the upper band |
| The bar opens below Upper Band after opening above it | bar open fell back below the upper band | bar open rose back above the lower band |
| The bar opens above Upper Band after opening below it | bar open rose above the upper band | bar open fell below the lower band |
| The bar opens below Lower Band after opening above it | bar open fell below the lower band | bar open rose above the upper band |
| The bar opens above Lower Band after opening below it | bar open rose above the lower band | bar open fell below the upper band |
| The bar closes above Upper Band | bar close is above the upper band | bar close is below the lower band |
| The bar closes below Lower Band | bar close is below the lower band | bar close is above the upper band |
| The bar closes below Upper Band after closing above it | bar close fell back below the upper band | bar close rose back above the lower band |
| The bar closes above Upper Band after closing below it | bar close rose above the upper band | bar close fell below the lower band |
| The bar closes below Lower Band after closing above it | bar close fell below the lower band | bar close rose above the upper band |
| The bar closes above Lower Band after closing below it | bar close rose above the lower band | bar close fell below the upper band |
The six The bar closes rules are exit-only (Exit Rules): they compare the close of the bar the rule reads with the band of that same bar.
No band-open pin is needed: the band is computed from a moving average, so the bar open of the judged bar can sit outside it (the Bollinger rule).
Parameters
| Parameter | Type | Default | Range | Purpose |
|---|---|---|---|---|
| MA method | select | Simple | Simple, Exponential, Weighted, Smoothed | Method of the moving average |
| Apply to | select | Close | Open, High, Low, Close, Median, Typical, Weighted | Price series the average is calculated from |
| Period | number | 20 | 2 to 1000 | Bars of the moving average |
| Margin in points | number | 40 | 1 to 2000 | Distance of each band from the average, in points |
Calculation
- A moving average of the selected price is computed with the selected method (
tech.movingAverage).
Upper Band = MA + Margin · pointandLower Band = MA − Margin · point; both lines are drawn on the main price chart.
Unlike Envelopes the band is a fixed distance, not a percentage, so it does not breathe with the price.
Backtesting
- As an entry point the pending orders sit at the two band levels; the intrabar interpolation decides which side fills when both levels are inside the bar.
- As a rule the indicator contributes only the long/short signal arrays. Comparisons use the standard dead zone (
SIGMA = 0.000001). - A level the price gapped across moves to the bar open, so an order is never missed on a gap.