StockFetcher Forums · Filter Exchange · Swing/Trend Trader<< 1 2 >>Post Follow-up
davesaint86
725 posts
msg #158481
Ignore davesaint86
modified
1/31/2022 6:07:30 PM

Duplicate - see active filter below.

boston
58 posts
msg #158482
Ignore boston
modified
1/31/2022 7:56:55 PM

Fetcher [
apply to symlist(ax,cdns,ttd,qlys,cprt,amd,stm,sstk,lng,infy,nflx,pstg,dxcm,ormp,alex,ursk,crm,lamr,team,ttd,lulu,cprt,amd,ax,cdns,stld,grpre,sstk,anip,orly,amba,nvda,xlnx,amd,mrvl,intu,tsla,cost,team,asml)

draw Bollinger bands(19,2.0)
set{E30, price above cma(low, 3))}
set{MA3-Low, count(E30 > 0,1)}
set{MA3-LowLongposition, count(E30 < 0,1)}
set{MA3-LowShortposition, count(E30 < 0,1)}
SET {MA3-LowTRIGGER,0}
draw cma(low, 3)

set{E31, price above Upper Bollinger Bands(19,2)}
set{ABLongposition, count(E31 > 0,1)}
set{ABShortposition, count(E31 < 0,1)}
SET{ABSTRIGGER,0}
set{E35, price below Lower Bollinger Bands(19,2)}
set{BBLongposition, count(E35 > 0,1)}
set{BBShortposition, count(E35 < 0,1)}
SET{BBSTRIGGER,0}

set{E19, price above ma(19)}
set{MA19-Long, count(E19 > 0,1)}
set{MA19-Short, count(E19 > 0,1)}
SET{D19TRIGGER,0}
draw MA(19)
draw MA19-Long on plot

set{E66, price above ma(66)}
set{MA66-Uptrend, count(E66 > 0,1)}
set{MA66-Downtrend, count(E66 < 0,1)}
SET{D66TRIGGER,0}
draw ma(66)
draw MA66-Uptrend on plot

set{E170, price above ma(170)}
set{MA170-UpTrend, count(E170 > 0,1)}
set{MA170-Downtrend, count(E170 < 0,1)}
SET{DE170TRIGGER,0}
draw MA170-UpTrend on plot
draw MA(170)

draw rsi(14)
draw rsi(14) line at 50
draw rsi(14) line at 30
draw rsi(14) line at 70

set{RSI21, RSI(21) - 50}
set{CRSI_Bar, RSI21}
PlotType{CRSI_Bar,zerobar}

set{RSI14, RSI(14) - 50}
set{RSI14_line, RSI14}
draw RSI14 on plot CRSI_Bar

set{RSI7, RSI(7) - 50}
set{RSI7_line, RSI7}
draw RSI7 on plot CRSI_Bar

set{drsilong1, count(rsi(21) above 1, 1)}
set{drsilong2, count(rsi(7) above rsi(21), 1)}
set{drsilong3, count(rsi(14) above rsi(21), 1)}
set{drsilong4, drsilong1 + drsilong2}
set{drsilong5, drsilong4 + drsilong3}
set{drsilong, count(drsilong5 equals 3, 1)}
set{drsishort, count(drsilong5 less than 3, 1)}
SET{DRSITRIGGER,0}
draw LongRSI on plot
set{LongRSI7,count(RSI7 above the 0 line ,1)}
draw longrsi7 on plot
set{LongRSI14,count(RSI14 above the 0 line ,1)}
draw longrsi14 on plot
set{LongRSI21,count(RSI21 above the 0 line ,1)}
draw longrsi21 on plot
set{LongRSI,count(RSI7 > RSI14 ,1)}


and draw Slow Stochastic(14,3) Fast %K line at 20.00 and draw Slow Stochastic(14,3) Fast %K line at 80.00 and draw Slow Stochastic(14,3) Fast %K line at 50.00
and draw Slow Stochastic(14,3) line at 50

