Postby Henry MultiСharts » 22 Feb 2013
Here are the functions used for TrueRange calculation since MultiCharts .Net 8.5 beta.
They are available through static class PublicFunctions.
Description:
The function returns TrueRange value for current bar of the base data stream.
Parameters:
_this:
public static double TrueRange( this IStudy _this );
Description:
The function returns TrueRange value for the base datastream.
Parameters:
_this:
barsback:
public static double TrueRange( this IStudy _this, int barsback );
Description:
The function returns TrueRangeCustom value for '_this' study data on data
stream and 'barsback' bars ago.
Parameters:
_this:
Study info.
barsback:
Number of bars ago.
datastream:
Data stream number.
Returns:
TrueRangeCustom value for '_this' study data on data stream and 'barsback'
bars ago.
public static double TrueRange( this IStudy _this, int barsback, int datastream );
Description:
The function returns TrueRangeCustom value for the current bar.
Parameters:
high:
Hight series values.
low:
Low series values.
close:
Close series values.
Returns:
TrueRangeCustom value for the current bar.
public static double TrueRangeCustom( this ISeries<double> high, ISeries<double> low, ISeries<double> close );
Description:
The function returns TrueRangeCustom value for the offset 'bars ago' from
current bar.
Parameters:
high:
High series values.
low:
Low series values.
close:
Close series values.
offset:
The numerical expression specifying the number of bars back.
Returns:
TrueRangeCustom value for the offset 'bars ago' from current bar.
public static double TrueRangeCustom( this ISeries<double> high, ISeries<double> low, ISeries<double> close, int offset );
Description:
The function returns TrueRange series value.
Parameters:
_this:
public static ISeries<double> TrueRangeSeries( this IStudy _this );
Description:
The function returns TrueRange series value.
Parameters:
_this:
bb:
public static ISeries<double> TrueRangeSeries( this IStudy _this, int bb );