Moving averages are the building block of many trading tools, yet most traders only ever call a built-in function and never see how the numbers are produced. MA Toolkit calculates three classic averages by hand, so the code can serve as a clear example and as a base for your own indicators:
Two averages are drawn at once (fast and slow), each with its own type and period. The indicator recalculates only new and forming bars, so it stays light on long histories.

Fig. 1. MA Toolkit with a fast EMA(20), a slow SMA(50) and crossover arrows (black and white image, as required by the Code Base image guidelines).
| Input | Default | Purpose |
|---|---|---|
| Fast MA: type (InpFastType) | EMA | Averaging method of the fast line: SMA, EMA or LWMA. |
| Fast MA: period (InpFastPeriod) | 20 | Number of bars of the fast line. Must be 2 or greater. |
| Slow MA: type (InpSlowType) | SMA | Averaging method of the slow line: SMA, EMA or LWMA. |
| Slow MA: period (InpSlowPeriod) | 50 | Number of bars of the slow line. Must be 2 or greater. |
| Applied price (InpPrice) | PRICE_CLOSE | Price used in the calculation: close, open, high, low, median, typical or weighted. |
| Flat-slope threshold (InpFlatThreshold) | 0.0 | Minimum change of the fast MA per bar, in points, to be considered rising or falling. Smaller changes are colored as flat. |
| Show the slow MA (InpShowSlow) | true | Shows or hides the slow line. It is still calculated for crossovers. |
| Show crossover arrows (InpShowCross) | true | Draws arrows where the fast MA crosses the slow MA. |
| Arrow offset from the bar (InpArrowOffset) | 20 | Distance, in points, between an arrow and the high or low of its bar. |
| Show the info panel (InpShowPanel) | true | Shows two text labels in the top-left corner of the chart. |
| Info panel text color (InpPanelColor) | Silver | Color of the info panel text. |
| Pop-up alert on crossover (InpAlertOnCross) | false | Shows an alert when the last closed bar contains a crossover. |
Round Numbers – automatic psychological thresholds
Horizontal lines at round figures around the displayed price, with a spacing that adjusts according to the zoom level.
NY Open Candle: The Basics
A basic expert advisor that trades in the direction of the 9.30 am New York 5-minute candle on index CFDs (US100 / NAS100). One trade per day, fixed stop-loss and take-profit levels, forced closure; no martingale or grid strategy.
Accelerator Oscillator (AC)
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.
MACD Signals
Indicator edition for new platform.