StockFetcher Forums · General Discussion · McGinley Dynamic Formula<< 1 2 >>Post Follow-up
snappyfrog
557 posts
msg #159704
Ignore snappyfrog
10/20/2022 7:26:09 AM

Anyone what to take a crack at this?

McGinley Dynamic Formula

https://www.investopedia.com/articles/forex/09/mcginley-dynamic-indicator.asp

snappyfrog
557 posts
msg #159705
Ignore snappyfrog
10/20/2022 8:00:32 AM

In essence this would change a moving average by a multiplier of 0.6 after an entry.

So if one used an entry of open above MA(20), then the moving average would
change to a MA(12) to more closely follow price.

Exit would take place when close crossed below the MA(12) to keep from giving
back too much profit.

At that point, the moving average changes back to the MA(20) to insure a reversal
before the next entry of open above the MA(20).

KSK8
559 posts
msg #159708
Ignore KSK8
10/20/2022 4:58:10 PM

I'm familiar with it's computations. Unfortunately, it's impossible with the current functions available. I hope I'm wrong. I do encourage other's to give it a stab nonetheless

SAFeTRADE
608 posts
msg #159723
Ignore SAFeTRADE
10/25/2022 5:18:30 PM

OK what am I doing wrong here you wizards.

set{x8, close - ma(21) 1 day ago}
set{x7, .60 * 10}
set{x6, close / ma(21) 1 day ago}
set{x5, x7 * x6}
set{x4, pow(x5,0.25)}

set{x3, x4 / x8}
set{mdii, x8 + x3}


symlist(spy)
draw mdii on plot price

SAFeTRADE
608 posts
msg #159724
Ignore SAFeTRADE
10/25/2022 7:46:21 PM

Does this look right? I do not think so.

Fetcher[
set{x8, close - ma(21) 1 day ago}

/*set{x7, .60 * 10}*/
set{x6, close / ma(21) 1 day ago}
set{x5, .60 * x6}

set{x4, pow(x5,0.50)}

set{x3, x4 / x8}
set{mdii, ma(21) 1 day ago + x3}


symlist(spy)
draw mdii on plot price
]



SAFeTRADE
608 posts
msg #159725
Ignore SAFeTRADE
10/25/2022 8:32:54 PM

Here it is using the 10 day MA.

Fetcher[set{x8, close - ma(10) 1 day ago}

/*set{x7, .60 * 10}*/
set{x6, close / ma(10) 1 day ago}
set{x5, .60 * x6}

set{x4, pow(x5,0.50)}

set{x3, x4 / x8}
set{mdii, ma(10) 1 day ago + x3}


symlist(spy)
draw mdii on plot price
]



SAFeTRADE
608 posts
msg #159727
Ignore SAFeTRADE
10/26/2022 7:09:21 AM

Maybe this?

Fetcher[set{x8, close - ma(20) 1 day ago}

set{x7, .60 * 20}
set{x6, close / ma(20) 1 day ago}
set{x5, x7 * x6}



set{x3, x7 / x8}
set{x2, pow(x3,.50)}
set{mdii, ma(20) 1 day ago + x2}


watchlist(sectors)
draw mdii on plot price
]



SAFeTRADE
608 posts
msg #159729
Ignore SAFeTRADE
10/26/2022 6:43:00 PM

Then again.



Fetcher[set{x8, close - ma(20) 1 day ago}

set{x7, .60 * 10}
set{x6, close / ma(20) 1 day ago}
set{x5, x7 * x6}



set{x3, x7 / x8}
set{x2, pow(x3,.50)}
set{mdii, ma(20) 1 day ago + x2}


watchlist(sectors)
draw mdii on plot price
]



snappyfrog
557 posts
msg #159730
Ignore snappyfrog
10/26/2022 9:51:09 PM

I like the second one above. Just one question.

What does "pow" stand for?

set{x4, pow(x5,0.50)}

SAFeTRADE
608 posts
msg #159731
Ignore SAFeTRADE
10/26/2022 10:38:32 PM

snappy frog here is answer,

8/9/2007 2:20:06 AM

And, if you want the root of a function simply raise your measure to the decimal equivalent of its fraction. For example ...

the 1st root of the CLOSE = close^(1/1)
the 2nd (square) root of the CLOSE = close^(1/2)
the 3rd (cube) root of the CLOSE = close^(1/3)
the 4th root of the CLOSE = close^(1/4)
Submit Fetcher[
and add column pow(close,1.00)
and add column pow(close,0.50)
and add column pow(close,0.33)
and add column pow(close,0.25)


I do not think any of what I have done is correct.

StockFetcher Forums · General Discussion · McGinley Dynamic Formula<< 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.