Why a fixed price-momentum threshold can be misleading
A two-point advance can be significant during a quiet session but ordinary during a volatile one. This MultiCharts .NET strategy design compares a five-bar net price change against a trailing average of true range (TR), expressed in the same price units. The normalized score is dimensionless and can be tested across different volatility regimes. It is not a prediction of profitability.
Signal rules and numerical example
For each completed bar, subtract the close five bars earlier from the current close. Divide that signed change by the arithmetic mean of the 14 true ranges immediately preceding the signal bar. True range is the largest of high minus low, absolute high minus previous close, and absolute low minus previous close. The prior-bar-only denominator keeps the current signal bar from increasing its own volatility threshold. This simple average is not Wilder's smoothed ATR.
Consider two hypothetical markets with a five-bar advance of 2.0 points. With mean TR of 1.0, the score is 2.0; with mean TR of 4.0, it is 0.5. A threshold of 1.5 accepts the first and rejects the second, assuming the preceding score was below 1.5. A crossing from below, rather than a continuously true condition, defines a fresh entry event.

Equal net price movement produces different normalized momentum scores when the recent volatility differs. Hypothetical values, not market history.
PowerLanguage .NET C# entry fragment
// Members of a PowerLanguage .NET SignalObject
private IOrderMarket entry;
protected override void Create()
{
entry = OrderCreator.MarketNextBar(
new SOrderParameters(Contracts.Default,
EOrderAction.Buy));
}
private double Score(int offset)
{
double sum = 0.0;
for (int i = offset + 1; i <= offset + 14; i++)
{
double prev = Bars.Close[i + 1];
double tr = Math.Max(Bars.High[i] - Bars.Low[i],
Math.Max(Math.Abs(Bars.High[i] - prev),
Math.Abs(Bars.Low[i] - prev)));
sum += tr;
}
double meanTR = sum / 14.0;
return meanTR > 0
? (Bars.Close[offset] - Bars.Close[offset + 5])
/ meanTR
: double.NaN;
}
protected override void CalcBar()
{
// Set MaxBarsBack to cover offsets through 16.
double now = Score(0);
double prior = Score(1);
// Entry signal fragment: integrate a flat-position
// and working-order guard before live use.
if (prior < 1.5 && now >= 1.5)
entry.Send();
}
Place these members inside a SignalObject class with the normal constructor and namespaces supplied by the .NET Editor template. Configure sufficient MaxBarsBack for data offsets through 16 and use bar-close calculation without intrabar order generation. If the denominator is zero, the NaN score prevents the crossing condition. Create the market order once in Create and send it from CalcBar; see the official MultiCharts .NET order API. Under normal bar-close settings the order targets the next bar, not the observed signal close.
Turn the signal into a complete strategy
Before sending orders in production, require a flat strategy position and no outstanding entry order, set contract quantity explicitly, and reconcile actual fills and rejection events. A possible exit design is a protective stop two trailing mean TR units from the actual entry and a market exit on the next bar when the momentum score crosses below zero. Freeze the initial stop distance at the signal rather than expanding risk as volatility rises. Define behavior for gaps, partial fills, session transitions and restarts. The above code intentionally illustrates entry logic only and does not implement these exits or order guards.
Testing and risk
Compare the normalized rule against a fixed point-change threshold and thresholds 1.0, 1.5 and 2.0, using identical exit logic, commissions and slippage. Review turnover, drawdown, trade count and out-of-sample performance across quiet and volatile periods. Very low historical volatility can amplify the score; consider a minimum volatility floor as a separately tested variation. Market orders can fill far from the expected price. The fragment has not been compiled or backtested here. Leveraged trading may cause substantial losses.
For custom volatility filters, execution safeguards and exit logic, see Custom MultiCharts .NET strategy Development Services.