Implementing an indicator in a formula
-
Hi
Could you please help me with the following question?
I need to define a formula that is using MA indicator as an input.
I want to calculate the angle of MA line to determine the trendline type (uptrend, downtrend, or range) as below:
Angle=Arc Tan((MA(n) - MA(n-1))/T.F)
T.F= 5 minutes for example.
Would you please guide me on how I can do it in blocks?? -
x axis is time. y axis is price. Is the concept of angle valid in this way?
It is like a children growing taller day after day. How do you measure the angle?
-
Angle could be calculated by above mentioned formula.
Where MA(n) and MA(n-1) are two consecutive candles MA. You can calculate the angle of candle MA number n. -
@rezazadeh_mr
So, for 45 degree, how much has the price increased? -
Tan(45)=1 in fact MA value is increasing 1