StockFetcher Forums · View by Author: (499 messages)  [ Display By: Date / Subject ]<< 1 ... 3 4 5 6 7 ... 50 >> 
Filter Exchange · Short Trade - 2-Candle Pattern
xarlor
msg #158800
3/13/2022 11:59:23 AM

Stumbled upon this and saw it never got a response. It's over 3 years late, but better that than never!

Fetcher[
open < high 1 day ago
close < high 1 day ago
open > close 1 day ago
open > open 1 day ago
close > close 1 day ago
close > open 1 day ago
open > close

set{body,abs(open minus close)}
set{body_top,max(open,close)}
set{head,high - body_top}
body 1 day ago between 0 and 0.02
head > body

do not draw head
do not draw body
]



General Discussion · Fibonacci retracements (extensions)
xarlor
msg #158799
3/13/2022 11:35:32 AM

I posted a Fibonacci filter a couple years ago. It may be a starting point or at least give you some ideas.

Here is the filter, but you can read the commentary on it with the link above.

Fetcher[
average volume(30) > 1234567
chart-time is 1 year
/* Set the Fib values at 23.6%, 38.2%, 50%, 61.8%, and 78.6%*/

set{Hi,high 1-year high}
set{Lo,low 1-year low}
set{Vdiff,Hi - Lo}
set{x1,Vdiff * .236}
set{x2,Vdiff * .382}
set{x3,Vdiff * .50}
set{x4,Vdiff * .618}
set{x5,Vdiff * .786}
set{Fib1, Hi - x1}
set{Fib2, Hi - x2}
set{Fib3, Hi - x3}
set{Fib4, Hi - x4}
set{Fib5, Hi - x5}

/* Check if price touched any of the Fib lines 1 day ago while that candle's body is above the Fib line */

set{touch1a,count(low 1 day ago <= Fib1,1)}
set{touch1b,count(close 1 day ago > fib1,1)}
set{touch1c,count(open 1 day ago > fib1,1)}
set{touch1d,touch1a * touch1b}
set{Touch1,touch1c * touch1d}

set{touch2a,count(low 1 day ago <= Fib2,1)}
set{touch2b,count(close 1 day ago > fib2,1)}
set{touch2c,count(open 1 day ago > fib2,1)}
set{touch2d,touch2a * touch2b}
set{Touch2,touch2c * touch2d}

set{touch3a,count(low 1 day ago <= Fib3,1)}
set{touch3b,count(close 1 day ago > fib3,1)}
set{touch3c,count(open 1 day ago > fib3,1)}
set{touch3d,touch3a * touch3b}
set{Touch3,touch3c * touch3d}

set{touch4a,count(low 1 day ago <= Fib4,1)}
set{touch4b,count(close 1 day ago > fib4,1)}
set{touch4c,count(open 1 day ago > fib4,1)}
set{touch4d,touch4a * touch4b}
set{Touch4,touch4c * touch4d}

set{touch5a,count(low 1 day ago <= Fib5,1)}
set{touch5b,count(close 1 day ago > fib5,1)}
set{touch5c,count(open 1 day ago > fib5,1)}
set{touch5d,touch5a * touch5b}
set{Touch5,touch5c * touch5d}

set{z1,Touch1 + Touch2}
set{z2,z1 + Touch3}
set{z3,z2 + Touch4}
set{Trigger,z3 + Touch5}
Trigger > 0

/* The bounce: Green day following a 3-day declining close */
close > high 1 day ago
close 1 day ago < close 2 days ago for last 3 days

draw price line at hi
draw price line at Fib1
draw price line at Fib2
draw price line at Fib3
draw price line at Fib4
draw price line at Fib5
draw price line at lo

do not draw Trigger

/* Debugging

add column hi
add column Vdiff
add column fib1
add column close 1 day ago
*/
]



Filter Exchange · Help with a filter please,"Momentum Bursts" and "Bullish engulfing"?
xarlor
msg #158778
3/10/2022 1:54:28 PM

