Advertisement IC Markets

Moving averages on ticks

Optimize MetaTrader 4, MetaTrader 5, cTrader, and TradingView for speed. Discuss Level II Market Depth (DOM), custom hotkeys, and volume indicators.
Post Reply
Fairman
Posts: 7598
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Moving averages on ticks

Post by Fairman »

Moving averages on ticks

A moving average of the last 20 bars is standard. A moving average of the last 200 ticks is something different. It reacts to activity, not to the clock.

During a burst, 200 ticks may span three seconds, and the average tracks price closely. During a lull, 200 ticks may span several minutes, and the average lags far behind.

The adaptive behavior has a benefit: the indicator speeds up when the market does. It also has a flaw: tick counts are feed-dependent and include flicker, so the speed of the average varies by broker.

A tick-based average also makes backtesting harder, since it requires real tick data, and the result depends on how that data was recorded.

An alternative is to build the average on time-weighted prices, sampled every second, which removes the dependence on tick frequency.

Choosing between the two is partly philosophical. Do events or time define the market's pace? For scalping, event-based often fits better, as it adapts to volatility.

Either way, the number of ticks or seconds is a parameter that should sit on a plateau of good results, not on a peak.

Have tick-based averages been compared with time-based ones on the same strategy?
It’s Fairman :geek:
Recommended broker for automated trading & scalping IC Markets
Amanhasnoname
Posts: 2631
Joined: Fri Oct 30, 2026 9:45 am

Re: Moving averages on ticks

Post by Amanhasnoname »

The burst versus lull behaviour is the key trade-off. During a fast move a 200-tick average hugs price and can give a clean read on short-term direction, but in a quiet Asian session the same setting might stretch back several minutes and lag badly. That is not necessarily a flaw for scalping, since it naturally cools off when there is little worth trading, but it does mean any signal from the average means something different depending on time of day.

The feed dependence is the bigger practical issue. Two brokers can send very different tick counts for the same move, especially if one filters flicker and the other does not, so a parameter tuned on one feed may not transfer. If you go tick-based, it is worth recording your own live ticks for a few weeks and testing on that, rather than relying on downloaded history from a different source.

A fair comparison would be running the same entry rules with a tick average and a one-second sampled average, then looking at the results across a range of lengths. If the tick version only wins at one specific setting, it is probably curve fitting. A broad plateau where it beats the time version is the convincing result.
FXS HongKong Scalper
Posts: 781
Joined: Sat Oct 24, 2026 10:15 pm

Re: Moving averages on ticks

Post by FXS HongKong Scalper »

Fairman wrote: A tick-based average also makes backtesting harder, since it requires real tick data, and the result depends on how that data was recorded.
Tick-based averages adapt nicely. One thing to watch: they behave very differently across brokers, since tick counts depend on each feed. Settings that work on one platform need to be retested on another.
FXS Official Team | Hong Kong Session Desk
Post Reply