set{x1, close 22 day high}
set{x2, x1-low}
set{x3, x2/x1}
set{vixfix, x3*100}
set{x4, cstddev(vixfix,20)}
set{sDev, 2*x4}
set{midline, cma(vixfix,20)}
set{lowerBand, midline - sDev}
set{upperBand, midline + sDev}
set{rangeHigh50, vixfix 50 day high}
set{rangeHigh, rangeHigh50 *0.85}
set{rangeLow50, vixfix 50 day low}
set{rangeLow, rangeLow50 * 1.01}

draw vixfix
PlotType{vixfix,zerobar}
draw upperBand on plot vixfix
draw rangeHigh on plot vixfix

and upperBand > rangeHigh
set{diff, upperBand - rangeHigh}


/*DETERMINE THE MAXIMUM AMOUNT YOU ARE WILLING TO LOSE*/
SET{ACCOUNTSIZE,100000}
SET{RISKLEVEL, ACCOUNTSIZE*0.010}

/* VAN THARP POSITION SIZING - SET THE STOP LOSS AND SHARE SIZE BASED ON LIMIT ENTRY AND AMOUNT WILLING TO LOSE*/
SET{2ATR, 2 * ATR(20)}
SET{STOPLOSS2ATR, close - 2ATR}

/* Trailing Stop Loss - Adjusted Based On Price Movement*/
SET{1_5ATR, 1.5 * ATR(20)}
SET{TRAILSTOP1.5ATR, CLOSE + 1_5ATR}


/* Profit Target #1*/
SET{.45ATR_1, .45 * ATR(20)}
SET{PROFITTARGET.45_1, CLOSE + .45ATR_1}


/* Profit Target #2*/
SET{.90ATR_2, .90 * ATR(20)}
SET{PROFITTARGET.90_2, CLOSE + .90ATR_2}

/* Profit Target #3*/
SET{1.35ATR_3, 1.35 * ATR(20)}
SET{PROFITTARGET1.35_3, CLOSE + 1.35ATR_3}

/*DETERMINE THE NUMBER OF SHARES TO BE PURCHASED*/
SET{SHARESTOBUY1, RISKLEVEL/2ATR}
SET{SHARESTOBUY, ROUND(SHARESTOBUY1, 0)}

/*TOTAL AMOUNT OF EQUITY USED IN THIS TRADE*/
SET{POSITIONAMT, close * SHARESTOBUY}

/*PERCENT OF TRADING CAPITAL USED IN THIS TRADE*/
SET{POSITIONPCT1, POSITIONAMT / ACCOUNTSIZE}
SET{POSITIONPCT, POSITIONPCT1 * 100}

/*SET THE CRITERIA NECESSARY TO TRIGGER A TRADE*/

ADD COLUMN SEPARATOR

add column ABLongposition{a-u-bb}

add column BBShortposition{b-l-bb}
add column separator
ADD COLUMN cma(low, 3) {Buy the Dip}
ADD COLUMN MA19-Long {MA19-Long}
ADD COLUMN ma66-uptrend {MA66-Trend Up}
ADD COLUMN ma170-uptrend {MA170-Trend Up}

ADD COLUMN SEPARATOR
ADD COLUMN LongRSI
ADD COLUMN RSI(14)
ADD COLUMN ATR(20) {ATR(20)}
add column average day range (20){ADR%}
ADD COLUMN SEPARATOR
ADD COLUMN SHARESTOBUY {SHARES TO BUY}
ADD COLUMN POSITIONAMT {POSITION SIZE IN DOLLARS}
ADD COLUMN POSITIONPCT {PERCENT OF TRADING EQUITY}

ADD COLUMN SEPARATOR
ADD COLUMN STOPLOSS2ATR {ESL-2.0_ATR}
Add COLUMN TRAILSTOP1.5ATR {TS-1.5_ATR}

