Page 2 of 2

Re: Position sizing from ATR on M1 without turning it into indicator soup

Posted: Sun Sep 27, 2026 10:02 pm
by LondonScalper
Freezing the ATR at a set time is close to what I do by hand, so no argument on the principle. Two details from actually running it.

First, which fourteen bars. An M1 ATR(14) taken at 08:00 London is mostly 07:46–07:59, pre-open bars that are often quieter than what follows. I take my snapshot at about 08:15 so the ruler includes some real open activity. Any later and the number becomes hostage to whichever spike came first.

Second, the line-to-lots tool is handy, but I keep one manual check: if the calculated size is more than roughly 1.5× my usual lot for that pair, I stop and look again. Nine times out of ten it means the stop is too tight relative to the ATR, not that the market is offering a bargain. A script will happily size a three-pip stop up to a full 1R.

Beyond that the approach is sound. Sizing belongs before the chart gets interesting.

Re: Position sizing from ATR on M1 without turning it into indicator soup

Posted: Sat Oct 03, 2026 4:22 pm
by LondonNewsTrader
PTScalper wrote: When the server time matches your session open, we snapshot the last closed bar's ATR and freeze it in state.
Freezing the value is sensible; a baseline that keeps moving makes the sizing drift during the very hour you care about. Two practical gaps in the snippet. OnBar fires on the bars of the chart the cBot is attached to, so on an M15 chart it only runs at :00, :15, :30 and :45. A snapshot time like 07:00 works by luck, but 07:05 would never match, and the comment about checking M1 time doesn't change that. Subscribing to the M1 series' BarOpened event, or comparing against a stored date in OnTick, makes it independent of the chart.

The second gap is restarts. If the bot is restarted at 09:30, _frozenAtr stays at zero until tomorrow's open. Recomputing it from the M1 bar that closed at the snapshot time, using the history, fixes that.

Also worth knowing what the frozen number measures: the 14 minutes before the London open are usually the quietest of the morning, so the baseline will understate the noise of the first hour. Fine as long as the multiplier reflects that.

Re: Position sizing from ATR on M1 without turning it into indicator soup

Posted: Sat Oct 17, 2026 1:05 pm
by FXS Prop Desk
PTScalper wrote:If your structural stop is 5 pips, but the current M1 ATR is printing 7 pips, you are placing a stop inside random noise.
This check is the most useful part of ATR for sizing. A simple formula to apply it: lots = risk in account currency / (max(structural stop, k × ATR) × pip value), where k is usually between 1 and 1.5. The structure decides where the stop goes, ATR only decides the minimum distance, and position size always adapts so the cash risk stays constant.

For accounts where the computed lot size falls below the broker's minimum, the trade should be skipped rather than taken at minimum size, otherwise the actual risk exceeds the plan.