schaballa 11 posts msg #162098 - Ignore schaballa |
2/16/2026 2:32:03 PM
Chuck Hughes CoPilot Indicator -
So here is some information for CoPilot indicator - stock must be trading above 200 ma, stock must be trading above 35 ema, using keltner channels the system finds stocks that have pulled back below the upper keltner channels and are currently trading above the middle keltner channel to confirm the the resumption of the bull run on the day of the buy signal. Also has a buying pressure and trend conformation
This is the code Grok came up with but it does not pull any results. Looking to see if this can be coded and if anybody would like to give it a try.
/* CoPilot Proxy: Pullback to Keltner Buy Zone + Resumption + Buying Pressure */
close > SMA(200)
and close > EMA(35)
and close > Keltner Middle /* currently above middle to confirm resumption */
and count(close below Keltner Upper, 5 days) > 0 /* pulled back below upper Keltner recently (adjust 5 days window if needed) */
and OBV > OBV 1 day ago /* buying pressure today */
and OBV reached a new 20 day high /* recent OBV strength / accumulation */
and volume > 1.5 * average volume(30) /* unusual volume possible inst. interest */
and close > close 5 days ago /* short-term momentum resumption */
and EMA(35) > EMA(50) /* optional: ensure shorter EMA aligned bullishly */
draw SMA(200)
draw EMA(35)
draw Keltner Upper
draw Keltner Middle
draw Keltner Lower
draw OBV
Grok also added this code: Not sure this is needed but I will include
Variations / Tweaks
Tighter / More selective (fewer results, higher quality):textclose > SMA(200)
and close > EMA(35)
and close crossed above Keltner Middle within the last 3 days /* very recent resumption trigger */
and close 1 day ago < Keltner Upper 1 day ago /* yesterday was below upper */
and OBV > max(OBV 20 days ago, 1)
and volume > 2.0 * average volume(40)
and RSI(14) > 55 /* avoid weak momentum */
and
If you want stricter buying pressure (using Chaikin or A/D as alternatives if OBV feels too basic):textand Chaikin Money Flow(20) > 0.1
and
Keltner parameter note: StockFetcher's built-in Keltner uses 20-period EMA + 2×10-period ATR by default (standard). If Hughes uses a different length (some of his older stuff mentions 21 SMA), you can approximate with custom:textset{k_mid, EMA(21)}
set{atr_val, ATR(10)}
set{k_upper, k_mid + 2 * atr_val}
set{k_lower, k_mid - 2 * atr_val}
and
Usage Tips
Run on daily charts, filter for stocks > $10 and avg vol(30) > 750,000 to avoid illiquid names.
This catches potential buy signals—backtest in StockFetcher (add date offsets or "within X days") to see historical performance.
CoPilot likely includes proprietary "unusual institutional buying" logic (beyond standard OBV/volume), so this is a strong public approximation based on the Keltner pullback/resumption + trend/buying pressure rules you described.
If the signal fires, check the chart visually for the classic "dip below upper band → bounce above middle" in an uptrend.
Thanks
|