StockFetcher Forums · View by Author: (299 messages)  [ Display By: Date / Subject ]<< 1 2 3 4 5 ... 30 >> 
General Discussion · A very unexpected use of Donchian Center & Lower Bands
snappyfrog
msg #154353
10/17/2020 8:42:41 AM

Interesting

General Discussion · Weekly and Daily MACD combined please ?
snappyfrog
msg #154352
10/17/2020 8:24:15 AM

xarlor,

Thanks again. I have now morphed this into a Daily_MACD coming off of the 22 day low (much like my PVI 22 day low filter).

Now, I just have to work on entry points.

Fetcher[
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}

draw Weekly_and_Daily_MACD
draw Weekly_MACD on plot Weekly_and_Daily_MACD
draw Weekly_and_Daily_MACD line at 0


market is not otcbb
market is not etf
price > 3
and Average Volume(30) > 1000000
optionable
draw pvi 22 day low on plot pvi
draw Daily_MACD 22 day low on plot Daily_MACD
and Daily_MACD 1 day ago equals Daily_MACD 22 day low
and Daily_MACD > Daily_MACD 22 day low
]





General Discussion · Weekly and Daily MACD combined please ?
snappyfrog
msg #154351
10/17/2020 7:36:50 AM

Perfect. Thanks Xarlor

General Discussion · Weekly and Daily MACD combined please ?
snappyfrog
msg #154345
10/16/2020 2:53:56 PM

ToS has a WeeklyandDailyMACD. Here is the code. Surely this can be done in SF.

input weeklyFastLength = 60;
input weeklySlowLength = 130;
input dailyFastLength = 12;
input dailySlowLength = 26;

plot WeeklyMACD = ExpAverage(close, weeklyFastLength) - ExpAverage(close, weeklySlowLength);
plot DailyMACD = ExpAverage(close, dailyFastLength) - ExpAverage(close, dailySlowLength);
plot WeeklyAndDailyMACD = DailyMACD + WeeklyMACD;
plot ZeroLine = 0;


Filter Exchange · Weekly Reversal Strategy
snappyfrog
msg #154309
10/13/2020 9:36:06 AM

Thank you Cheese

Filter Exchange · ANGLE BETWEEN INDICATORS
snappyfrog
msg #154283
10/11/2020 11:31:01 AM

How about with Displaced Moving Averages?

Fetcher[

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

/*Adapted for DMA as in hypothesis, the sharper the angle the stronger the move*/


/*ANGLE BETWEEN INDICATORS 10/7/2020*/
NOT OTCBB
CLOSE BETWEEN 1 AND 10
AVERAGE VOLUME(10) > 1000000
/*angle of MA slopes, or your choice of indicator 1 and 2*/
set{indicator1, cma(DMA(7,-5),1)}/*set here*/
set{indicator2, cma(DMA(7,-5),7)}/*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}
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
sort on column 8 descending
/*bells and whistles*/
set{xxx, close}
draw price line at xxx
]



Filter Exchange · ANGLE BETWEEN INDICATORS
snappyfrog
msg #154269
10/10/2020 4:04:20 PM

VirginTrader, thanks. Another good one.

Filter Exchange · ANGLE BETWEEN INDICATORS
snappyfrog
msg #154263
10/10/2020 12:37:33 PM

Graf,

I'm glad you brought up this subject as I have looked at angles before and wondered the same thing as you, I just was at a loss as to how to try to express it in code.

Awesome job!

Filter Exchange · ANGLE BETWEEN INDICATORS
snappyfrog
msg #154262
modified
10/10/2020 12:33:42 PM

Try with my PVI swing trade setup.


Fetcher[

/*Original Code by GRAFTONIAN*/

/*Xarlor's adapted code and removing TTM Squeeze, making BB a visual indicator for those not on Advanced Subscription*/

/*Added Pchange > -2 and changed close to close > 5 and removed indicator2 < 50*/

/*Adapted to my PVI and CMA(PVI,10) - PVI crossing said 10 day moving average. PVI is positive volume index or retail traders.*/


/*ANGLE BETWEEN INDICATORS 10/7/2020*/
NOT OTCBB
CLOSE > 5
AVERAGE VOLUME(10) > 1000000
optionable
market is not otcbb
market is not etf
/*angle of MA slopes, or your choice of indicator 1 and 2*/
set{indicator1, pvi}/*set here*/
set{indicator2, CMA(pvi,10)}/*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}
add column separator
add column angledegind1
add column angledegind2
set{CrossingAngle, angledegind1 - angledegind2}
add column separator
add column CrossingAngle
/*add the crossing angle and angledeg10ma*/
set{MomentumAngle, CrossingAngle + angledegind1}
add column MomentumAngle

/* TTM Squeeze draw */

set{momo,cema(momentum(16),5)}

set{Pchange1,momentum(16)/momentum(16) 1 day ago}
set{Pchange,Pchange1 - 1}
Pchange > -2

draw Upper Bollinger Band(20,2) < Upper Keltner Band(20,2),1)
draw Lower Bollinger Band(20,2) > Lower Keltner Band(20,2),1)

add column momo
add column pchange
draw momo
plottype{momo,zerobar}

sort on column 12 descending
/*bells and whistles*/
set{xxx, close}
draw price line at xxx
draw indicator2 on plot indicator1
and indicator1 crossed above indicator2

]



Filter Exchange · ANGLE BETWEEN INDICATORS
snappyfrog
msg #154261
10/10/2020 12:24:06 PM

Of course I have to try it with my longer Stochastic (40,40,4) for swing trades of 5 days or longer.

Fetcher[

/*Original Code by GRAFTONIAN*/

/*Snappyfrog's adapted code for short term swing trades using the Stochastic %K(20,20,2)*/

/*Xarlor's adapted code and removing TTM Squeeze, making BB a visual indicator for those not on Advanced Subscription*/

/*Added Pchange > -2 and changed close to close > 5*/

/*Changed Stochastic (20,20,2) to the longer (40,40,4) for longer trades/*


/*ANGLE BETWEEN INDICATORS 10/7/2020*/
NOT OTCBB
CLOSE > 5
AVERAGE VOLUME(10) > 1000000
optionable
market is not otcbb
market is not etf
/*angle of MA slopes, or your choice of indicator 1 and 2*/
set{indicator1, Stochastic %K(40,40,4)}/*set here*/
set{indicator2, Stochastic %D(40,40,4)}/*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}
add column separator
add column angledegind1
add column angledegind2
set{CrossingAngle, angledegind1 - angledegind2}
add column separator
add column CrossingAngle
/*add the crossing angle and angledeg10ma*/
set{MomentumAngle, CrossingAngle + angledegind1}
add column MomentumAngle

/* TTM Squeeze draw */

set{momo,cema(momentum(16),5)}

set{Pchange1,momentum(16)/momentum(16) 1 day ago}
set{Pchange,Pchange1 - 1}
Pchange > -2

draw Upper Bollinger Band(20,2) < Upper Keltner Band(20,2),1)
draw Lower Bollinger Band(20,2) > Lower Keltner Band(20,2),1)

add column momo
add column pchange
draw momo
plottype{momo,zerobar}

sort on column 12 descending
/*bells and whistles*/
set{xxx, close}
draw price line at xxx
draw indicator2 on plot indicator1
and indicator1 crossed above indicator2
and indicator2 < 50
]



StockFetcher Forums ·  · << 1 2 3 4 5 ... 30 >>

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