Fibonacci retracements are among the most widely used tools of technical analysis: after a price swing the market often pulls back by a certain fraction of that swing (23.6%, 38.2%, 50%, 61.8%, 78.6%) before the move continues. Drawing them by hand is slow and subjective, because the trader has to choose the two anchor points of the swing every time.
This indicator does it automatically in three steps:
A swing point is confirmed only after InpSwingRight bars have closed after it, so the leg is always built from completed, non-repainting swing points.

Fig. 1. Auto Fibonacci Retracement on an H1 chart: the latest up leg with its levels and labels, swing points marked with dots; black & white image per Code Base image guidelines (colors are configurable).
| Input | Default | Purpose |
|---|---|---|
| InpSwingLeft | 5 | Number of bars to the left of a swing point that must have a lower high (or a higher low). 1 or more. |
| InpSwingRight | 5 | Number of bars to the right that must have a lower high (or a higher low); also the delay after which a swing is confirmed. 1 or more. |
| InpMinLegPoints | 0 | Minimum size of a swing leg in points; smaller legs are ignored. 0 disables the filter. |
| InpHistoryBars | 3000 | Number of latest bars in which swings are searched when the indicator is loaded (100 or more). |
| InpLevels | 0,23.6,38.2,50,61.8,78.6,100 | Levels in percent, separated by commas (1 to 12 values). Values such as -27.2 or 161.8 draw levels beyond the leg. |
| InpExtendRight | true | Extends the level lines to the right and puts the labels next to the last bar. |
| InpShowLabels | true | Shows a label with the level and its price for every line. |
| InpLevelColor | clrGoldenrod | Color of the level lines and their labels. |
| InpLegColor | clrGray | Color of the line that joins the two swing points. |
| InpShowPivots | true | Marks the swing highs and lows with dots. |
| InpShowInfoLabel | true | Shows the label with the swing and the current retracement. |
| InpLabelColor | clrSilver | Color of the info label. |
The colors of the swing dots can be changed on the "Colors" tab of the indicator properties.
Risk Lot Calculator - lot size from risk percent and stop distance
Small include file that gives you the lot size from risk in percent (or fixed money) and the stop loss distance. Rounds always down, checks min/max lot and free margin.
Closed Trades to CSV - one row per closing deal (partial closes, reversals)
Exports closed trades to a CSV file, one row per closing deal: partial closes, close-by and netting reversals are split, each row with the position's open time, volume-weighted open price and its share of the entry commission.
False Breakout Envelope
False breaks at an ATR envelope, drawn as trades: price pushes through a band, closes back inside, and a box runs from the entry to the moving midline, with the stop as a thick line. Each label prints the win rate of earlier signals in the same RSI zone, and a corner card charts it for every zone.
Prop Firm News Window Countdown and Spread Monitor
Tracks live MQL5 economic calendar events and real-time Bid-Ask spread in a chart HUD, exposing three iCustom buffers for EA news and spread gating.