Stop Placement: Connect Structure, Risk and Position Size
A robust stop-loss pipeline joins three separate questions: where the setup becomes invalid, how much money may be lost, and what position size keeps that loss inside the permitted risk envelope.
Structure defines distance
Measure the distance from the planned entry to the technical invalidation point. That distance belongs to the setup and should not be chosen from the desired lot size.
Risk defines size
Once stop distance is known, the monetary risk budget can be converted into position size using the instrument contract specification. A tighter valid stop may permit more size; a wider valid stop requires less.
Portfolio risk has the final vote
A trade can be individually valid and still be rejected because aggregate exposure, concentration or current open risk is already too high. Final execution permission should therefore be SAFE, REDUCE or BLOCK.
Implementation checklist
Automation principle: structure is useful only when the engine can express it as observable conditions, explicit states and a deterministic permission to act or wait.
Educational content for software design and trading-system research. Not investment advice. No profit is guaranteed.