StockFetcher Forums · General Discussion · Coding Chuck Hughes CoPilot<< >>Post Follow-up
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


xarlor
639 posts
msg #162099
Ignore xarlor
2/17/2026 1:35:19 PM

Cleaned up multiple syntax errors.

Fetcher[
/* CoPilot Proxy: Pullback to Keltner Buy Zone + Resumption + Buying Pressure */

close > MA(200)
close > EMA(35)

close > Center Keltner Band(10,1.0) /* currently above middle to confirm resumption */

count(close below Upper Keltner Band(10,1.0),5) > 0 /* pulled back below upper Keltner recently (adjust 5 days window if needed) */

OBV > OBV 1 day ago /* buying pressure today */
OBV reached a new 20 day high /* recent OBV strength / accumulation */

set{avolx,average volume(30) * 1.5}
volume > avolx /* unusual volume possible inst. interest */

close > close 5 days ago /* short-term momentum resumption */
EMA(35) > EMA(50) /* optional: ensure shorter EMA aligned bullishly */

do not draw avolx
]



schaballa
11 posts
msg #162101
Ignore schaballa
2/17/2026 6:17:46 PM

Thank You!

StockFetcher Forums · General Discussion · Coding Chuck Hughes CoPilot<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2026 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.