Is there an EFS file to calculate the angle of a Moving Average, if not then how would you write an EFS file to calculate the angle of a moving average, whether it’s 45deg, 60deg, etc….
where the yValues are the values of your indicator on the y-axis and the xValues are x-axis values. You could use the bar index numbers for the xValues. Take the absolute value of the difference of the index values between the two bars in question.
Jason K.
Project Manager eSignal - an Interactive Data company
greg108
The attached efs draws a line from the current MA value to the MA's value "n" bars back (default is 0). In the image below for example the "n" lookback is set to 35 (which you can see in the Csr# in the Cursor Window)
All parameters of the MA and the "n" lookback period can be modified via Edit Studies. The "n" lookback value is a positive number even if it relates to negative bar index
Alex
Comment