last ...
This commit is contained in:
@@ -54,6 +54,7 @@ enum ENUM_X121_XKI_BUFFERS
|
||||
//
|
||||
// ATR ...
|
||||
X121_XKI_ATR_LINE = 11,
|
||||
X121_XKI_ATR_SMOOTHED_LINE = 17,
|
||||
X121_XKI_ATR_RAW_UPPER_LINE = 12,
|
||||
X121_XKI_ATR_RAW_LOWER_LINE = 13,
|
||||
//
|
||||
@@ -225,6 +226,7 @@ struct X121XKIConditions
|
||||
double maFastBuffer[];
|
||||
double maSlowBuffer[];
|
||||
double atrBuffer[];
|
||||
double atrSmoothedBuffer[];
|
||||
double atrRawUpperBuffer[];
|
||||
double atrRawLowerBuffer[];
|
||||
double rsiBuffer[];
|
||||
@@ -270,6 +272,7 @@ struct X121XKIConditions
|
||||
XClean(maFastBuffer);
|
||||
XClean(maSlowBuffer);
|
||||
XClean(atrBuffer);
|
||||
XClean(atrSmoothedBuffer);
|
||||
XClean(atrRawUpperBuffer);
|
||||
XClean(atrRawLowerBuffer);
|
||||
XClean(rsiBuffer);
|
||||
@@ -290,6 +293,7 @@ struct X121XKIConditions
|
||||
ArraySetAsSeries(maFastBuffer, true);
|
||||
ArraySetAsSeries(maSlowBuffer, true);
|
||||
ArraySetAsSeries(atrBuffer, true);
|
||||
ArraySetAsSeries(atrSmoothedBuffer, true);
|
||||
ArraySetAsSeries(atrRawUpperBuffer, true);
|
||||
ArraySetAsSeries(atrRawLowerBuffer, true);
|
||||
ArraySetAsSeries(rsiBuffer, true);
|
||||
@@ -552,6 +556,11 @@ class XCX121XKIHelper : public XCBaseHelper
|
||||
loopback,
|
||||
conditions.atrBuffer //
|
||||
);
|
||||
CopyATRSmoothed(
|
||||
zIndex,
|
||||
loopback,
|
||||
conditions.atrSmoothedBuffer //
|
||||
);
|
||||
CopyATRRawUpper(
|
||||
zIndex,
|
||||
loopback,
|
||||
@@ -1082,6 +1091,38 @@ class XCX121XKIHelper : public XCBaseHelper
|
||||
}
|
||||
// #endregion
|
||||
|
||||
// #region ATRSmoothed ...
|
||||
//
|
||||
double GetATRSmoothed(
|
||||
int barIndex // Bar Index
|
||||
)
|
||||
{
|
||||
//
|
||||
return ReadValue(
|
||||
(int)X121_XKI_ATR_SMOOTHED_LINE,
|
||||
barIndex //
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
int CopyATRSmoothed(
|
||||
int start, // Start
|
||||
int count, // Number of Items for read
|
||||
double &buffer[], // Dest Buffer
|
||||
bool asSeries = true // As Series Flag
|
||||
)
|
||||
{
|
||||
//
|
||||
return ReadValues(
|
||||
buffer,
|
||||
(int)X121_XKI_ATR_SMOOTHED_LINE,
|
||||
start,
|
||||
count,
|
||||
asSeries //
|
||||
);
|
||||
}
|
||||
// #endregion
|
||||
|
||||
// #region ATR Raw Upper...
|
||||
//
|
||||
double GetATRRawUpper(
|
||||
|
||||
Reference in New Issue
Block a user