This strategy implements the B-Xtrender indicator, calculating short-term and long-term momentum oscillators using RSI applied to moving average spreads and smoothings.
B-Xtrender [Backtest Edition] @QuantTherapy plots the momentum oscillators as colored histograms in a separate pane. Trades are filtered by an optional baseline EMA or SMA and restricted to a user-defined date window. Entries trigger based on oscillator alignments with the trend filter, and positions are protected by a configurable percentage trailing stop loss.
Dual short-term and long-term B-Xtrender momentum oscillators
Configurable EMA or SMA baseline trend filter
Adjustable percentage-based trailing stop loss
Backtest date range filtering and trade direction controls
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
[Backtest] From Month
int
1
i_fromMonth
[Backtest] From Day
int
1
i_fromDay
[Backtest] From Year
int
2010
i_fromYear
[Backtest] Thru Month
int
1
i_thruMonth
[Backtest] Thru Day
int
1
i_thruDay
[Backtest] Thru Year
int
2345
i_thruYear
[Backtest] Trade Direction
input
strategy.direction.all
i_tradeDirection
[Short] L1
int
5
i_short_l1
[Short] L2
int
20
i_short_l2
[Short] L3
int
15
i_short_l3
[Long] L1
int
20
i_long_l1
[Long] L2
int
15
i_long_l2
Show all 16 settings
Setting
Type
Default
Variable
[MA Filter] Yes/No
bool
true
i_ma_use
[MA Filter] length
int
200
i_ma_len
[MA Filter] type
string
EMA
i_ma_type
[TSL-%] Percent
float
20.0
i_perc
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.
MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra
This strategy calculates the Moving Average Convergence Divergence indicator and plots the MACD line, signal line, and histogram in a separate pane. It enters long positions when the MACD line crosses above the signal line and enters short positions when it cr
This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta
This strategy evaluates the dynamic relationship between price and a chosen moving average across six diagnostic dimensions: trend, respect, extension, compression, acceleration, and exhaustion. It plots a normalized relationship oscillator bounded between -10
This strategy combines the Moving Average Convergence Divergence oscillator with an Exponential Moving Average trend filter. It enters long positions when the MACD histogram crosses above zero while price stays above the long-term EMA filter. Long trades close
This strategy evaluates EMA momentum crossovers filtered by an RSI oscillator. It enters a long position when a fast EMA crosses above a slow EMA while RSI remains above 40. Conversely, it enters a short position when the fast EMA crosses below the slow EMA wh