Pullback, half out on the bounce
A pullback with a scale-out: buy a short, sharp dip in an uptrend, sell half once the bounce has lifted RSI(2) above 60, and the rest when it is above 85 or after ten days. The early half banks part of a typical bounce; the rest stays for the bigger ones.
Strategies · pullback_scale_out.rvw
language 1
strategy "Pullback, half out on the bounce" {
universe members("SYN500")
rsi2 rsi(close, 2)
enter long when close > sma(close, 200) and rsi2 < dip
rank by -rsi2
scale out 50% when rsi2 > 60
exit when rsi2 > 85 or bars_held >= 10
size 10% of equity, max 10 positions
stop 8%
param dip = 10 in 5..20 step 5
}
Functions it uses
Try it
File ▸ New Script from Example adds it to a project. The examples read the sample’s index label, SYN500, and market ETF, SYNSPY; when your data has neither, a sheet asks what to read instead, one of your index labels (or every stock and ETF) and a ticker, so the example runs on your data as it is.
Before you trust what it does on your data, see whether it’s luck: Is this result luck?