last works on XInd and XMid ...
This commit is contained in:
@@ -122,17 +122,17 @@ int OnCalculate(
|
||||
//
|
||||
limit = (prev_calculated > rates_total || prev_calculated <= 0) ? rates_total : (rates_total - prev_calculated) + 1;
|
||||
|
||||
// //
|
||||
// int midMainCopiedItems = mMid.CopyBufferValueByLine(
|
||||
// XSCMID_MAIN_LINE,
|
||||
// mainBuffer,
|
||||
// 0,
|
||||
// limit //
|
||||
// );
|
||||
// if (midMainCopiedItems <= 0)
|
||||
// {
|
||||
// return prev_calculated;
|
||||
// }
|
||||
//
|
||||
int midMainCopiedItems = mMid.CopyBufferValue(
|
||||
GetTitle(XSCMID_MAIN_LINE),
|
||||
mainBuffer,
|
||||
0,
|
||||
limit //
|
||||
);
|
||||
if (midMainCopiedItems <= 0)
|
||||
{
|
||||
return prev_calculated;
|
||||
}
|
||||
|
||||
//
|
||||
// Main Loop ...
|
||||
@@ -211,6 +211,7 @@ void DefineBuffers()
|
||||
XBufferPlotStyle mainBufferStyle;
|
||||
mainBufferStyle.clr = clrAqua;
|
||||
mainBufferStyle.type = DRAW_LINE;
|
||||
mainBufferStyle.width = 3;
|
||||
|
||||
//
|
||||
SetIndexBuffer(
|
||||
@@ -220,8 +221,7 @@ void DefineBuffers()
|
||||
mainColorBuffer,
|
||||
bufferLabel,
|
||||
true,
|
||||
0,
|
||||
max //
|
||||
EMPTY_VALUE //
|
||||
);
|
||||
}
|
||||
|
||||
@@ -235,18 +235,4 @@ void SetIndicatorName()
|
||||
//
|
||||
void CalculateBuffers(int barIndex)
|
||||
{
|
||||
//
|
||||
double iValue = mMid.GetBufferValueByLine(
|
||||
XSCMID_MAIN_LINE,
|
||||
barIndex //
|
||||
);
|
||||
|
||||
//
|
||||
// double iValue = iClose(
|
||||
// _Symbol,
|
||||
// _Period,
|
||||
// barIndex //
|
||||
// );
|
||||
|
||||
mainBuffer[barIndex] = iValue;
|
||||
}
|
||||
Reference in New Issue
Block a user