last uncompleted works on xind class ...
This commit is contained in:
@@ -114,7 +114,7 @@ int OnCalculate(
|
||||
|
||||
//
|
||||
int midCalculatedBars = mMid.GetCalculatedBars();
|
||||
if (midCalculatedBars < maxLength)
|
||||
if (midCalculatedBars < 0)
|
||||
{
|
||||
return prev_calculated;
|
||||
}
|
||||
@@ -225,16 +225,18 @@ void SetIndicatorName()
|
||||
void CalculateBuffers(int barIndex)
|
||||
{
|
||||
//
|
||||
// double iValue = mMid.GetBufferValue(
|
||||
// "XSCMid",
|
||||
double iValue = mMid.GetBufferValue(
|
||||
"XSCMid",
|
||||
barIndex //
|
||||
);
|
||||
|
||||
//
|
||||
// double iValue = iClose(
|
||||
// _Symbol,
|
||||
// _Period,
|
||||
// barIndex //
|
||||
// );
|
||||
|
||||
//
|
||||
double iValue = iClose(
|
||||
_Symbol,
|
||||
_Period,
|
||||
barIndex //
|
||||
);
|
||||
mainBuffer[barIndex] = iValue;
|
||||
}
|
||||
Reference in New Issue
Block a user