last uncompleted works on xind class ...
This commit is contained in:
@@ -284,28 +284,14 @@ public:
|
||||
int mainIDX = GetBufferIndex("XSCMid");
|
||||
|
||||
//
|
||||
int start = 0;
|
||||
|
||||
// //
|
||||
// if (prevCalculated == 0)
|
||||
// {
|
||||
// //
|
||||
// if (max > 0)
|
||||
// {
|
||||
// for (int i = 0; i < max; i++)
|
||||
// {
|
||||
// //
|
||||
// for (int j = 0; j < CountBuffers(); j++)
|
||||
// {
|
||||
// mBuffers[j].Add(0);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
int start = prevCalculated;
|
||||
if (start == totalBars) {
|
||||
start-=1;
|
||||
}
|
||||
|
||||
//
|
||||
// Loop through Bars ...
|
||||
for (int i = start; i < limit && !IsStopped(); i++)
|
||||
for (int i = start; i < totalBars - 1 && !IsStopped(); i++)
|
||||
{
|
||||
//
|
||||
// XOHCL iBar;
|
||||
@@ -331,32 +317,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// for (int i = totalBars - 1; i >= start && !IsStopped(); i--)
|
||||
// {
|
||||
// //
|
||||
// XOHCL iBar;
|
||||
// iBar.Init(
|
||||
// mSymbol,
|
||||
// mPeriod,
|
||||
// i //
|
||||
// );
|
||||
|
||||
// //
|
||||
// double iValue = iBar.close;
|
||||
|
||||
// //
|
||||
// // Print("BarIndex: " + ToString(i), ", iValue: ", iValue);
|
||||
|
||||
// //
|
||||
// if (i > ArraySize(mBuffers[mainIDX].values) - 1)
|
||||
// {
|
||||
// ArrayResize(mBuffers[mainIDX].values, i + 1);
|
||||
// }
|
||||
|
||||
// //
|
||||
// mBuffers[mainIDX].values[i] = iValue;
|
||||
// }
|
||||
|
||||
//
|
||||
// Prevent Double Calculation Same Bars ...
|
||||
mCalculatedBars = totalBars;
|
||||
|
||||
Reference in New Issue
Block a user