OPEN-SOURCE SCRIPT
STRX - Multi MA [Touch Detect]

STRX - Multi MA [Touch Detect] is an overlay indicator that plots up to five independently configurable moving averages on the chart. Each moving average can use the chart timeframe or a selected custom timeframe through the Time Frame input, making it possible to combine local and higher-timeframe dynamic levels in a single view.
How it works
The script calculates up to five moving averages, each with its own visibility, length, type, color, touch marker setting, and timeframe selection. When the candle range intersects a moving average value, the script prints a small marker directly on that level to highlight the touch event without adding excessive visual noise to the chart.
Touch detection concept
A touch is detected when the candle’s high-low range crosses the moving average value. This marker is intended as a visual reference only: it helps identify moments when price interacts with a dynamic level, which can be useful for monitoring reactions, retests, confluence areas, or contextual confirmation.
Multi-timeframe structure
Each moving average can remain on the chart timeframe by leaving the Time Frame input empty, or it can be calculated from a custom timeframe. This allows traders to display, for example, higher-timeframe moving averages directly on lower-timeframe charts while keeping all selected averages inside the same overlay.
Inputs
Show MA: enables or disables each moving average.
Show Touch Marks: displays or hides touch markers for the selected moving average.
Length: defines the moving average period.
Type: selects the moving average method, including SMA, EMA, WMA, RMA, and VWMA.
Time Frame: uses the chart timeframe when empty, or a custom timeframe when specified.
Color: sets the display color of the moving average and its touch marker.
Use cases
This indicator can be used to monitor multiple moving averages at once, compare reactions across different dynamic levels, and keep higher-timeframe moving averages visible on lower-timeframe charts. It is designed to support chart reading and market context analysis rather than to function as a standalone entry or exit system.
Notes
Higher-timeframe values requested through the Time Frame input may update according to the source timeframe structure, so their behavior can differ from averages calculated directly on the chart timeframe. As with any analytical tool, this script should be used together with broader market structure analysis and risk management.
How it works
The script calculates up to five moving averages, each with its own visibility, length, type, color, touch marker setting, and timeframe selection. When the candle range intersects a moving average value, the script prints a small marker directly on that level to highlight the touch event without adding excessive visual noise to the chart.
Touch detection concept
A touch is detected when the candle’s high-low range crosses the moving average value. This marker is intended as a visual reference only: it helps identify moments when price interacts with a dynamic level, which can be useful for monitoring reactions, retests, confluence areas, or contextual confirmation.
Multi-timeframe structure
Each moving average can remain on the chart timeframe by leaving the Time Frame input empty, or it can be calculated from a custom timeframe. This allows traders to display, for example, higher-timeframe moving averages directly on lower-timeframe charts while keeping all selected averages inside the same overlay.
Inputs
Show MA: enables or disables each moving average.
Show Touch Marks: displays or hides touch markers for the selected moving average.
Length: defines the moving average period.
Type: selects the moving average method, including SMA, EMA, WMA, RMA, and VWMA.
Time Frame: uses the chart timeframe when empty, or a custom timeframe when specified.
Color: sets the display color of the moving average and its touch marker.
Use cases
This indicator can be used to monitor multiple moving averages at once, compare reactions across different dynamic levels, and keep higher-timeframe moving averages visible on lower-timeframe charts. It is designed to support chart reading and market context analysis rather than to function as a standalone entry or exit system.
Notes
Higher-timeframe values requested through the Time Frame input may update according to the source timeframe structure, so their behavior can differ from averages calculated directly on the chart timeframe. As with any analytical tool, this script should be used together with broader market structure analysis and risk management.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
Open-source script
In true PulseWire spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by PulseWire. Read more in the Terms of Use.
