CustomAverage is a self-contained, non-repainting trend indicator built around a double-averaging idea: a fast base average is computed directly from price, and a second, independent smoothing stage is then applied on top of it. The result is a single adaptive line that reacts to price faster than a single long-period moving average, yet stays noticeably calmer than a single short-period one.
A plain moving average forces a compromise between responsiveness and noise: shorten the period and it hugs price but whipsaws in ranges; lengthen it and it lags every real turn. CustomAverage avoids that single trade-off by splitting the job into two independent filters:
Every value is calculated once, from left to right, strictly from bars that are already closed relative to the bar being processed - the indicator never looks into the future and never repaints historical values. On each new tick the code recalculates only the bars that changed (rates_total / prev_calculated), so it stays light even on deep history and low timeframes.

Fig. 1. CustomAverage plotted on a price chart (black & white, per Code Base image guidelines).
| Variable | Default value | Description |
|---|---|---|
| InpMAPeriod | 14 | Period of the Stage 1 base average. |
| InpMAMethod | MODE_EMA | Averaging method for Stage 1: SMA, EMA, SMMA, or LWMA. |
| InpAppliedPrice | PRICE_CLOSE | Price series fed into Stage 1 (close, open, high, low, median, typical, or weighted). |
| InpSmoothPeriod | 5 | Period of the Stage 2 smoothing applied to the Stage 1 result. A value of 0 or 1 disables Stage 2 and the indicator behaves as a plain single-stage average. |
| InpSmoothMethod | MODE_SMMA | Averaging method for Stage 2: SMA, EMA, SMMA, or LWMA. |
| InpShowSignals | true | Enables/disables the price/average crossover arrows. |
| InpArrowUpCode | 233 | Wingdings symbol code used for the bullish crossover arrow. |
| InpArrowDownCode | 234 | Wingdings symbol code used for the bearish crossover arrow. |
| InpArrowUpColor | clrLime | Color of the bullish crossover arrow. |
| InpArrowDownColor | clrRed | Color of the bearish crossover arrow. |
| InpColorUp | clrDodgerBlue | Line color while the average is rising. |
| InpColorDown | clrOrangeRed | Line color while the average is falling. |
| InpLineWidth | 2 | Width of the plotted line, in pixels. |
| InpShowLabel | true | Shows/hides the on-chart text label with the current numeric value of the average. |
| InpLabelCorner | CORNER_RIGHT_UPPER | Chart corner used to anchor the value label. |
Reverse RSI Bands
Reverse RSI Bands is a leading indicator that mathematically reverse-engineers the RSI formula. It plots precise target price bands directly on the main chart, showing exactly at what price the RSI will hit your specified overbought or oversold levels in real-time.
Session Opening Range Breakout EA
An Expert Advisor that measures the high/low of a defined session opening window, then trades the confirmed breakout of that range with risk-based position sizing and a one-trade-per-session cap.
Broker Spec Inspector
Prints the invisible contract limits that silently reject orders: stops level, freeze level, min/step/max lot, tick size and value, spread type, execution mode, swaps, and the margin needed for the minimum lot against your free margin.
BMP Chart Wallpaper
BMP Chart Wallpaper Background for MT5