Weak close in an uptrend
A close near the bottom of the day's range, in an uptrend, tends to bounce the next few days. Internal bar strength (ibs) measures where the close sits in the range, 0 to 1. Short holds make costs matter: try it with commission and slippage before trusting it.
Strategies · ibs_reversion.rvw
language 1
strategy "Weak close in an uptrend" {
universe members("SYN500")
filter adv(20) > $1000000
enter long when close > sma(close, 100) and ibs() < weak
rank by -ibs()
size 10% of equity, max 10 positions
exit when ibs() > 0.7 or close > highest(high, 3)[1]
max bars 5
param weak = 0.15 in 0.05..0.3 step 0.05
}
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?