ADD COLUMN PROFITTARGET.45_1 {PT-1}
ADD COLUMN PROFITTARGET.90_2 {PT-2}
ADD COLUMN PROFITTARGET1.35_3 {PT-3}

ADD COLUMN SEPARATOR
ADD COLUMN ROC(252,1) {12 mth %}
ADD COLUMN ROC(126,1) {6 mth %}
ADD COLUMN ROC(63,1) {3 mth %}
ADD COLUMN ROC(21,1) {1 mth %}
SORT ON COLUMN 5 DESCENDING


CHART-TIME IS 160 days ]



davesaint86
725 posts
msg #158483
Ignore davesaint86
1/31/2022 8:14:30 PM

Have no idea why the filter is not active.

Mactheriverrat
3,157 posts
msg #158484
Ignore Mactheriverrat
1/31/2022 8:34:10 PM

I couldn't get it to work either. It works when I copy it and paste it in "New Filter" link.

nibor100
1,046 posts
msg #158488
Ignore nibor100
2/1/2022 12:29:22 AM

Its probably the '#' signs in some of your comment lines stopping it from being passed by the SF filter posting scan.

Ed S.

davesaint86
725 posts
msg #158496
Ignore davesaint86
modified
2/1/2022 8:35:55 AM

Duplicate - see active filter below.

nibor100
1,046 posts
msg #158498
Ignore nibor100
2/1/2022 9:55:43 AM

I took out the # signs in 3 places.
Ed S.

Fetcher[apply to symlist(ax,cdns,ttd,qlys,cprt,amd,stm,sstk,lng,infy,nflx,pstg,dxcm,ormp,alex,ursk,crm,lamr,team,ttd,lulu,cprt,amd,ax,cdns,stld,grpre,sstk,anip,orly,amba,nvda,xlnx,amd,mrvl,intu,tsla,cost,team,asml)

draw Bollinger bands(19,2.0)
set{E30, price above cma(low, 3))}
set{MA3-Low, count(E30 > 0,1)}
set{MA3-LowLongposition, count(E30 < 0,1)}
set{MA3-LowShortposition, count(E30 < 0,1)}
SET {MA3-LowTRIGGER,0}
draw cma(low, 3)

set{E31, price above Upper Bollinger Bands(19,2)}
set{ABLongposition, count(E31 > 0,1)}
set{ABShortposition, count(E31 < 0,1)}
SET{ABSTRIGGER,0}
set{E35, price below Lower Bollinger Bands(19,2)}
set{BBLongposition, count(E35 > 0,1)}
set{BBShortposition, count(E35 < 0,1)}
SET{BBSTRIGGER,0}

set{E19, price above ma(19)}
set{MA19-Long, count(E19 > 0,1)}
set{MA19-Short, count(E19 > 0,1)}
SET{D19TRIGGER,0}
draw MA(19)
draw MA19-Long on plot

set{E66, price above ma(66)}
set{MA66-Uptrend, count(E66 > 0,1)}
set{MA66-Downtrend, count(E66 < 0,1)}
SET{D66TRIGGER,0}
draw ma(66)
draw MA66-Uptrend on plot

set{E170, price above ma(170)}
set{MA170-UpTrend, count(E170 > 0,1)}
set{MA170-Downtrend, count(E170 < 0,1)}
SET{DE170TRIGGER,0}
draw MA170-UpTrend on plot
draw MA(170)

draw rsi(14)
draw rsi(14) line at 50
draw rsi(14) line at 30
draw rsi(14) line at 70

set{RSI21, RSI(21) - 50}
set{CRSI_Bar, RSI21}
PlotType{CRSI_Bar,zerobar}

set{RSI14, RSI(14) - 50}
set{RSI14_line, RSI14}
draw RSI14 on plot CRSI_Bar

set{RSI7, RSI(7) - 50}
set{RSI7_line, RSI7}
draw RSI7 on plot CRSI_Bar

