StockFetcher Forums · General Discussion · MACD DIVERGENCE QUESTION<< >>Post Follow-up
graftonian
1,089 posts
msg #123107
Ignore graftonian
3/10/2015 1:54:57 PM

I AM TRYING TO WRITE SOME CODE TO FIND STOCKS WITH A LARGE, FAIRLY EVEN, SINUSOIDAL DIVERGENCE PATTERN. PRESENTLY WORKING WITH CSTDDEV, BUT NO PROGRESS. ANY IDEAS WOULD BE GREATLY APPRECIATED.
THANX,
GRAFTONIAN

four
5,087 posts
msg #123110
Ignore four
modified
3/10/2015 3:51:22 PM

The Fisher Transformation starts from the analysis of a sine wave.

http://blog.rizm.io/2013/01/the-fisher-transformation-a-trading-system-developed-from-the-pdf-of-the-market-data

Fetcher[
draw IFT(5,9) line at -0.5
draw IFT(5,9) line at 0
draw IFT(5,9) line at 0.5

IFT(5,9) 1 day ago had been below -0.5 for the last 2 weeks

draw fisher transform(2) crossed below 0

sp500
]



graftonian
1,089 posts
msg #123111
Ignore graftonian
3/10/2015 6:31:46 PM

FOUR,
THANX FOR THE INFO. THIS IS ALL NEW TO ME, SO WILL TRY TO DISSECT IT IN THE MORNING.
GRAFTONIAN

Kevin_in_GA
4,599 posts
msg #123112
Ignore Kevin_in_GA
3/10/2015 8:17:07 PM

It would be helpful to define exactly what type of divergence you are looking for - I'm assuming it is "the MACD keep going lower while the price rises" sort of thing?

This is easier to filter for as an individual event rather than as a periodic event. For the latter you also would need to define the periodicity of the sinusoidal component as well as what constitutes a "divergence" (how big a difference in percent, for example).

graftonian
1,089 posts
msg #123124
Ignore graftonian
3/11/2015 1:19:49 PM

FOUR, THANX FOR THE REPLY, LOOKED UP FISHER TRANSFORM ON WIKIPEDIA, FELT LIKE A MONKEY STARING AT A WRIST WATCH (OR MAYBE AN APPLE WATCH).

THINKING AS I WRITE, I ENVISION A SINE WAVE (OR 1/2 SINE WAVE) WITH A PERIOD EQUAL TO THE NUMBER OF DAYS BETWEEN THE TWO POINTS THE MACD VARIANCE IS ZERO. THE AMPLITUDE COULD BE ONE, OR SOME DERIVATION
OF THE VARIANCE AMPLITUDE BETWEEN THE TWO "ZERO" POINTS. THEN DESIGN A FILTER TO MEASURE THE "FIT" OF THE DATA TO THE IDEAL (THE SINE WAVE). I GUESS THE AVERAGE DEVIATION OF EACH DAYS MACD VARIATION TO THE SINE WAVE MIGHT BE A PLACE TO START.

DOES ANY OF THIS MAKE ANY SENSE?
GRAFTONIAN

four
5,087 posts
msg #123128
Ignore four
modified
3/11/2015 7:25:36 PM

Seems like you might like to investigate John F. Ehlers.

Developed by the author of Rocket Science for Traders
“We measure each stock's dominant cycle period and amplitude to forecast reversals. Note how the Robo-Forecaster accurately predicts turning points in a Theoretical Sine Wave”
— StockSpotter.com Co-Founder John F. Ehlers


http://www.stockspotter.com/In/Books.aspx

graftonian
1,089 posts
msg #123131
Ignore graftonian
3/12/2015 9:19:41 AM

AS ALWAYS, I'M TRYING TO RE-INVENT THE WHEEL. WILL DO SOME READING ON EHLER TODAY. THANX

Mactheriverrat
3,153 posts
msg #123167
Ignore Mactheriverrat
modified
3/12/2015 10:49:39 PM

I'll say one thing that IFT(5,9) holding above or below certain levels is very interesting when following up or down trends
Some examples
Submit
Fetcher[
symlist(SPY , ery, uso , CRMD , flws , adxs)
draw IFT(5,9) line at -0.5
draw IFT(5,9) line at 0
draw IFT(5,9) line at 0.5

and draw bollinger band(20,2)
Draw EMA(13)
Chart-time is 12 months
add column IFT(5,9)
add column IFT(5,9) one day ago
add column IFT(5,9) two day ago
add column IFT(5,9) three day ago
add column IFT(5,9) four day ago
]



graftonian
1,089 posts
msg #123182
Ignore graftonian
3/13/2015 10:49:13 AM

FOUR,
EHLERS METHODOLOGY IS WHAT I WAS TRYING TO DESCRIBE. HIS BOOKS ARE EXPENSIVE, AND I DON'T KNOW IF I COULD UNDERSTAND THEM AFTER I BOUGHT THEM. I WILL SEE WHAT I CAN LEARN WHILE "PECKING AROUND THE EDGES'.
GRAFTONIAN

StockFetcher Forums · General Discussion · MACD DIVERGENCE QUESTION<< >>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.