Strategy · Pine Script v5 · On the chart

Combined Strategy

by Dropio12

This strategy plots buy and sell markers on the price chart by combining a fast and slow ALMA crossover with a simple close-to-close momentum check.

View on GitHub

GitHub stars7on the repository
Pine versionv5runs as is
Lines of code429
Settings40inputs
LicenceNone stated
Last update2 years ago21 Jan 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

A long marker appears when the fast ALMA crosses above the slow ALMA and momentum is positive. A short marker appears when price is below a 165-period SMA and momentum is strongly negative. It also draws both ALMA lines and ATR-based upper and lower bands. Inputs change the CCI or momentum source, RSI divergence filter, mean-reversion band width, and volume-delta display. The shown code does not define stop loss or exit rules.

Details

Published by

Dropio12 on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Trend, Oscillators & momentum, Moving averages, Volume

Markets

Crypto

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Settings

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

SettingTypeDefaultVariable
Entry Signal SourcestringCCIccimomCross
CCI/Momentum Lengthint10ccimomLength
Find Regular Bullish/Bearish DivergencebooltrueuseDivergence
RSI Overbought Levelint65rsiOverbought
RSI Oversold Levelint35rsiOversold
RSI Lengthint14rsiLength2
Plot Mean Reversion Bands on the chartboolfalseplotMeanReversion
Lookback Period (EMA)int200emaPeriod
Outer Bands Multiplierfloat1.8bandMultiplier
Calculation MethodstringvdT1vdCM
Lower Timeframe PrecisionstringAutovdLT
Volume DeltastringvlT3vdHG
Show all 40 settings
SettingTypeDefaultVariable
Cumulative Volume DeltastringcvdT4cvdSH
Volume Delta/Price Bar DivergencesboolfalsevdDV
vdCLcolorcolor.new(#ff9800, 3)vdCL
Volume Delta Numerical ValuesboolfalsevdNV
vdLSstringTinyvdLS
Volume MAbooltruevlMA
vlLNint13vlLN
vlMCcolorcolor.new(#ff9800, 43)vlMC
CVD SmoothingbooltruesigSH
sigMLint7sigML
sigCcolorcolor.new(#FF6D00, 33)sigC
Volume Delta : Positivecolorcolor.new(#26a69a, 33)vdUC
Negativecolorcolor.new(#ef5350, 33)vdDC
Volume Histogram : Growingcolorcolor.new(#9598a1, 53)vlUC
Fallingcolorcolor.new(#9598a1, 83)vlDC
Display Lengthint100vdLN
PlacementstringBottomvdPL
Volume Delta Heightfloat.7vdHT
Volume Histogram Heightfloat.7vlHT
Vertical Offsetfloat.07vvVO
CVD Line, Widthint2cvdW
Colorcolorcolor.new(#2962FF, 33)cvdC
CVD Area/Baseline, Gradient Coloringcolorcolor.new(#2962FF, 89)cvdBU
cvdBDcolorcolor.new(#FF6D00, 89)cvdBD
CVD Candles Color, Positivecolorcolor.new(#26a69a, 13)cvdCU
Negativecolorcolor.new(#ef5350, 13)cvdCD
CVD/Smoothing BackgroundbooltruesigBG
sigBTint89sigBT
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

Altered OBV On MACD

by hasnocool
106 stars

This strategy calculates and plots 9, 21, 50, 90, and 200-period Simple Moving Averages on the main price chart. It constructs a modified On-Balance Volume (OBV) metric and calculates a MACD oscillator based on this custom volume series rather than price. Long

Strategy v5 Moving averagesVolume
Updated 2 years ago · GPL-3.0 GitHub repository of Altered OBV On MACD
12 stars

This strategy enters long when a fast EMA crosses above a slow EMA and RSI, ADX, and volume all clear their thresholds. It sizes the order from a percentage of equity and an ATR stop distance, then sets a partial profit target at a multiple of that risk. After

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of BTC 4H Institutional Trend

Antigravity Superstar

by eltonaguiar
4 stars

This strategy draws on the price chart and combines a triple EMA stack, a volume spike with a minimum price move, and a MACD line-signal crossover. It enters long or short only when at least the chosen number of those three signals agree, with an optional RSI

Strategy v6 TrendMoving averages
Updated today · None stated GitHub repository of Antigravity Superstar

Golden Strategy

by AliAhmadi-Software
3 stars

The Golden Strategy is a Pine Script v6 strategy that overlays EMA and SMA on the price chart to detect crossovers for trend direction. It adds MACD for momentum confirmation and RSI to identify overbought and oversold conditions. Volume average filters out lo

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Golden Strategy
2 stars

This strategy is written for Bitcoin and draws on the price chart. It combines moving averages, an SSL channel, ADX, RSI, stochastic, and a volume oscillator with high-volume thresholds to generate buy and sell signals. Users can limit testing to a date range

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TLC_STRATEGY_EMARSIADX for BTC
1 stars

This strategy plots a volume-weighted moving average, a Hull moving average, and a linear regression on the price chart. It enters long when the Hull average crosses above the volume-weighted average while stochastic is above 50, on-balance volume is rising, m

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Advanced Indicator Suite

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