How to get line/MA slope
-
@jstap Thank you.. Let me see if its going to work.. cannot be that easy.. will give you feedback on my progress.. appreciate your help!!
-
@alphaomega Many things aren't that easy, that is though : )
-
@jstap at last SUCCESS!!! - Thank You very much brother

-
@alphaomega Your welcome
-
https://fxdreema.com/shared/fFaL7W2rc
hi dear friends
i find an ea that draw trendline by zigzag. how can i set a variable for trendlines that shows me the number of angle of trendlines? -
Did this work? I tried the name SkyLightBlue as used in the Draw line but this does not trigger the Sell (as far as I can see). What values did you use for ANGLE_RANGE and LINE_ANGLE ?
-
Yes it works, look a couple of posts above to see people say it does.
-
@jstap What would be valid values for the LINE_ANGLE parameter ? I tried it and the SLOPE_RESULT seems to be a very small value.
Should I just use a multiplier in order to let LINE_ANGLE parameter a value between 0-90 (to represent a genuine angle value)? -
@doeveR
Maybe normalization by ATR can help. Say, divide the increment or slope, by ATR. Or you can even try the square root of ATR. That make sense as ATR is approximately proportional to time square. And the slope is given by increment over time.Just make some test to see what you want