1). calculate sma of period X
2). calculate ATR of period X
3). then calculate sma of the above ATR
Step 1). double smavalue = SMA (Period)[0];
Step 2). double atrvalue = ATR(Period)[0];
Now i dont know how to calculate simple moving average of step 2 for period X, can some one help me please.
I'm totally new to scripting and if any one can help i would really appreciate.
Thank you,
SC
Comment