The panel updates every second and immediately when a line is dragged.
| Panel row | Meaning |
|---|---|
| Risk | Risk % and the money it represents |
| Entry | Ask for a buy, bid for a sell |
| Stop | Stop price and distance in points |
| 1 lot loses | Money lost by 1.00 lot between entry and stop |
| LOTS | Size rounded down to the volume step (raw value in brackets) |
| At risk | Money actually at risk at that size |
| Target | Reward:risk of the target line |
Pip-value formulas break on gold and CFDs: contract sizes differ between brokers (100 oz, 10 oz, 1 oz), profit currencies differ, and the account may be in EUR, GBP or INR. The panel asks the terminal with OrderCalcProfit() how much 1 lot loses between entry and stop, using the broker's own contract specification.
double LossPerLot(const ENUM_ORDER_TYPE t,const double entry,const double sl) { double p=0.0; if(!OrderCalcProfit(t,_Symbol,1.0,entry,sl,p)) return(0.0); return(MathAbs(p)); } // lots = equity * risk% / 100 / LossPerLot(...), rounded down to SYMBOL_VOLUME_STEP
A wider stop gives a smaller size; the money at risk stays the same. If the minimum lot would already risk more than your budget, the panel shows 0.00 in red: the stop is too wide for that account size.
| Input | Default | Description |
|---|---|---|
| Risk per trade, % | 0.50 | Risk per trade |
| Risk base | Equity | Equity or balance |
| Initial stop, ATR × | 3.0 | Where the stop line first appears |
| ATR timeframe | H1 | ATR timeframe |
| Show target line | true | Reward:risk line |
| Initial target, R | 2.0 | Where the target line first appears |
| Panel X / Y, colours | — | Layout |
Author: Shipra Gupta (SGupta30) · the author's Market EAs size every trade this way, with a hard stop on every position.
Volatility Squeeze Scanner — Bollinger inside Keltner, with momentum histogram
Shows when volatility is compressed (Bollinger Bands inside the Keltner Channel) and which way it releases. Red dots = squeeze on, green = released, four-colour momentum histogram. Wilder ATR, closed bars, no repaint.
Gold Donchian Breakout Channel (non-repainting, with HTF trend filter)
Donchian channel of the N bars before each bar, midline and confirmed breakout arrows that never repaint. Optional D1 EMA-slope filter shows only breakouts in the higher-timeframe trend. Alerts and push. Any symbol.
Gold Trend Breakout Lite — educational XAUUSD trend-following EA
Open-source gold EA built on XAUUSD's multi-day trend persistence: H1 Donchian breakout in the direction of the D1 EMA slope, 3×ATR hard stop, break-even at +1R. Fixed lot, one position, no grid, no martingale.
Hull Moving Average with Slope Color Change
Hull Moving Average that changes color with its slope: one color while the line rises, another while it falls, a neutral one when it is flat, with optional arrows at the turns.