search Nothing found
Main Algotrading documentation Access to quote history

Bars.High

Get the maximum bar price

double Bars.High (string SymbolName, int TimeFrame, int shift)

Input parameters:

Parameter
Type
Description
SymbolName
string
Symbol
Timeframe
int
Period
shift
int
Shift relative to the current bar

In this case, if shift = 0, this is the current bar, if shift=1, then this is the previous bar, etc.

 Return value:

 the requested parameter value, or -1 in case of an error.

 

Example:

// Get the maximum price of the previous bar
double h1 = Bars.High(Symbol.SymbolName, TimeFrame.Current, 1);



Subscribe to our newsletter and stay up to date with all the news!