Automated Bitcoin (BTC) Investment Strategy compares two customizable trend lines (such as TEMA, LSMA, EMA, or SMA) to detect crossovers and filters entries using an ATR-based trailing stop channel. Positions are exited when the price crosses below the trailing stop level, when a trend reversal occurs, or when a percentage-based stop loss is hit. Features customizable partial take-profit parameters and trend line lengths.
Dual trend line crossover system
ATR-based trailing stop channel
Selectable trend line types TEMA LSMA EMA SMA
Percentage-based stop loss and take profit targets
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
What trades should be taken :
string
LONG
tradeType
First Trend Line :
string
TEMA
trend_type1
First Trend Line :
string
LSMA
trend_type2
Length of the First Trend Line
int
25
trend_type1_length
Length of the Second Trend Line
int
100
trend_type2_length
Long Take Profit 1 %
int
15
long_tp1_inp
Long Take Profit 1 Qty
int
20
long_tp1_qty
Long Take Profit 2%
int
30
long_tp2_inp
Long Take Profit 2 Qty
int
20
long_tp2_qty
stop loss in %
int
5
long_sl_input
SL Mutiplier
float
3.5
multiplier
ATR period
int
8
ATR_period
Show all 19 settings
Setting
Type
Default
Variable
Source
source
close
SC
Backtest Start Year
int
2016
testStartYear
Backtest Start Month
int
1
testStartMonth
Backtest Start Day
int
1
testStartDay
Backtest Stop Year
int
9999
testStopYear
Backtest Stop Month
int
12
testStopMonth
Backtest Stop Day
int
31
testStopDay
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 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 overlay strategy targets one-minute ES futures and plots volume-weighted moving-average bands from the open, scaled by a standard-deviation multiple, plus a slower band from ten-minute opens. A higher-timeframe exponential moving average can filter trades
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
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po
This overlay strategy combines a Chandelier Exit with a zero-lag least squares moving average. Although the header mentions Heikin Ashi candles, the calculations use ordinary closes. An ATR trailing stop sets long and short levels, and direction flips when pri
This overlay strategy looks for long pullbacks in an established uptrend. It requires the short entry EMA to sit above the trend EMA by a minimum slope, price to stay within a set pullback of that short EMA, and close to remain above a fixed 60-period EMA. It