Should the indicator extension not return a value of the std of the 20 most recent momp values? It appears it is only making the calculation with one data point, not 20, so the values for std and momp when logged are identical?

Also, could I use the abs() function to produce a positive value to perform the calculation on irrespective of whether the stock gained or lost value?

Jack

Author