stdDev
 

Short Name: stdDev

Definition: Given an array of values, returns the statistical standard deviation. Given a number, returns an array of standard deviations of close values over “number” periods.

Usage: stdDev(array) or stdDev(20) or stdDev or stdDev(array,number)

Objective:
  • Returns the standard deviation of values passed as parameter, if the parameter is an array
  • Returns an array of standard deviations of close values, if the parameter is a number
  • Returns an array of standard deviations of array values if there are two parameters, an array and a number
  • Returns an array of values.

Note:

Examples:
  • stdDev(array) returns the standard deviation for the array
  • stdDev(50) returns a mobile array of standard deviations of close values, over 50 periods
  • stdDev is equivalent to stdDev(20)
  • stdDev(rsi(14),20) rest urns an array of standard deviations of RSI