The built-in SF pattern for bullish engulfing caught all your examples.

Fetcher[
symlist(CRWD,NCNO,PLL)
set{BullE,count(pattern is Bullish Engulfing,1)}
BullE > -1
]



What other criteria re you looking for, or is it strictly the bullish engulfing candlestick pattern?

Fetcher[
pattern is bullish engulfing
]



General Discussion · Is there a bug in the donchian fx?
xarlor
msg #158732
3/4/2022 11:20:39 PM

Your filter does catch it today. Problem is it's one of 88 hits.

Fetcher[
symlist(BCI)
show stocks where avg vol(90) > 250000
and close > 5
and count(close crossed above upper Donchian Band(250, 1), 1) > 0.5

DO NOT DRAW count(close crossed above upper Donchian Band(250, 1), 1)
draw upper Donchian Band(250, 1)

set{x, count(close crossed above the upper Donchian Band(250,1) ,1)}
set{how_many, sum(x,250)}

add column how_many
sort column 5 ascending
]



General Discussion · A possible true false logic alternative
xarlor
msg #158726
3/4/2022 3:31:51 PM

Okay, here is a Fibonacci filter that should trigger an advanced subscription. Let me know if it's too complex for testing and I'll look for something smaller.

Fetcher[
average volume(30) > 1234567
/* Set the Fib values at 23.6%, 38.2%, 50%, and 61.8%*/

set{Hi,high 1-year high}
set{Lo,low 1-year low}
set{Vdiff,Hi - Lo}
set{x1,Vdiff * .236}
set{x2,Vdiff * .382}
set{x3,Vdiff * .50}
set{x4,Vdiff * .618}
set{x5,Vdiff * .786}
set{Fib1, Hi - x1}
set{Fib2, Hi - x2}
set{Fib3, Hi - x3}
set{Fib4, Hi - x4}
set{Fib5, Hi - x5}

/* Check if price touched any of the Fib lines 1 day ago while that candle's body is above the Fib line */

set{touch1a,count(low 1 day ago <= Fib1,1)}
set{touch1b,count(close 1 day ago > fib1,1)}
set{touch1c,count(open 1 day ago > fib1,1)}
set{touch1d,touch1a * touch1b}
set{Touch1,touch1c * touch1d}

set{touch2a,count(low 1 day ago <= Fib2,1)}
set{touch2b,count(close 1 day ago > fib2,1)}
set{touch2c,count(open 1 day ago > fib2,1)}
set{touch2d,touch2a * touch2b}
set{Touch2,touch2c * touch2d}

set{touch3a,count(low 1 day ago <= Fib3,1)}
set{touch3b,count(close 1 day ago > fib3,1)}
set{touch3c,count(open 1 day ago > fib3,1)}
set{touch3d,touch3a * touch3b}
set{Touch3,touch3c * touch3d}

set{touch4a,count(low 1 day ago <= Fib4,1)}
set{touch4b,count(close 1 day ago > fib4,1)}
set{touch4c,count(open 1 day ago > fib4,1)}
set{touch4d,touch4a * touch4b}
set{Touch4,touch4c * touch4d}

set{touch5a,count(low 1 day ago <= Fib5,1)}
set{touch5b,count(close 1 day ago > fib5,1)}
set{touch5c,count(open 1 day ago > fib5,1)}
set{touch5d,touch5a * touch5b}
set{Touch5,touch5c * touch5d}

set{z1,Touch1 + Touch2}
set{z2,z1 + Touch3}
set{z3,z2 + Touch4}
set{Trigger,z3 + Touch5}
Trigger > 0

/* The bounce: Green day following a 3-day declining close */
close > high 1 day ago
close 1 day ago < close 2 days ago for last 3 days

draw price line at hi
draw price line at Fib1
draw price line at Fib2
draw price line at Fib3
draw price line at Fib4
draw price line at Fib5
draw price line at lo

do not draw Trigger

/* Debugging

add column hi
add column Vdiff
add column fib1
add column close 1 day ago
*/
]



