StockFetcher Forums · Filter Exchange · Swing/Trend Trader<< 1 2 >>Post Follow-up
nibor100
1,031 posts
msg #158609
Ignore nibor100
2/18/2022 3:57:21 AM

making it clickable,
Ed S.

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
]




ron22
255 posts
msg #158630
Ignore ron22
2/20/2022 4:46:37 PM

@davesaint86, Regarding the filter posted on 1/31/22.

1. How many triggers are needed for a buy?
2. Do you sell 1/3 shares at pt1 and 1/3 at pt2 and final 1/3 at pt3 or do you ride the trend until the ts1.5% is hit?
3. Did you backtest this filter?
Thank you for posting this filter and for considering my questions.

davesaint86
725 posts
msg #158633
Ignore davesaint86
2/20/2022 8:35:39 PM

Here are some of the rules.

Deep Dip Buy Trading Rules
Determine Share Size and Emergency Stop Loss Level
Used to determined # of shares to purchase plus and Stop Loss.
Stop Loss = Entry Price - Risk (Example: $315 - $1.70)


Trailing Stop based on MA(200/250) Deep Dip Buys
NOTE - You will have to adjust the 1.5 Line up or down every day based on ATR value which fluctuates.
* If price closes below previous day's low after reach the 1.5 ATR trailing stop level - Sell 1/2 of the position.
* If price goes above RSI(70) line and then reaches an intra-day close below RSI(70) Sell 1/2 of the position.
* Close remaining position with a close below the previous days low.


* If price gets close but never reaches the RSI(70) line exit the full position with a close under the 5(EMA)
* If price goes above 1.5 ATR trailing level and come back down and closes below previous days low, sell 1/2 the position. If it goes down further sell at moving average cross.


Trailing Stop based on RSI(30) Deep Dip Buys and a Rejection of the RSI 50 line and MA(50)
"NOTE - You will sell ½ of your position when any of the following three (3) scenarios play out.
You will be completely out of the trade if two of the three scenarios below happen:"
* You will then sell ½ of your shares or the remaining shares if there is a close below the previous days low in any subsequent bars. (***This scenario only applies when you have moved 1.5 ATR from entry***)
* You will then sell ½ of your shares or the remaining shares if the price rejects the 50 RSI level.
* You will then sell ½ of your shares or the remaining shares if the price rejects the 50 SMA level.
"* In the very rare situation of entering with an under 30 back over 30 RSI and none of the previous three rules have
triggered then you would exit ½ of the position with a rejection of the 70 RSI and then exit the remainder of the position
with a subsequent close below the previous days low."
"* If what I just discussed in the previous paragraph happens but the price goes up to at least the 65 RSI or above but does
not quite reach the 70 RSI then you can exit the full position with a close under the 5 EMA"
"* If you reach the 1.5 ATR level and only one or none of the above mentioned scenarios happens then if the price gets
back to your entry level you will exit the trade for break even on the shares remaining.
"
I have not backtested Deep Dip Buy strategy. What I like about it is the risk management. I know he uses ETFReplay to decided what to buy based on the results return in ETFReplay.

ron22
255 posts
msg #158636
Ignore ron22
2/21/2022 12:39:33 AM

@davesaint86, Thank you very much for posting the Deep Dip Buy Trading Rules. Good Trading. Ron

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.