set{drsilong1, count(rsi(21) above 1, 1)}
set{drsilong2, count(rsi(7) above rsi(21), 1)}
set{drsilong3, count(rsi(14) above rsi(21), 1)}
set{drsilong4, drsilong1 + drsilong2}
set{drsilong5, drsilong4 + drsilong3}
set{drsilong, count(drsilong5 equals 3, 1)}
set{drsishort, count(drsilong5 less than 3, 1)}
SET{DRSITRIGGER,0}
draw LongRSI on plot
set{LongRSI7,count(RSI7 above the 0 line ,1)}
draw longrsi7 on plot
set{LongRSI14,count(RSI14 above the 0 line ,1)}
draw longrsi14 on plot
set{LongRSI21,count(RSI21 above the 0 line ,1)}
draw longrsi21 on plot
set{LongRSI,count(RSI7 > RSI14 ,1)}


and draw Slow Stochastic(14,3) Fast %K line at 20.00 and draw Slow Stochastic(14,3) Fast %K line at 80.00 and draw Slow Stochastic(14,3) Fast %K line at 50.00
and draw Slow Stochastic(14,3) line at 50

set{x1, close 22 day high}
set{x2, x1-low}
set{x3, x2/x1}
set{vixfix, x3*100}
set{x4, cstddev(vixfix,20)}
set{sDev, 2*x4}
set{midline, cma(vixfix,20)}
set{lowerBand, midline - sDev}
set{upperBand, midline + sDev}
set{rangeHigh50, vixfix 50 day high}
set{rangeHigh, rangeHigh50 *0.85}
set{rangeLow50, vixfix 50 day low}
set{rangeLow, rangeLow50 * 1.01}

draw vixfix
PlotType{vixfix,zerobar}
draw upperBand on plot vixfix
draw rangeHigh on plot vixfix

and upperBand > rangeHigh
set{diff, upperBand - rangeHigh}


/DETERMINE THE MAXIMUM AMOUNT YOU ARE WILLING TO LOSE/
SET{ACCOUNTSIZE,100000}
SET{RISKLEVEL, ACCOUNTSIZE*0.010}

/VAN THARP POSITION SIZING - SET THE STOP LOSS AND SHARE SIZE BASED ON LIMIT ENTRY AND AMOUNT WILLING TO LOSE/
SET{2ATR, 2 * ATR(20)}
SET{STOPLOSS2ATR, close - 2ATR}

/Trailing Stop Loss - Adjusted Based On Price Movement/
SET{1_5ATR, 1.5 * ATR(20)}
SET{TRAILSTOP1.5ATR, CLOSE + 1_5ATR}


/Profit Target 1/
SET{.45ATR_1, .45 * ATR(20)}
SET{PROFITTARGET.45_1, CLOSE + .45ATR_1}


/Profit Target 2/
SET{.90ATR_2, .90 * ATR(20)}
SET{PROFITTARGET.90_2, CLOSE + .90ATR_2}

/Profit Target 3/
SET{1.35ATR_3, 1.35 * ATR(20)}
SET{PROFITTARGET1.35_3, CLOSE + 1.35ATR_3}

/DETERMINE THE NUMBER OF SHARES TO BE PURCHASED/
SET{SHARESTOBUY1, RISKLEVEL/2ATR}
SET{SHARESTOBUY, ROUND(SHARESTOBUY1, 0)}

/TOTAL AMOUNT OF EQUITY USED IN THIS TRADE/
SET{POSITIONAMT, close * SHARESTOBUY}

/PERCENT OF TRADING CAPITAL USED IN THIS TRADE/
SET{POSITIONPCT1, POSITIONAMT / ACCOUNTSIZE}
SET{POSITIONPCT, POSITIONPCT1 * 100}

/SET THE CRITERIA NECESSARY TO TRIGGER A TRADE/

ADD COLUMN SEPARATOR

