| Technical Analysis The technical discussion forum for traders. |
![]() | | Tweet | |
| | #1 | ||
![]() | Slope of MACD Calculate Angle Trying to determine if there is a way to determine what this would be, and how to program this into an indicator. | ||
| |
|
| | #2 | ||
![]() | Re: Slope of MACD Calculate Angle
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #3 | ||
![]() | Re: Slope of MACD Calculate Angle Quote:
if you can imagine it, visualize it, quantify it, articulate it... you can program it.
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #4 | ||
![]() | Re: Slope of MACD Calculate Angle | ||
| |
|
| | #5 | ||
![]() Status: Partner Join Date: Mar 2007 Location: Atlanta, GA Posts: 224 Thanks: 0
Thanked 76 Times in 59 Posts
| Re: Slope of MACD Calculate Angle MACD - MACD.1 If you define slope in "degrees", then the slope will change when you zoom the chart, resize the chart, rescale the chart, etc, Even though the change per bar remained constant. | ||
| |
|
| | #6 | ||
![]() | Re: Slope of MACD Calculate Angle We all know that if we adjust any chart the x and y axis of the chart, can be stretched up/down, and we can make any angle look greater or less than it actually is. So with this said, we can use a formula to determine slope of a line: Standard slope is simply rise over run. Converting an angle to percentage terms is: nSlopePct = Math.tan( nAngle * (Math.PI/180) ); where nAngle is the angle in degrees of the line in question. If we look at the available options that are displayed with MACD: MACD Signal Fast Line MACD Slow Line MACD Histogram Based on these available values, I am looking for a way to use these values, to determine the angle or slope of the MACD, say if the MACD is flat, I don't necessarily want to be involved with that market, or if the angle is sharp up, I don't want to enter opposite to this momentum. Any suggestions on how to use these values to return a value? | ||
| |
|
| | #7 | ||
![]() | Re: Slope of MACD Calculate Angle a..if you consider price as distance then how you quantify time or other resolutions? what you have here in one axis is price and in the other a barnumber.. it is quite unlikely to get what we commonly think as an angle from these 2 dimensions b. what will be your switch that will reset the calculation( point a from whitch you start calculating to point b...and reset to point a and so on). **** regarding slope ***** fixed length is a trap because it is an arbitrary assumption,the market doesnt fit its behaviour in a rolling cycle ask john elhers he knows all about it... almost all his published studies are based on cycles and geometry functions and his " reputable " mesa system on openrange breakout if i am informed well... let us know if you come up with something... | ||
| |
|
| The Following User Says Thank You to andypap For This Useful Post: | ||
Tams (07-09-2010) | ||
| | #8 | ||
![]() | Re: Slope of MACD Calculate Angle Ninjatrader has a fonction called "Slope" to calculate angles i believe, it shoudn't be too difficult to apply it to the MACD fast line in a custom indicator cheers, Totantaz | ||
| |
|
![]() |
| Tags |
| macd, slope |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |