StockFetcher Forums · Stock Picks and Trading · My Testbed for Converting Advanced level filters to Basic level filters<< >>Post Follow-up
nibor100
1,031 posts
msg #148698
Ignore nibor100
7/26/2019 12:17:54 PM

I'll be using this thread periodically to test simplifying posted filters that won't run on a basic subscription as it turns out, if I go to the StockFetcher website on a different computer without ever logging into my account I can easily see if a filter requires the advanced subscription.

Ed S.

a. First filter to work on:

Fetcher[
set{range, MACD (23,50,9) 10 day high - MACD (23,50,9) 10 day low}
set{var2, MACD (23,50,9) - MACD (23,50,9) 10 day low}
set{var3, var2 / range}
set{var7, cema(var3, 3) - cema(var3, 3) 10 day low}
set{var8, cema(var3, 3) 10 day high - cema(var3, 3) 10 day low}
set{var9, var7 / var8}
set{stclong, 100 * cema(var9, 3)}

add column STClong
draw stclong
draw ema(23)

/*BUY WHEN STC CROSSES ABOVE 20, SHORT WHEN STC CROSSES BELOW 80*/
draw stclong line at 80
draw stclong line at 20

chart-time is 6 months
symlist(fnsr,msft,abmd)
]



nibor100
1,031 posts
msg #148699
Ignore nibor100
modified
7/26/2019 1:00:00 PM

Fetcher[
set{range, MACD (23,50,9) 10 day high - MACD (23,50,9) 10 day low}
set{var2, MACD (23,50,9) - MACD (23,50,9) 10 day low}
set{var3, var2 / range}

set{stclong, 100 * cma(var3, 3)} add column stclong

draw stclong
draw ema(23)

/*BUY WHEN STC CROSSES ABOVE 20, SHORT WHEN STC CROSSES BELOW 80
draw stclong line at 80
draw stclong line at 20*/

chart-time is 6 months
symlist(fnsr,msft,abmd)
]



nibor100
1,031 posts
msg #154380
Ignore nibor100
10/19/2020 4:40:08 PM

d-complexity test run for an Angle Between Indicators

Fetcher[
/* ORIGINAL CODE by GRAFTONIAN */
/* https://www.stockfetcher.com/forums/Filter-Exchange/ANGLE-BETWEEN-INDICATORS/154229 */

/* Adding set statements for Daily and Weekly MACD */
/* I don't have advanced subscription, so maybe someone that does can let me know if it worked ok */

set{wk1,cema(close,60)}
set{wk2,cema(close,130)}
set{Weekly_MACD,wk1 - wk2}

set{dy1,cema(close,12)}
set{dy2,cema(close,26)}
set{Daily_MACD,dy1 - dy2}

set{Weekly_and_Daily_MACD,Weekly_MACD + Daily_MACD}

/*ANGLE BETWEEN INDICATORS 10/7/2020*/
NOT OTCBB
/*CLOSE BETWEEN 1 AND 10 */ /* COMMENTED OUT */


AVERAGE VOLUME(10) > 1000000

/*angle of MA slopes, or your choice of indicator 1 and 2*/
set{indicator1, Weekly_and_Daily_MACD}/*set here*/
set{indicator2, Weekly_MACD}/*and here*/
draw indicator1 on plot price
draw indicator2 on plot price
set{slopeind1, 2 day slope of indicator1}
set{slopeind2, 2 day slope of indicator2}
/*set{radiansind1, slopeind1}
set{radiansind2, slopeind2}
set{atanind1, atan(radiansind1)}
set{atanind2, atan(radiansind2)}
set{hcircle, 180 / 3.14159}
set{angledegind1, atanind1 * hcircle}
set{angledegind2, atanind2 * hcircle}*/
set{angledegind1, 57.30 * atan(slopeind1)}
set{angledegind2, 57.30 * atan(slopeind2)}
add column angledegind1
add column angledegind2
set{CrossingAngle, angledegind1 - angledegind2}
add column CrossingAngle
/*add the crossing angle and angledeg10ma*/
set{MomentumAngle, CrossingAngle + angledegind1}
add column MomentumAngle

/*filter and sort*/
/*indicator1 crossed above indicator2 */ /* COMMENTED OUT */
/*sort on column 8 descending*/

/*bells and whistles*/
/*set{xxx, close}*/
draw price line at close


DRAW angledegind1 LINE AT 20 /* angledegind1 for maturing tech stocks likely not above 20 ? */
DRAW angledegind1 LINE AT -20
]



nibor100
1,031 posts
msg #154387
Ignore nibor100
modified
10/20/2020 12:22:17 PM

Fetcher[
/* ORIGINAL CODE by GRAFTONIAN */
/* https://www.stockfetcher.com/forums/Filter-Exchange/ANGLE-BETWEEN-INDICATORS/154229 */

/* Adding set statements for Daily and Weekly MACD */
/* I don't have advanced subscription, so maybe someone that does can let me know if it worked ok */

set{wk1,cema(close,60)}
set{wk2,cema(close,130)}
set{Weekly_MACD,wk1 - wk2}

/*set{dy1,cema(close,12)}
set{dy2,cema(close,26)}
set{Daily_MACD,dy1 - dy2}*/

set{Weekly_and_Daily_MACD,Weekly_MACD + MACD}

/*ANGLE BETWEEN INDICATORS 10/7/2020*/
NOT OTCBB
/*CLOSE BETWEEN 1 AND 10 */ /* COMMENTED OUT */


AVERAGE VOLUME(10) > 1000000

/*angle of MA slopes, or your choice of indicator 1 and 2*/
set{indicator1, Weekly_and_Daily_MACD}/*set here*/ add column indicator1
set{indicator2, Weekly_MACD}/*and here*/
draw indicator1 on plot price
draw indicator2 on plot price
set{slopeind1, 2 day slope of indicator1}
set{slopeind2, 2 day slope of indicator2}
/*set{radiansind1, slopeind1}
set{radiansind2, slopeind2}
set{atanind1, atan(radiansind1)}
set{atanind2, atan(radiansind2)}
set{hcircle, 180 / 3.14159}
set{angledegind1, atanind1 * hcircle}
set{angledegind2, atanind2 * hcircle}*/
set{angledegind1, 57.30 * atan(slopeind1)}
set{angledegind2, 57.30 * atan(slopeind2)}
add column angledegind1
add column angledegind2
set{CrossingAngle, angledegind1 - angledegind2}
add column CrossingAngle
/*add the crossing angle and angledeg10ma*/
set{MomentumAngle, CrossingAngle + angledegind1}
add column MomentumAngle

/*filter and sort*/
/*indicator1 crossed above indicator2 */ /* COMMENTED OUT */
/*sort on column 8 descending*/

/*bells and whistles*/
/*set{xxx, close}*/
draw price line at close


DRAW angledegind1 LINE AT 20 /* angledegind1 for maturing tech stocks likely not above 20 ? */
DRAW angledegind1 LINE AT -20
]



StockFetcher Forums · Stock Picks and Trading · My Testbed for Converting Advanced level filters to Basic level filters<< >>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.