add column ABLongposition{a-u-bb}

add column BBShortposition{b-l-bb}
add column separator
ADD COLUMN cma(low, 3) {Buy the Dip}
ADD COLUMN MA19-Long {MA19-Long}
ADD COLUMN ma66-uptrend {MA66-Trend Up}
ADD COLUMN ma170-uptrend {MA170-Trend Up}

ADD COLUMN SEPARATOR
ADD COLUMN LongRSI
ADD COLUMN RSI(14)
ADD COLUMN ATR(20) {ATR(20)}
add column average day range (20){ADR%}
ADD COLUMN SEPARATOR
ADD COLUMN SHARESTOBUY {SHARES TO BUY}
ADD COLUMN POSITIONAMT {POSITION SIZE IN DOLLARS}
ADD COLUMN POSITIONPCT {PERCENT OF TRADING EQUITY}

ADD COLUMN SEPARATOR
ADD COLUMN STOPLOSS2ATR {ESL-2.0_ATR}
Add COLUMN TRAILSTOP1.5ATR {TS-1.5_ATR}

ADD COLUMN PROFITTARGET.45_1 {PT-1}
ADD COLUMN PROFITTARGET.90_2 {PT-2}
ADD COLUMN PROFITTARGET1.35_3 {PT-3}

ADD COLUMN SEPARATOR
ADD COLUMN ROC(252,1) {12 mth %}
ADD COLUMN ROC(126,1) {6 mth %}
ADD COLUMN ROC(63,1) {3 mth %}
ADD COLUMN ROC(21,1) {1 mth %}
SORT ON COLUMN 5 DESCENDING


CHART-TIME IS 160 days
]




davesaint86
725 posts
msg #158499
Ignore davesaint86
2/1/2022 10:37:31 AM

Thanks!

irishpitbull
54 posts
msg #158602
Ignore irishpitbull
2/17/2022 12:49:31 PM

Really good filter. The only thing missing is column on how many days has the stock been in the buy zone. I'm assuming it is when on the boxes are lit up... correct?

davesaint86
725 posts
msg #158603
Ignore davesaint86
modified
2/17/2022 2:55:00 PM

Thanks IrishPitBull! I've been gradually going through Gregg Gossett's Udemy Deep Dip Buy course and there are technically about numerous deep dip buys. The filter below depicts a better rendition of the course. In addition to the four listed Deep Dip Buys he discusses the 5 ema / 20 sma cross and closes below and back above the -3 Keltner channel. By the way, Gregg states that he trades on all timeframes including the 5-min, 15-min, daily, weekly and monthly.

I created a Deep Dip TradingView template.
https://www.tradingview.com/chart/xPr3DVpD/

What are Deep Dip Buy Set Ups?
- Deep Dips Buy Set Ups as the name implies happen when a Stock or an Stock Index has
had a significant down move towards the 200 SMA, 250 SMA or the 30 RSI level.

The 200 SMA, the 250 SMA and the 30 RSI level are some of the most widely watched
levels by large financial institutions and experienced traders and investors.
Large financial institution are interested in these levels as they offer a great Risk to
Reward Ratio. If the price closes below these levels they quickly get out for a small loss. If
they are right and the price moves up they have the potential for a large win.

The most important part of trading regardless of approach is Risk to Reward. You must
always identify strong legitimate support levels where you know that buyers will be
coming in. If you are wrong and the price level is lost then get out quickly for a small loss
and if you are right and the price level holds then you have the potential for a large gain.
The 200 SMA, the 250 SMA and the 30 RSI reading all give you a great Risk to Reward and
legitimate levels to plan your trade around.

Different Types of Deep Dip Buys
▪ Close Under & Close Back Over the 200 SMA or 250 SMA
▪ Intra-Day Rejection and close above the 200 SMA or 250 SMA
▪ Bounce at the 200 SMA or 250 SMA and close above
▪ RSI Reading Goes Below and then closes Back Over the 30 RSI

