last works ...
This commit is contained in:
@@ -635,6 +635,32 @@ class XCBaseHelper : public XCBase
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizing Bar Index ...
|
||||
*
|
||||
* @param barIndex: int, Provided Bar Index ...
|
||||
*
|
||||
* @return ( int )
|
||||
*/
|
||||
int NormalizeBarIndex(int barIndex)
|
||||
{
|
||||
//
|
||||
int result = barIndex;
|
||||
|
||||
//
|
||||
if (!IsValid())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
int count = CountBars() - 1;
|
||||
result = NormalizeInt(result, 0, count - 1);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Private ...
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user