last uncompleted works on xind class ...

This commit is contained in:
2024-05-30 13:28:34 +03:30
parent ca5d23c43f
commit 065700550d
3 changed files with 15 additions and 104 deletions
+10 -8
View File
@@ -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;
}