Fetcher[apply to symlist(spy,sso,ddm,qqq,qld,uwm,amzn,dis,googl,aapl,ma,fb,gs)

add column rs


set{vxxc, ind(vxx,close)}
set{vxvc, ind(vxv,close)}
set{vxvvxx, vxvc / vxxc}
set{vxxavg, cema(vxvvxx,13)}
set{eriskon, count(vxvvxx > or = to vxxavg,1)}
set{eriskoff, count(vxvvxx < or = to vxxavg,1)}
set{erisk_on, count(vxvvxx crossed above vxxavg,1)}
set{erisk_off, count(vxvvxx crossed below vxxavg,1)}
set{ervar, vxvvxx - vxxavg}




set{E15, ema(5) - ma(20)}
set{EMA5/20Longposition, count(E15 > 0,1)}
set{EMA5/20Shortposition, count(E15 < 0,1)}
draw EMA5/20Longposition on plot

draw ema(5)
draw ma(20)


set{E31, price above Upper Bollinger Bands(20,2)}
set{ABLongposition, count(E31 > 0,1)}
set{ABShortposition, count(E31 < 0,1)}
SET{ABSTRIGGER,0}
set{E35, price below Lower Bollinger Bands(20,2)}
set{BBLongposition, count(E35 > 0,1)}
set{BBShortposition, count(E35 < 0,1)}
SET{BBSTRIGGER,0}

set{E5, price above ema(5)}
set{EMA5-Uptrend, count(E5 > 0,1)}
set{EMA5-Downtrend, count(E5 < 0,1)}
SET{D55TRIGGER,0}
draw ema(5)
drawEMA5-Uptrend on plot

set{E20, price above ma(20)}
set{MA20-Uptrend, count(E20 > 0,1)}
set{MA20-Downtrend, count(E20 < 0,1)}
SET{D205TRIGGER,0}
draw ma(20)
draw MA20-Uptrend on plot

set{E50, price above ma(50)}
set{MA50-Uptrend, count(E50 > 0,1)}
set{MA50-Downtrend, count(E50 < 0,1)}
SET{D505TRIGGER,0}
draw ma(50)
draw MA50-Uptrend on plot

set{E100, price above ma(100)}
set{MA100-Uptrend, count(E100 > 0,1)}
set{MA100-Downtrend, count(E100 < 0,1)}
SET{D1005TRIGGER,0}
draw ma(100)
draw MA100-Uptrend on plot


set{E200, price above ma(200)}
set{MA200-Uptrend, count(E200 > 0,1)}
set{MA200-Downtrend, count(E200 < 0,1)}
SET{D2005TRIGGER,0}
draw ma(200)
draw MA200-Uptrend on plot

set{E250, price above ma(250)}
set{MA250-UpTrend, count(E250 > 0,1)}
set{MA250-Downtrend, count(E250 < 0,1)}
SET{D250TRIGGER,0}
draw MA250-UpTrend on plot
draw MA(250)

draw rsi(14)
draw rsi(14) line at 50
draw rsi(14) line at 30
draw rsi(14) line at 70

Set{RS1, csto + c-rsi}
Set{RS, rs1 / 2}

set{CRS1, rsi(7),1)}
set{CRS2, rsi(14),1)}
set{CRS3, rsi(21),1)}
set{CCRS1, CRS1 + CRS2}
set{CCRS2, CCRS1 + CRS3}
set{CCRS3, CCRS2 /3}

set{CRS4, weekly rsi(7),1)}
set{CRS5, weekly rsi(14),1)}
set{CRS6, weekly rsi(21),1)}

set{WCRS1, CRS4 + CRS5}
set{WCRS2, WCRS1 + CRS6}
set{WCRS3, WCRS2 /3}
set{CWRSI1, CCRS3 + WCRS3}
set{C-RSI, CWRSI1 /2}
set{RSI21, RSI(21) - 50}
set{CRSI_Bar, RSI21}
PlotType{CRSI_Bar,zerobar}

