Boftei's Strategy draws positive and negative histogram bars, a thin line of the same value, and dotted threshold lines. Crosses of that value against buy, sell, retry, and close levels define entries and exits, limited by a long, short, or both direction setting and a start-to-stop date window. Exponential moving averages from 21 through 233 form a trend filter. There is no stop loss by default.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
strategy direction
string
all
strat_dir_input
Backtest Start Year
int
2005
testStartYear
Backtest Start Month
int
7
testStartMonth
Backtest Start Day
int
16
testStartDay
Backtest Stop Year
int
2030
testStopYear
Backtest Stop Month
int
12
testStopMonth
Backtest Stop Day
int
30
testStopDay
sell level
float
0.0065
sell
buy level
float
0
buy
long retry - too low
float
-0.493
long1
long close up
float
2.2
long2
long close down
float
-1.5
long3
Show all 15 settings
Setting
Type
Default
Variable
short retry - too high
float
0.8
short1
dead - close the short
float
-5
short2
Histogram Period
int
60
nn
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 plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con
This Pine Script strategy calculates Bayesian probabilities of price breaking up or down relative to Bollinger Bands and a Simple Moving Average. It plots these breakout and breakdown probability lines as oscillators in a separate pane. Long entries trigger wh
This strategy combines Bollinger Bands, Bollinger Band Width, and the Relative Strength Index (RSI) for mean-reversion trades. It enters long when price crosses below the lower band with oversold RSI, or when band width contracts under low volatility. Short en
This strategy uses a 100-period RSI to generate long and short signals with 5% pre-entry buffers. Long entries trigger at RSI 45 and shorts at RSI 55. Exits occur at RSI 55 for longs and 47 for shorts, with emergency stops at RSI 10. Higher-timeframe EMA confi