StockFetcher Forums · Filter Exchange · Trying to mimic the 2 Pole Oscillator in Trading View<< >>Post Follow-up
DMOBRIEN
375 posts
msg #161908
Ignore DMOBRIEN
7/27/2025 12:17:18 AM

/* Triple 2-Pole Oscillator - Fast, Medium, Long versions */

/* FAST VERSION (7 periods) - Sensitive to short-term moves */
set{ma7, CMA(close, 7)}
set{dev_fast, close - ma7}
set{smooth1_fast, CMA(dev_fast, 7)}
set{osc_fast_raw, CMA(smooth1_fast, 7)}
set{osc_fast_scaled, osc_fast_raw * 100}
set{osc_fast, CMA(osc_fast_scaled, 2)}

/* MEDIUM VERSION (14 periods) - Original balanced version */
set{ma14, CMA(close, 14)}
set{dev_med, close - ma14}
set{smooth1_med, CMA(dev_med, 14)}
set{osc_med_raw, CMA(smooth1_med, 14)}
set{osc_med_scaled, osc_med_raw * 100}
set{osc_med, CMA(osc_med_scaled, 3)}

/* LONG VERSION (21 periods) - Focuses on major trends */
set{ma21, CMA(close, 21)}
set{dev_long, close - ma21}
set{smooth1_long, CMA(dev_long, 21)}
set{osc_long_raw, CMA(smooth1_long, 21)}
set{osc_long_scaled, osc_long_raw * 100}
set{osc_long, CMA(osc_long_scaled, 4)}

/* Signal levels for each timeframe */
set{fast_upper, 3}
set{fast_lower, -3}
set{med_upper, 2}
set{med_lower, -2}
set{long_upper, 1.5}
set{long_lower, -1.5}

/* COMBINED SIGNALS - Pick your strategy */

/* Strong bullish: All three above their upper levels */
osc_fast above fast_upper and osc_med above med_upper and osc_long above long_upper

/* Alternative signals (uncomment one at a time) */
/* Medium-term bullish with fast confirmation */
/* osc_med above med_upper and osc_fast above 0 */

/* Long-term trend with medium confirmation */
/* osc_long above long_upper and osc_med above 0 */

/* Fast signal with medium/long support */
/* osc_fast crossed above fast_upper and osc_med above 0 and osc_long above 0 */

/* Display all three oscillators */
add column osc_fast{Fast}
add column osc_med{Medium}
add column osc_long{Long}
set{FAST, osc_fast}
draw FAST
set{MEDIUM, osc_med}
draw MEDIUM on plot FAST
set{SLOW, osc_long}
draw slow on plot FAST

price > 2
price < 10
volume > 750000
set{BUY, OSC_Fast crossed above fast_Upper and osc_med above med_upper}
add column BUY
draw BUY
shares outstanding < 200
add column shares outstanding

shillllihs
6,081 posts
msg #161909
Ignore shillllihs
7/27/2025 8:44:00 PM

Fetcher[
// Two-pole filter using double EMA
set{ema1, ema(close, 10)}
set{ema2, ema(ema1, 10)}

// Scan conditions
show stocks where close crossed above ema2
and average volume(30) is above 500000

// Visualization
draw ema2 on price
]



StockFetcher Forums · Filter Exchange · Trying to mimic the 2 Pole Oscillator in Trading View<< >>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 2022 - 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.