set{RSI14, RSI(14) - 50}
set{RSI14_line, RSI14}
draw RSI14 on plot CRSI_Bar

set{RSI7, RSI(7) - 50}
set{RSI7_line, RSI7}
draw RSI7 on plot CRSI_Bar

set{drsilong1, count(rsi(21) above 1, 1)}
set{drsilong2, count(rsi(7) above rsi(21), 1)}
set{drsilong3, count(rsi(14) above rsi(21), 1)}
set{drsilong4, drsilong1 + drsilong2}
set{drsilong5, drsilong4 + drsilong3}
set{drsilong, count(drsilong5 equals 3, 1)}
set{drsishort, count(drsilong5 less than 3, 1)}
SET{DRSITRIGGER,0}
draw LongRSI on plot
set{LongRSI7,count(RSI7 above the 0 line ,1)}
draw longrsi7 on plot
set{LongRSI14,count(RSI14 above the 0 line ,1)}
draw longrsi14 on plot
set{LongRSI21,count(RSI21 above the 0 line ,1)}
draw longrsi21 on plot

set{wrsi1, weekly rsi(7)}
set{wrsi2, weekly rsi(21)}
set{wrsi3, count(wrsi1 > wrsi2,1)}
set{wrsilong, count(wrsi3 equals 1, 1)}
set{wrsishort, count(wrsi3 less than 1, 1)}


set{TWRSI7, weekly RSI(7)}
set{TWRSI14, weekly RSI(14)}
set{TWRSI21, weekly RSI(21)}
set{TWRSI1, TWRSI7 + TWRSI14}
set{TWRSI2, TWRSI1 + TWRSI21}
set{A-WRSI, TWRSI2 / 3}
set{TDRSI7, RSI(7)}
set{TDRSI14, RSI(14)}
set{TDRSI21, RSI(21)}
set{TDRSI1, TDRSI7 + TDRSI14}
set{TDRSI2, TDRSI1 + TDRSI21}
set{A-DRSI, TDRSI2 / 3}
set{LongRSI21Trend,count(RSI(21) > 49 ,1)}
set{LongRSI,count(RSI14 > RSI21 ,1)}


set{CRS21, ROC(21,1)}
set{CRS63, ROC(63,1)}
set{CRS126, ROC(126,1)}
set{CR1, CRS21 + CRS63}
set{LB, CR1 /2}


set{C-RS, CR1 + CRS126}

Set{W21, CRS21 * .33}
Set{W63, CRS63 * .33}
Set{W126, CRS126 * .34}
set{rw1, w21 + w63}
set{rw-c, rw1 + w126}

set{wsto, weekly Slow Stochastics(14,3)}
set{dsto, Slow Stochastics(14,3)}
set{wdsto, wsto + dsto}
set{CSTO, wdsto / 2}


and draw Slow Stochastic(14,3) Fast %K line at 20.00 and draw Slow Stochastic(14,3) Fast %K line at 80.00 and draw Slow Stochastic(14,3) Fast %K line at 50.00
and draw Slow Stochastic(14,3) line at 50

draw macd(12,26,9)

/DETERMINE THE MAXIMUM AMOUNT YOU ARE WILLING TO LOSE/
SET{ACCOUNTSIZE,100000}
SET{RISKLEVEL, ACCOUNTSIZE*0.010}

/VAN THARP POSITION SIZING - SET THE STOP LOSS AND SHARE SIZE BASED ON LIMIT ENTRY AND AMOUNT WILLING TO LOSE/
SET{2ATR, 2 * ATR(20)}
SET{STOPLOSS2ATR, close - 2ATR}

/Trailing Stop Loss - Adjusted Based On Price Movement/
SET{1_5ATR, 1.5 * ATR(20)}
SET{TRAILSTOP1.5ATR, CLOSE + 1_5ATR}


