By default, Trading Blox Builder Standard Deviation function uses Population formula instead of Sample formula to be more consistent with industry standards.  To change the default to the Sample formula, access the Trading Blox Builder.ini file:

Trading Blox installation folder default setting

Trading Blox installation folder default setting


In terms of the Sample vs. Population Standard Deviation, TRUE enables Population formula, FALSE enables Sample formula.


This  For information on using functions with non auto indexed series review Series Functions.


x = StandardDeviation( series, bars, [offset] )





The name of the series.


The number of bars over which to find the value.


The optional number of bars to offset before finding the value.



'  Example shows the use of the common auto indexed series.
VARIABLES: highestClose, highestHigh, lowestLow, averageClose, standDev TYPE: Price
' Find the highest close of the last 50 bars
highestClose = Highest( instrument.close, 50 )
' Find the lowest low of the last 100 bars
lowestLow = Lowest( instrument.low, 100 )
' Find the highest high since the entry of the first unit of the current position
IF instrument.position <> OUT THEN
  highestHigh = Highest( instrument.high, instrument.unitBarsSinceEntry )
' Find the 10 day average of the close starting 20 days ago
averageClose = Average( instrument.close, 10, 20 )
' Find the standard deviation of the close over the last 100 days
standDev = StandardDeviation( instrument.close, 100 )



Standard Deviation value for each location in a series.



Series Functions

See Also:

Math Functions


Edit Time: 5/2/2017 8:53:20 AM

Topic ID#: 580


Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software