Strategy · Pine Script v5 · On the chart

AlgoBot Strategy

by femibol

A strategy that approximates a trading bot's entry and exit rules in three modes: EMA 8 and 21 momentum with ADX and a volume surge, relative-volume momentum, and a daily SuperTrend trend rider using a daily EMA, ADX and consecutive green days.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code274
Settings27inputs
LicenceNone stated
Last update6 weeks ago14 Sep 2026

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

Exits include an ATR trailing stop, a SuperTrend flip, three staged percentage targets and a maximum holding time. It allows up to five entries in the same direction. A filter status table and signal markers can be shown on the chart.

Details

Published by

femibol on GitHub

Draws

On the price chart

Markets

Stocks

Timeframes

M15-H1

Risk Notes

  • The strategy can add several entries in the same direction

Settings

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

SettingTypeDefaultVariable
Fast EMAint8mom_fast
Slow EMAint21mom_slow
Min ADXint20mom_adx_min
Volume Surge xfloat1.3mom_vol_surge
Min RVOLfloat1.5rvol_min
RVOL Lookback Barsint20rvol_lookback
SuperTrend Periodint7tr_st_period
SuperTrend Multiplierfloat3.0tr_st_mult
Daily EMA Periodint20tr_ema_period
Daily ADX Minint20tr_adx_min
Min Green Daysint2tr_green_days
Trailing Stop ATR Multfloat1.5trail_atr_mult
Show all 27 settings
SettingTypeDefaultVariable
Max Hold Bars (0=disabled)int80max_hold_bars
Show Momentum Signalsbooltrueshow_momentum
Show RVOL Signalsbooltrueshow_rvol
Show Trend Rider Signalsbooltrueshow_trend
Show EMA Linesboolfalseshow_emas
Show SuperTrend Linebooltrueshow_st_line
Show RVOL Background Shadingboolfalseshow_rvol_bg
Show Filter Status Tablebooltrueshow_table
Target 1 %float2.0pt_target1_pct
Target 2 %float4.0pt_target2_pct
Target 3 %float8.0pt_target3_pct
Close % at T1float25.0pt_close1_pct
Close % at T2float25.0pt_close2_pct
Close % at T3float25.0pt_close3_pct
Show Rejection Markers (noisy)boolfalseshow_rejections
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 plots on the price chart and looks for three-candle fair value gaps and inverse gaps on Bitcoin. It enters long when a wide enough bullish gap appears in an uptrend with RSI above 30 and volume above its average, and short on the opposite bearish

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · None stated GitHub repository of BTC 4h FVG/iFVG Strategy

Combined Strategy

by Dropio12
7 stars

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. A long marker appears when the fast ALMA crosses above the slow ALMA and momentum is positive. A short marker a

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Combined Strategy
6 stars

Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse

Strategy v6 TrendOscillators & momentum
Updated 8 weeks ago · MIT GitHub repository of Capital41 Fusion Core Strategy

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 yesterday · None stated GitHub repository of Antigravity Superstar
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy

More Oscillators & momentum scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers