last ...
This commit is contained in:
@@ -9869,6 +9869,247 @@ class XCXFIMAHelperParser : XCBase
|
||||
//
|
||||
// Other Tools ...
|
||||
|
||||
/**
|
||||
* Reading All Values of XFIMA ...
|
||||
*
|
||||
* @param dest: double, collection reference to holds values ...
|
||||
* @param barIndex: int, Specified Bar Index ...
|
||||
*
|
||||
* @return ( int )
|
||||
*/
|
||||
int ReadXFIMAValues(
|
||||
double &dest[],
|
||||
int barIndex = 0 //
|
||||
)
|
||||
{
|
||||
//
|
||||
int result = 0;
|
||||
|
||||
//
|
||||
// Prepare ...
|
||||
XClean(dest);
|
||||
|
||||
//
|
||||
// Normalize ...
|
||||
barIndex = NormalizeBarIndex(barIndex);
|
||||
|
||||
//
|
||||
// Validate ...
|
||||
bool has = IsValid();
|
||||
if (!has)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Reading Values ...
|
||||
double sar = helper.GetSAR(barIndex);
|
||||
double scLL = helper.GetSLL(barIndex);
|
||||
double scHH = helper.GetSHH(barIndex);
|
||||
double mcLL = helper.GetMLL(barIndex);
|
||||
double mcHH = helper.GetMHH(barIndex);
|
||||
double lcLL = helper.GetLLL(barIndex);
|
||||
double lcHH = helper.GetLHH(barIndex);
|
||||
double hcLL = helper.GetHLL(barIndex);
|
||||
double hcHH = helper.GetHHH(barIndex);
|
||||
double peak = helper.GetPeak(barIndex);
|
||||
double vale = helper.GetVale(barIndex);
|
||||
double scMa = helper.GetSCMA(barIndex);
|
||||
double mcMa = helper.GetMCMA(barIndex);
|
||||
double lcMa = helper.GetLCMA(barIndex);
|
||||
double hcMa = helper.GetHCMA(barIndex);
|
||||
double maFast = helper.GetMAFast(barIndex);
|
||||
double maSlow = helper.GetMASlow(barIndex);
|
||||
double fibLower = helper.GetFiboLower(barIndex);
|
||||
double fibUpper = helper.GetFiboUpper(barIndex);
|
||||
double fibMiddle = helper.GetFiboMiddle(barIndex);
|
||||
double maBandUpper = helper.GetMABandUpper(barIndex);
|
||||
double maBandLower = helper.GetMABandLower(barIndex);
|
||||
double hkBandUpper = helper.GetHKBandUpper(barIndex);
|
||||
double hkBandLower = helper.GetHKBandLower(barIndex);
|
||||
double pbBandUpper = helper.GetPBBandUpper(barIndex);
|
||||
double pbBandLower = helper.GetPBBandLower(barIndex);
|
||||
double atrBandUpper = helper.GetATRBandUpper(barIndex);
|
||||
double atrBandLower = helper.GetATRBandLower(barIndex);
|
||||
|
||||
//
|
||||
// Add Values to Dest ...
|
||||
|
||||
//
|
||||
if (NotEmptyZero(sar))
|
||||
{
|
||||
Add(sar, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(scLL))
|
||||
{
|
||||
Add(scLL, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(scHH))
|
||||
{
|
||||
Add(scHH, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(mcLL))
|
||||
{
|
||||
Add(mcLL, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(mcHH))
|
||||
{
|
||||
Add(mcHH, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(lcLL))
|
||||
{
|
||||
Add(lcLL, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(lcHH))
|
||||
{
|
||||
Add(lcHH, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(hcLL))
|
||||
{
|
||||
Add(hcLL, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(hcHH))
|
||||
{
|
||||
Add(hcHH, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(peak))
|
||||
{
|
||||
Add(peak, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(vale))
|
||||
{
|
||||
Add(vale, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(scMa))
|
||||
{
|
||||
Add(scMa, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(mcMa))
|
||||
{
|
||||
Add(mcMa, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(lcMa))
|
||||
{
|
||||
Add(lcMa, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(hcMa))
|
||||
{
|
||||
Add(hcMa, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(maFast))
|
||||
{
|
||||
Add(maFast, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(maSlow))
|
||||
{
|
||||
Add(maSlow, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(fibLower))
|
||||
{
|
||||
Add(fibLower, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(fibUpper))
|
||||
{
|
||||
Add(fibUpper, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(fibMiddle))
|
||||
{
|
||||
Add(fibMiddle, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(maBandUpper))
|
||||
{
|
||||
Add(maBandUpper, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(maBandLower))
|
||||
{
|
||||
Add(maBandLower, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(hkBandUpper))
|
||||
{
|
||||
Add(hkBandUpper, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(hkBandLower))
|
||||
{
|
||||
Add(hkBandLower, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(pbBandUpper))
|
||||
{
|
||||
Add(pbBandUpper, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(pbBandLower))
|
||||
{
|
||||
Add(pbBandLower, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(atrBandUpper))
|
||||
{
|
||||
Add(atrBandUpper, dest);
|
||||
}
|
||||
|
||||
//
|
||||
if (NotEmptyZero(atrBandLower))
|
||||
{
|
||||
Add(atrBandLower, dest);
|
||||
}
|
||||
|
||||
//
|
||||
result = ArraySize(dest);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Protected ...
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user