General Discussion · A possible true false logic alternative
xarlor
msg #158724
3/4/2022 2:03:16 PM

I'm sure I can find one. Do we know what the limit for set statements is between standard and advanced?

General Discussion · 2 conditions: volume spike and 5 mil shares+, looking back 10 days prior
xarlor
msg #158712
modified
3/2/2022 9:58:51 PM

Fetcher[
set{vol200,average volume(10) 1 day ago * 3}
set{x1,count(volume >= vol200,1)}
set{x2,count(volume >= 5000000,1)}
set{trigger1,x1+x2}
set{trigger,count(trigger1 equals 2,10)}
x1 > -1
x2 > -2
trigger > 0

add column trigger {No. times both conditions met in last 10 days}
sort column 5 descending
]



General Discussion · Cheese, where are you?
xarlor
msg #158668
2/25/2022 10:15:42 AM

Anyone know where our resident archivist went off to? Today marks 6 weeks since his last post. As prolific as he was, his absence is quite notable.

In his honor, and hopefully to lure him back, here is a random swing filter from my bag-o-tricks.

Fetcher[
/*
Enter on "buy" signal
Exit on either "stoploss" signal or "sell50" signal, whichever comes first.
*/

optionable
not etf
average volume(30) > 1000000
close > wma(150)
close < ma(20)

set{var1,count(close 1 day ago < Lower Bollinger Band(20,2),1)}
set{var2,count(close > Lower Bollinger Band(20,2),1)}
set{var3,count(close > wma(150),1)}
set{var4,count(close < ma(20),1)}
set{buy1,var1 * var2}
set{buy2,buy1 * var3}
set{buy,buy2 * var4}
buy > 0

set{stoploss1,low 1 day ago}
set{stoploss2,count(close < Lower Bollinger Band(20,2),1)}
set{stoploss,stoploss2 * count(close crossed below stoploss1,1)}
set{sell50,count(close crossed above ma(20),1)}
stoploss > -1
sell50 > -1

draw Lower Bollinger Band(20,2)
draw ma(20)
draw upper Bollinger Band(20,2)
]



Filter Exchange · Correction/Bear market
xarlor
msg #158667
2/25/2022 9:48:16 AM

The NASDAQ opened in bear territory yesterday. That rally brought it back into correction. Still not out of the woods.

Here is a filter to show where the market stands in relation to correction and bear.

Fetcher[
symlist(SPY,QQQ,DIA)
set{correction,high 52 week high * .90}
set{bear,high 52 week high * .80}
draw price line at high 52 week high
draw price line at correction
draw price line at bear

set{Correction_,count(close < correction,1)}
set{Bear_,count(close < bear,1)}
correction_ > -1
bear_ > -1

add column high 52 week high
add column correction
add column bear
chart-time 1 year
]



General Discussion · Double Failure Swing Low [ DFSL ]
xarlor
msg #158581
2/12/2022 10:45:32 AM

Although not perfect, using some creative Darvas Box manipulation gets you awfully close. I can't remember where I got this filter from, but it wasn't my creation. Credit to the SF user that built it.

Fetcher[
set{X1, count(close reached a new 52 week high within the last 90 days,1)}
set{X2, count(darvas box above darvas box 1 week ago,1) * count(darvas box above darvas box 3 weeks ago,1)}
set{x3, count(close > WMA(150),1)}
set{x4, X1 * X2}
set{x5, X3 * X4}

/* Only show stocks that reached a new 2-year high within the last 10 days */
set{2yrh,count(close reached a new high 2 year high,10)}
set{x6,x5*2yrh}
x6 > 0
]



StockFetcher Forums ·  · << 1 ... 3 4 5 6 7 ... 50 >>

*** 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.