/Profit Target #1/
SET{.45ATR_1, .45 * ATR(20)}
SET{PROFITTARGET.45_1, CLOSE + .45ATR_1}


/Profit Target #2/
SET{.90ATR_2, .90 * ATR(20)}
SET{PROFITTARGET.90_2, CLOSE + .90ATR_2}

/Profit Target #3/
SET{1.35ATR_3, 1.35 * ATR(20)}
SET{PROFITTARGET1.35_3, CLOSE + 1.35ATR_3}

/DETERMINE THE NUMBER OF SHARES TO BE PURCHASED/
SET{SHARESTOBUY1, RISKLEVEL/2ATR}
SET{SHARESTOBUY, ROUND(SHARESTOBUY1, 0)}

/TOTAL AMOUNT OF EQUITY USED IN THIS TRADE/
SET{POSITIONAMT, close * SHARESTOBUY}

/PERCENT OF TRADING CAPITAL USED IN THIS TRADE/
SET{POSITIONPCT1, POSITIONAMT / ACCOUNTSIZE}
SET{POSITIONPCT, POSITIONPCT1 * 100}

/*DETERMINE LIMIT ENTRY POINT*/
SET{LIMITENTRY, MIN(CLOSE, REVERSERSI(2,5))}

/SET THE CRITERIA NECESSARY TO TRIGGER A TRADE/
/*DETERMINE THE REWARD-TO-RISK RATIO BASED ON THE PROFIT TARGET AT RSI(2) = 90*/
SET{REWARD1, REVERSERSI(2,90) - LIMITENTRY}
SET{REWARD, REWARD1 * SHARESTOBUY}
SET{R_R, REWARD / RISKLEVEL}


ADD COLUMN SEPARATOR
add column ABLongposition{a-u-bb}
add column BBShortposition{b-l-bb}
add column separator
ADD COLUMN eriskon {Equities Riskon}
ADD COLUMN ervar {Riskon-var}
ADD COLUMN SEPARATOR
ADD COLUMN cma(low, 3) {Buy the Dip}
ADD COLUMN EMA5/20Longposition {5/20}
ADD COLUMN ema5-uptrend {EMA5}
ADD COLUMN ma20-uptrend {MA20}
ADD COLUMN ma50-uptrend {MA50}
ADD COLUMN ma100-uptrend {MA100}
ADD COLUMN ma200-uptrend {MA200}
ADD COLUMN ma250-uptrend {MA250}

ADD COLUMN SEPARATOR
ADD COLUMN LongRSI
ADD COLUMN RSI(14)
ADD COLUMN ATR(20) {ATR(20)}
add column average day range (20){ADR%}
ADD COLUMN SEPARATOR
ADD COLUMN R_R {REWARD TO RISK}
ADD COLUMN SHARESTOBUY {SHARES TO BUY}
ADD COLUMN POSITIONAMT {POSITION SIZE IN DOLLARS}
ADD COLUMN POSITIONPCT {PERCENT OF TRADING EQUITY}

ADD COLUMN SEPARATOR
ADD COLUMN STOPLOSS2ATR {ESL-2.0_ATR}
Add COLUMN TRAILSTOP1.5ATR {TS-1.5_ATR}

ADD COLUMN PROFITTARGET.45_1 {PT-1}
ADD COLUMN PROFITTARGET.90_2 {PT-2}
ADD COLUMN PROFITTARGET1.35_3 {PT-3}

ADD COLUMN SEPARATOR
ADD COLUMN ROC(126,1) {6 mth %}
ADD COLUMN ROC(63,1) {3 mth %}
ADD COLUMN ROC(21,1) {1 mth %}


SORT ON COLUMN 5 DESCENDING


CHART-TIME IS 160 days
]

StockFetcher Forums · Filter Exchange · Swing/Trend Trader<< 1 2 >>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.