A Pine v5 strategy that applies time-series momentum, taking the sign of past returns over about one, three and twelve months and averaging them into a long or short score.
Position size is scaled to a target annual volatility with a maximum leverage cap, with crypto, stocks or custom lookbacks and an optional cash-return adjustment mode. An optional kill-switch uses a drawdown percentage. There is no price stop loss, it allows up to twenty entries in one direction, and a dashboard is shown.
Momentum score from 1, 3 and 12 month return signs
Volatility-targeted position sizing with leverage cap
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Market Type
string
Crypto
market_mode
Custom 1M Bars
int
30
custom_1m
Custom 3M Bars
int
90
custom_3m
Custom 12M Bars
int
365
custom_12m
Signal Lag (Bars)
int
0
signal_lag
Return Mode
string
None
rf_mode
Fixed Annual Rf %
float
3.0
fixed_rf
T-Bill Symbol
symbol
US03MY
tbill_sym
Target Annual Vol
float
0.10
target_vol
Vol Horizon
string
3-Years
vol_mode
Custom Vol Bars
int
365
custom_vol
Max Leverage Cap
float
3.0
max_lev
Show all 15 settings
Setting
Type
Default
Variable
Enable Kill-Switch
bool
false
use_kill
Kill-Switch DD %
float
25.0
kill_dd
Show Dashboard
bool
true
show_hud
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.
This strategy automates the TradingLatino methodology by evaluating Squeeze Momentum combined with the Average Directional Index (ADX). It executes long or short positions based on momentum shifts and directional strength. Risk management options include const
This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav
Momentum Rotation (Top 3) ranks ten large-cap US tech stocks by their six-month returns using daily closes. It rebalances monthly and holds the top three performing stocks long only on the price chart. A ranking table shows the current order. Main settings adj
This strategy calculates trend direction across three user-defined higher timeframes using dual Simple Moving Averages, filtered by On-Balance Volume and Commodity Channel Index conditions alongside fractal pivot swings. Entries trigger when multi-timeframe tr
This strategy serves as a backtesting template for any trading system. It accepts external signals to trigger long or short entries and exits, with optional filters based on EMA and ADX indicators to refine conditions. Time-based restrictions limit trading to
This trading strategy combines Stochastic, RSI, ATR, and multiple Exponential Moving Averages (20, 50, and 200) alongside Fibonacci zones to generate trading signals for gold (XAUUSD). It supports flexible execution modes including scalp and confirm entries, c