Strategy · Pine Script v5 · On the chart

8-55 EMA Crossover NQ/MNQ Futures Strategy

by TradersPost

This strategy trades exponential moving average crossovers designed for NQ and MNQ futures contracts on intraday timeframes.

View on GitHub

Repaints

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code246
Settings21inputs
LicenceNone stated
Last update1 year ago20 Dec 2024

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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

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

8-55 EMA Crossover NQ/MNQ Futures Strategy calculates three EMAs (8, 55, and 165 periods) and generates entry signals during a user-defined trading session when previous day volume thresholds are met. Exits are managed using a percentage-based trailing stop loss or fixed session windows. Inputs allow toggling long and short trades, customizing EMA lengths, adjusting retest bar windows, and setting trailing stop parameters. It overlays directly on the price chart and recalculates on every tick, causing live bar repainting.

Details

Published by

TradersPost on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Trend, Moving averages, Sessions & time

Markets

Indices

Timeframes

M1-M5, M15-H1

Risk Notes

  • Signals can change on the live bar or after it closes (repainting)

Settings

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

SettingTypeDefaultVariable
From Monthint1fromMonth
Dayint1fromDay
Yearint2018fromYear
To Monthint1thruMonth
Dayint1thruDay
Yearint2300thruYear
Position Entry Windowsession0900-1455tradeTimes
Previous Day Volume Thresholdint1000minPrevDayVolume
Default Contract Quantityint1defaultQty
Close Above 8 EMA within X Barsint6retestBars
Attach Broker Trailing StopboolfalseattachTrail
Allow Longsbooltrueallow_long
Show all 21 settings
SettingTypeDefaultVariable
Trail Long Loss (%)float0.75longTrailPerc
Trail Long SourcesourcehighlongTrailSrc
Allow Shortsboolfalseallow_short
Trail Short Loss (%)float1shortTrailPerc
Trail Short SourcesourcelowshortTrailSrc
5m EMA 1 Lengthint8ema1len
5m EMA 2 Lengthint55ema2len
15m EMA Lengthint165ema15len
EMA Sourcesourceclosesrc
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 - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures

Andean Scalping

by hasnocool
106 stars

Andean Scalping is a Pine Script v5 strategy template designed for backtesting trading signals. It features session and date-range filtering, directional trade toggles for long and short entries, and optional trend filtering tools including higher-timeframe EM

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Andean Scalping

This strategy plots a 90-period simple moving average from the daily and four-hour charts plus a daily session VWAP on the price chart. It enters long when VWAP is above the daily average and the four-hour VWAP crosses above its average, and short in the oppos

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · MIT GitHub repository of 1D Bullish Buy 4H Bearish Sell Session
4 stars

This strategy trades directional momentum breakouts for crude oil on the price chart. It enters long or short positions when a fast exponential moving average crosses a slow exponential moving average, provided that current Average True Range exceeds its movin

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of CL Crude Oil Momentum [trugurpala]
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated yesterday · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers