
A custom EMA calculation script that allows traders to focus on a specific time range of trading sessions, specifically excluding early pre-market hours.
Explore complementary indicator rolesHow it works
This script modifies the traditional Exponential Moving Average (EMA) calculation by restricting the data points to a specific time range. It targets bars between 08:00 and 23:59, deliberately excluding early pre-market hours from 04:00 to 07:59. By filtering out these early morning hours, the script allows traders to generate a more focused EMA that reflects trading activity during primary market hours.
The time-range filtering mechanism works by selectively including only the bars that fall within the desired timeframe. This means that when calculating the EMA, only data points between 8am and midnight are considered, which can potentially provide a more relevant and precise representation of market movement during active trading periods.
Why it may be useful
Customizing the EMA calculation time range offers traders greater flexibility in analyzing market trends and making informed trading decisions. By excluding early pre-market hours, traders can concentrate on the most liquid and active trading sessions, which typically provide more reliable and meaningful price action.
This approach helps filter out potentially less significant or volatile early morning movements. The ability to define specific time ranges for technical analysis allows traders to align their indicators more closely with their individual trading strategies and preferences. It provides a more tailored approach to trend analysis, enabling more precise entry and exit points based on the most relevant market data.
When to explore it
This time-range EMA script is particularly useful for day traders and scalpers who focus on the most active trading hours. It is especially beneficial for traders who want to eliminate the potential noise and lower liquidity of pre-market sessions from their technical analysis. The script can be particularly valuable in markets with significant early morning volatility or when traders want to concentrate on standard market hours.
Traders should consider using this approach when they want a more refined and focused view of market trends, specifically during peak trading times. It is most effective for those who have identified that the early pre-market hours do not align with their trading strategy or provide less reliable signals compared to the main trading session.
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.



![Candle Colours and EMA Colours [LuciTech] chart preview](/_next/image?url=%2Fmedia%2F28131.png&w=3840&q=90&dpl=dpl_Jt27hmzh6tNsGuJ13vyBBWgv8XSW)


