Indicator · Pine Script v5 · On the chart

Dual MA Crossover with Time Filter

by etabebe1

This indicator plots a short and a long simple moving average on the price chart and marks buy and sell labels when they cross, but only inside a user-set clock window.

View on GitHub

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code97
Settings8inputs
LicenceNone stated
Last update1 year ago19 Jun 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

The short and long periods and the start and end times, entered as HHMM integers, control the averages and the filter. A later section of the same file stores the signal close and adds a take-profit label after a fixed price move; that section is cut off and does not close trades. It does not size positions or set a stop.

Details

Published by

etabebe1 on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Moving averages, Sessions & time

Markets

Forex

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Short MA Periodint10shortMAPeriod
Long MA Periodint100longMAPeriod
Start Time (HHMM)int0000startTimeInput
End Time (HHMM)int2359endTimeInput
Short MA Periodint10shortMAPeriod
Long MA Periodint100longMAPeriod
Start Time (HHMM)int0000startTimeInput
End Time (HHMM)int2359endTimeInput
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

257 stars

Donald SPX - Options Trading is an overlay indicator designed for intraday SPX analysis. It plots a 200-period Weighted Moving Average (WMA) on the price chart while evaluating multi-timeframe market structure across Daily, 15-minute, 5-minute, and 2-minute ba

Indicator v5 Moving averagesTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

Midnight VWAP

by TradersPost
218 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap

FDL pro

by cantolab
16 stars

This overlay indicator plots the 100-period and 200-period exponential moving averages on the price chart and marks buy or sell triangles after an EMA crossover when the next two candle opens stay on the correct side of the 100 EMA and price stays within a sym

Indicator v5 Moving averagesSessions & time
Updated 2 months ago · None stated GitHub repository of FDL pro

Market Monitor - 15m

by chris-c-thomas
14 stars

Market Monitor - 15m is a directional bias chart overlay designed for 15-minute intraday chart analysis. It calculates a triple exponential moving average ribbon with EMA cloud shading, session VWAP with multiplier bands, prior day levels, a 30-minute opening

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Market Monitor - 15m
9 stars

Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared

Indicator v6 Support & resistanceSessions & time Repaints
Updated yesterday · MIT GitHub repository of Edge Atlas [WavesUnchained]

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers