by hasnocool· code credited to HeWhoMustNotBeNamed
BuyTheDip is a strategy script that identifies upward moving average alignments across multiple timeframes using SMA, EMA, HMA, RMA, VWMA or WMA types.
BuyTheDip plots Bollinger Bands on the price chart and enters long positions when alignment scores reach 1 and price crosses the lower or middle band. Exits trigger on price crossing the upper band, trailing stop based on ATR multiples, or both. Primary settings adjust the moving average type, exit logic, Bollinger parameters, ATR values, lookback period, trade direction and backtest years range. The script overlays signals directly on the price chart for visual entry and exit points.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Moving Average Type
string
sma
MAType
Exit Strategy
string
Signal
exitType
LookbackPeriod
int
30
LookbackPeriod
BBStdDev
int
2
BBStdDev
BBLength
int
60
BBLength
atrLength
int
22
atrLength
atrMult
int
6
atrMult
Trade Direction
input
strategy.direction.all
tradeDirection
backtestYears
int
10
backtestYears
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 trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
This strategy plots Donchian channels, trailing stops, and profit targets directly on the price chart. It enters breakout trades using a 55-bar Donchian channel and sizes positions according to an ATR-based risk percentage per unit. The system adds units as pr
This strategy combines channel breakout concepts with an ATR-ADX volatility trailing framework and multi-timeframe moving averages. It evaluates trend conditions using configurable moving average types, including SMA, EMA, Hull MA, and Tilson T3, paired with d
This mean-reversion strategy plots Bollinger Bands and a long-term moving average directly on the price chart. It enters trades when price candles penetrate the outer Bollinger Bands beyond a user-defined body percentage, anticipating a price reversal. Entries
This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos
STRG-BBForce is a Bollinger Bands trend-following strategy. It calculates standard Bollinger Bands and tracks directional alignment across the upper, lower, and basis lines. When all three lines slope upward, it opens a long position and closes short positions