This commit is contained in:
2024-08-23 14:06:34 +03:30
parent 015fccaa99
commit 8774674629
7 changed files with 384 additions and 581 deletions
+70 -72
View File
@@ -68,39 +68,17 @@ input ENUM_TIMEFRAMES hcPeriod = NULL; // Time Period
input group "Presentation";
//
// Current ...
input bool showCurrentLE1 = true; // Show Current Cycle Long Exit 1
input bool showCurrentLE2 = true; // Show Current Cycle Long Exit 2
input bool showCurrentSE1 = true; // Show Current Cycle Short Exit 1
input bool showCurrentSE2 = true; // Show Current Cycle Short Exit 2
input bool showLE1 = true; // Show Long Exit 1
input bool showLE2 = true; // Show Long Exit 2
input bool showSE1 = true; // Show Short Exit 1
input bool showSE2 = true; // Show Short Exit 2
//
// Short ...
input bool showShortLE1 = true; // Show Short Cycle Long Exit 1
input bool showShortLE2 = true; // Show Short Cycle Long Exit 2
input bool showShortSE1 = true; // Show Short Cycle Short Exit 1
input bool showShortSE2 = true; // Show Short Cycle Short Exit 2
//
// Medium ...
input bool showMediumLE1 = true; // Show Medium Cycle Long Exit 1
input bool showMediumLE2 = true; // Show Medium Cycle Long Exit 2
input bool showMediumSE1 = true; // Show Medium Cycle Short Exit 1
input bool showMediumSE2 = true; // Show Medium Cycle Short Exit 2
//
// Long ...
input bool showLongLE1 = true; // Show Long Cycle Long Exit 1
input bool showLongLE2 = true; // Show Long Cycle Long Exit 2
input bool showLongSE1 = true; // Show Long Cycle Short Exit 1
input bool showLongSE2 = true; // Show Long Cycle Short Exit 2
//
// Hind ...
input bool showHindLE1 = true; // Show Hind Cycle Long Exit 1
input bool showHindLE2 = true; // Show Hind Cycle Long Exit 2
input bool showHindSE1 = true; // Show Hind Cycle Short Exit 1
input bool showHindSE2 = true; // Show Hind Cycle Short Exit 2
input bool showCurrent = true; // Show Current Cycle
input bool showShort = true; // Show Short Cycle
input bool showMedium = true; // Show Medium Cycle
input bool showLong = true; // Show Long Cycle
input bool showHind = true; // Show Hind Cycle
//
// Buffers ...
@@ -732,30 +710,34 @@ void DefineBuffers()
//
// Long Exit 1 ...
ENUM_DRAW_TYPE cLE1DrawType = showCurrentLE1 ? DRAW_LINE : DRAW_NONE;
bool canShowCLE1 = showCurrent && showLE1;
ENUM_DRAW_TYPE cLE1DrawType = canShowCLE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(cLE1BufferIndex, cLE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(cLE1BufferIndex, PLOT_SHOW_DATA, showCurrentLE1);
PlotIndexSetInteger(cLE1BufferIndex, PLOT_SHOW_DATA, canShowCLE1);
PlotIndexSetInteger(cLE1BufferIndex, PLOT_DRAW_TYPE, cLE1DrawType);
//
// Long Exit 2 ...
ENUM_DRAW_TYPE cLE2DrawType = showCurrentLE2 ? DRAW_LINE : DRAW_NONE;
bool canShowCLE2 = showCurrent && showLE2;
ENUM_DRAW_TYPE cLE2DrawType = canShowCLE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(cLE2BufferIndex, cLE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(cLE2BufferIndex, PLOT_SHOW_DATA, showCurrentLE2);
PlotIndexSetInteger(cLE2BufferIndex, PLOT_SHOW_DATA, canShowCLE2);
PlotIndexSetInteger(cLE2BufferIndex, PLOT_DRAW_TYPE, cLE2DrawType);
//
// Short Exit 1 ...
ENUM_DRAW_TYPE cSE1DrawType = showCurrentSE1 ? DRAW_LINE : DRAW_NONE;
bool canShowCSE1 = showCurrent && showSE1;
ENUM_DRAW_TYPE cSE1DrawType = canShowCSE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(cSE1BufferIndex, cSE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(cSE1BufferIndex, PLOT_SHOW_DATA, showCurrentSE1);
PlotIndexSetInteger(cSE1BufferIndex, PLOT_SHOW_DATA, canShowCSE1);
PlotIndexSetInteger(cSE1BufferIndex, PLOT_DRAW_TYPE, cSE1DrawType);
//
// Short Exit 2 ...
ENUM_DRAW_TYPE cSE2DrawType = showCurrentSE2 ? DRAW_LINE : DRAW_NONE;
bool canShowCSE2 = showCurrent && showSE2;
ENUM_DRAW_TYPE cSE2DrawType = canShowCSE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(cSE2BufferIndex, cSE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(cSE2BufferIndex, PLOT_SHOW_DATA, showCurrentSE2);
PlotIndexSetInteger(cSE2BufferIndex, PLOT_SHOW_DATA, canShowCSE2);
PlotIndexSetInteger(cSE2BufferIndex, PLOT_DRAW_TYPE, cSE2DrawType);
//
@@ -763,30 +745,34 @@ void DefineBuffers()
//
// Long Exit 1 ...
ENUM_DRAW_TYPE sLE1DrawType = showCurrentLE1 ? DRAW_LINE : DRAW_NONE;
bool canShowSLE1 = showShort && showLE1;
ENUM_DRAW_TYPE sLE1DrawType = canShowSLE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(sLE1BufferIndex, sLE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(sLE1BufferIndex, PLOT_SHOW_DATA, showCurrentLE1);
PlotIndexSetInteger(sLE1BufferIndex, PLOT_SHOW_DATA, canShowSLE1);
PlotIndexSetInteger(sLE1BufferIndex, PLOT_DRAW_TYPE, sLE1DrawType);
//
// Long Exit 2 ...
ENUM_DRAW_TYPE sLE2DrawType = showCurrentLE2 ? DRAW_LINE : DRAW_NONE;
bool canShowSLE2 = showShort && showLE2;
ENUM_DRAW_TYPE sLE2DrawType = canShowSLE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(sLE2BufferIndex, sLE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(sLE2BufferIndex, PLOT_SHOW_DATA, showCurrentLE2);
PlotIndexSetInteger(sLE2BufferIndex, PLOT_SHOW_DATA, canShowSLE2);
PlotIndexSetInteger(sLE2BufferIndex, PLOT_DRAW_TYPE, sLE2DrawType);
//
bool canShowSSE1 = showShort && showSE1;
// Short Exit 1 ...
ENUM_DRAW_TYPE sSE1DrawType = showCurrentSE1 ? DRAW_LINE : DRAW_NONE;
ENUM_DRAW_TYPE sSE1DrawType = canShowSSE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(sSE1BufferIndex, sSE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(sSE1BufferIndex, PLOT_SHOW_DATA, showCurrentSE1);
PlotIndexSetInteger(sSE1BufferIndex, PLOT_SHOW_DATA, canShowSSE1);
PlotIndexSetInteger(sSE1BufferIndex, PLOT_DRAW_TYPE, sSE1DrawType);
//
// Short Exit 2 ...
ENUM_DRAW_TYPE sSE2DrawType = showCurrentSE2 ? DRAW_LINE : DRAW_NONE;
bool canShowSSE2 = showShort && showSE2;
ENUM_DRAW_TYPE sSE2DrawType = canShowSSE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(sSE2BufferIndex, sSE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(sSE2BufferIndex, PLOT_SHOW_DATA, showCurrentSE2);
PlotIndexSetInteger(sSE2BufferIndex, PLOT_SHOW_DATA, canShowSSE2);
PlotIndexSetInteger(sSE2BufferIndex, PLOT_DRAW_TYPE, sSE2DrawType);
//
@@ -794,30 +780,34 @@ void DefineBuffers()
//
// Long Exit 1 ...
ENUM_DRAW_TYPE mLE1DrawType = showCurrentLE1 ? DRAW_LINE : DRAW_NONE;
bool canShowMLE1 = showMedium && showLE1;
ENUM_DRAW_TYPE mLE1DrawType = canShowMLE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(mLE1BufferIndex, mLE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(mLE1BufferIndex, PLOT_SHOW_DATA, showCurrentLE1);
PlotIndexSetInteger(mLE1BufferIndex, PLOT_SHOW_DATA, canShowMLE1);
PlotIndexSetInteger(mLE1BufferIndex, PLOT_DRAW_TYPE, mLE1DrawType);
//
// Long Exit 2 ...
ENUM_DRAW_TYPE mLE2DrawType = showCurrentLE2 ? DRAW_LINE : DRAW_NONE;
bool canShowMLE2 = showMedium && showLE2;
ENUM_DRAW_TYPE mLE2DrawType = canShowMLE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(mLE2BufferIndex, mLE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(mLE2BufferIndex, PLOT_SHOW_DATA, showCurrentLE2);
PlotIndexSetInteger(mLE2BufferIndex, PLOT_SHOW_DATA, canShowMLE2);
PlotIndexSetInteger(mLE2BufferIndex, PLOT_DRAW_TYPE, mLE2DrawType);
//
// Short Exit 1 ...
ENUM_DRAW_TYPE mSE1DrawType = showCurrentSE1 ? DRAW_LINE : DRAW_NONE;
bool canShowMSE1 = showMedium && showSE1;
ENUM_DRAW_TYPE mSE1DrawType = canShowMSE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(mSE1BufferIndex, mSE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(mSE1BufferIndex, PLOT_SHOW_DATA, showCurrentSE1);
PlotIndexSetInteger(mSE1BufferIndex, PLOT_SHOW_DATA, canShowMSE1);
PlotIndexSetInteger(mSE1BufferIndex, PLOT_DRAW_TYPE, mSE1DrawType);
//
// Short Exit 2 ...
ENUM_DRAW_TYPE mSE2DrawType = showCurrentSE2 ? DRAW_LINE : DRAW_NONE;
bool canShowMSE2 = showMedium && showSE2;
ENUM_DRAW_TYPE mSE2DrawType = canShowMSE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(mSE2BufferIndex, mSE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(mSE2BufferIndex, PLOT_SHOW_DATA, showCurrentSE2);
PlotIndexSetInteger(mSE2BufferIndex, PLOT_SHOW_DATA, canShowMSE2);
PlotIndexSetInteger(mSE2BufferIndex, PLOT_DRAW_TYPE, mSE2DrawType);
//
@@ -825,30 +815,34 @@ void DefineBuffers()
//
// Long Exit 1 ...
ENUM_DRAW_TYPE lLE1DrawType = showCurrentLE1 ? DRAW_LINE : DRAW_NONE;
bool canShowLLE1 = showLong && showLE1;
ENUM_DRAW_TYPE lLE1DrawType = canShowLLE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(lLE1BufferIndex, lLE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(lLE1BufferIndex, PLOT_SHOW_DATA, showCurrentLE1);
PlotIndexSetInteger(lLE1BufferIndex, PLOT_SHOW_DATA, canShowLLE1);
PlotIndexSetInteger(lLE1BufferIndex, PLOT_DRAW_TYPE, lLE1DrawType);
//
// Long Exit 2 ...
ENUM_DRAW_TYPE lLE2DrawType = showCurrentLE2 ? DRAW_LINE : DRAW_NONE;
bool canShowLLE2 = showLong && showLE2;
ENUM_DRAW_TYPE lLE2DrawType = canShowLLE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(lLE2BufferIndex, lLE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(lLE2BufferIndex, PLOT_SHOW_DATA, showCurrentLE2);
PlotIndexSetInteger(lLE2BufferIndex, PLOT_SHOW_DATA, canShowLLE2);
PlotIndexSetInteger(lLE2BufferIndex, PLOT_DRAW_TYPE, lLE2DrawType);
//
// Short Exit 1 ...
ENUM_DRAW_TYPE lSE1DrawType = showCurrentSE1 ? DRAW_LINE : DRAW_NONE;
bool canShowLSE1 = showLong && showSE1;
ENUM_DRAW_TYPE lSE1DrawType = canShowLSE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(lSE1BufferIndex, lSE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(lSE1BufferIndex, PLOT_SHOW_DATA, showCurrentSE1);
PlotIndexSetInteger(lSE1BufferIndex, PLOT_SHOW_DATA, canShowLSE1);
PlotIndexSetInteger(lSE1BufferIndex, PLOT_DRAW_TYPE, lSE1DrawType);
//
// Short Exit 2 ...
ENUM_DRAW_TYPE lSE2DrawType = showCurrentSE2 ? DRAW_LINE : DRAW_NONE;
bool canShowLSE2 = showLong && showSE2;
ENUM_DRAW_TYPE lSE2DrawType = canShowLSE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(lSE2BufferIndex, lSE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(lSE2BufferIndex, PLOT_SHOW_DATA, showCurrentSE2);
PlotIndexSetInteger(lSE2BufferIndex, PLOT_SHOW_DATA, canShowLSE2);
PlotIndexSetInteger(lSE2BufferIndex, PLOT_DRAW_TYPE, lSE2DrawType);
//
@@ -856,30 +850,34 @@ void DefineBuffers()
//
// Long Exit 1 ...
ENUM_DRAW_TYPE hLE1DrawType = showCurrentLE1 ? DRAW_LINE : DRAW_NONE;
bool canShowHLE1 = showHind && showLE1;
ENUM_DRAW_TYPE hLE1DrawType = canShowHLE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(hLE1BufferIndex, hLE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(hLE1BufferIndex, PLOT_SHOW_DATA, showCurrentLE1);
PlotIndexSetInteger(hLE1BufferIndex, PLOT_SHOW_DATA, canShowHLE1);
PlotIndexSetInteger(hLE1BufferIndex, PLOT_DRAW_TYPE, hLE1DrawType);
//
// Long Exit 2 ...
ENUM_DRAW_TYPE hLE2DrawType = showCurrentLE2 ? DRAW_LINE : DRAW_NONE;
bool canShowHLE2 = showHind && showLE2;
ENUM_DRAW_TYPE hLE2DrawType = canShowHLE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(hLE2BufferIndex, hLE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(hLE2BufferIndex, PLOT_SHOW_DATA, showCurrentLE2);
PlotIndexSetInteger(hLE2BufferIndex, PLOT_SHOW_DATA, canShowHLE2);
PlotIndexSetInteger(hLE2BufferIndex, PLOT_DRAW_TYPE, hLE2DrawType);
//
// Short Exit 1 ...
ENUM_DRAW_TYPE hSE1DrawType = showCurrentSE1 ? DRAW_LINE : DRAW_NONE;
bool canShowHSE1 = showHind && showSE1;
ENUM_DRAW_TYPE hSE1DrawType = canShowHSE1 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(hSE1BufferIndex, hSE1Buffer, INDICATOR_DATA);
PlotIndexSetInteger(hSE1BufferIndex, PLOT_SHOW_DATA, showCurrentSE1);
PlotIndexSetInteger(hSE1BufferIndex, PLOT_SHOW_DATA, canShowHSE1);
PlotIndexSetInteger(hSE1BufferIndex, PLOT_DRAW_TYPE, hSE1DrawType);
//
// Short Exit 2 ...
ENUM_DRAW_TYPE hSE2DrawType = showCurrentSE2 ? DRAW_LINE : DRAW_NONE;
bool canShowHSE2 = showHind && showSE2;
ENUM_DRAW_TYPE hSE2DrawType = canShowHSE2 ? DRAW_LINE : DRAW_NONE;
SetIndexBuffer(hSE2BufferIndex, hSE2Buffer, INDICATOR_DATA);
PlotIndexSetInteger(hSE2BufferIndex, PLOT_SHOW_DATA, showCurrentSE2);
PlotIndexSetInteger(hSE2BufferIndex, PLOT_SHOW_DATA, canShowHSE2);
PlotIndexSetInteger(hSE2BufferIndex, PLOT_DRAW_TYPE, hSE2DrawType);
}
@@ -1029,7 +1027,7 @@ void CalculateCycle(
const double &close[],
const double &low[],
//
int _length, // Calculation Length
int _length, // Calculation Length
double &work[][], // Working Array
//
double &le1[],
+46 -43
View File
@@ -63,30 +63,21 @@ input ENUM_TIMEFRAMES hcPeriod = NULL; // Time Period
input group "Presentation";
//
// AVG ...
// Parts ...
input bool showFast = true; // Show Fast
input bool showSlow = true; // Show Slow
//
// Current ...
input bool showCCFast = true; // Show Current Cycle Fast
input bool showCCSlow = true; // Show Current Cycle Slow
// AVG ...
input bool showAVG = true; // Show Average
//
// Short ...
input bool showSCFast = true; // Show Short Cycle Fast
input bool showSCSlow = true; // Show Short Cycle Slow
//
// Medium ...
input bool showMCFast = true; // Show Medium Cycle Fast
input bool showMCSlow = true; // Show Medium Cycle Slow
//
// Long ...
input bool showLCFast = true; // Show Long Cycle Fast
input bool showLCSlow = true; // Show Long Cycle Slow
//
// Hind ...
input bool showHCFast = true; // Show Hind Cycle Fast
input bool showHCSlow = true; // Show Hind Cycle Slow
// Cycles ...
input bool showCurrent = true; // Show Current Cycle
input bool showShort = true; // Show Short Cycle
input bool showMedium = true; // Show Medium Cycle
input bool showLong = true; // Show Long Cycle
input bool showHind = true; // Show Hind Cycle
//
// Buffers ...
@@ -598,22 +589,24 @@ void DefineBuffers()
//
// Fast ...
ENUM_DRAW_TYPE avgFastDrawType = showFast ? DRAW_LINE : DRAW_NONE;
bool canShowAVGFast = showAVG && showFast;
ENUM_DRAW_TYPE avgFastDrawType = canShowAVGFast ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(avgFastBuffer, true);
SetIndexBuffer(avgFastBufferIndex, avgFastBuffer, INDICATOR_DATA);
PlotIndexSetDouble(avgFastBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(avgFastBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(avgFastBufferIndex, PLOT_SHOW_DATA, showFast);
PlotIndexSetInteger(avgFastBufferIndex, PLOT_SHOW_DATA, canShowAVGFast);
PlotIndexSetInteger(avgFastBufferIndex, PLOT_DRAW_TYPE, avgFastDrawType);
//
// Slow ...
ENUM_DRAW_TYPE avgSlowDrawType = showSlow ? DRAW_LINE : DRAW_NONE;
bool canShowAVGSlow = showAVG && showSlow;
ENUM_DRAW_TYPE avgSlowDrawType = canShowAVGSlow ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(avgSlowBuffer, true);
SetIndexBuffer(avgSlowBufferIndex, avgSlowBuffer, INDICATOR_DATA);
PlotIndexSetDouble(avgSlowBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(avgSlowBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(avgSlowBufferIndex, PLOT_SHOW_DATA, showSlow);
PlotIndexSetInteger(avgSlowBufferIndex, PLOT_SHOW_DATA, canShowAVGSlow);
PlotIndexSetInteger(avgSlowBufferIndex, PLOT_DRAW_TYPE, avgSlowDrawType);
//
@@ -621,22 +614,24 @@ void DefineBuffers()
//
// Fast ...
ENUM_DRAW_TYPE cFastDrawType = showCCFast ? DRAW_LINE : DRAW_NONE;
bool canShowCFast = showCurrent && showFast;
ENUM_DRAW_TYPE cFastDrawType = canShowCFast ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(cFastBuffer, true);
SetIndexBuffer(cFastBufferIndex, cFastBuffer, INDICATOR_DATA);
PlotIndexSetDouble(cFastBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(cFastBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(cFastBufferIndex, PLOT_SHOW_DATA, showCCFast);
PlotIndexSetInteger(cFastBufferIndex, PLOT_SHOW_DATA, canShowCFast);
PlotIndexSetInteger(cFastBufferIndex, PLOT_DRAW_TYPE, cFastDrawType);
//
// Slow ...
ENUM_DRAW_TYPE cSlowDrawType = showCCSlow ? DRAW_LINE : DRAW_NONE;
bool canShowCSlow = showCurrent && showSlow;
ENUM_DRAW_TYPE cSlowDrawType = canShowCSlow ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(cSlowBuffer, true);
SetIndexBuffer(cSlowBufferIndex, cSlowBuffer, INDICATOR_DATA);
PlotIndexSetDouble(cSlowBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(cSlowBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(cSlowBufferIndex, PLOT_SHOW_DATA, showCCSlow);
PlotIndexSetInteger(cSlowBufferIndex, PLOT_SHOW_DATA, canShowCSlow);
PlotIndexSetInteger(cSlowBufferIndex, PLOT_DRAW_TYPE, cSlowDrawType);
//
@@ -644,22 +639,24 @@ void DefineBuffers()
//
// Fast ...
ENUM_DRAW_TYPE sFastDrawType = showSCFast ? DRAW_LINE : DRAW_NONE;
bool canShowSFast = showShort && showFast;
ENUM_DRAW_TYPE sFastDrawType = canShowSFast ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(sFastBuffer, true);
SetIndexBuffer(sFastBufferIndex, sFastBuffer, INDICATOR_DATA);
PlotIndexSetDouble(sFastBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(sFastBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(sFastBufferIndex, PLOT_SHOW_DATA, showSCFast);
PlotIndexSetInteger(sFastBufferIndex, PLOT_SHOW_DATA, canShowSFast);
PlotIndexSetInteger(sFastBufferIndex, PLOT_DRAW_TYPE, sFastDrawType);
//
// Slow ...
ENUM_DRAW_TYPE sSlowDrawType = showSCSlow ? DRAW_LINE : DRAW_NONE;
bool canShowSSlow = showShort && showSlow;
ENUM_DRAW_TYPE sSlowDrawType = canShowSSlow ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(sSlowBuffer, true);
SetIndexBuffer(sSlowBufferIndex, sSlowBuffer, INDICATOR_DATA);
PlotIndexSetDouble(sSlowBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(sSlowBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(sSlowBufferIndex, PLOT_SHOW_DATA, showSCSlow);
PlotIndexSetInteger(sSlowBufferIndex, PLOT_SHOW_DATA, canShowSSlow);
PlotIndexSetInteger(sSlowBufferIndex, PLOT_DRAW_TYPE, sSlowDrawType);
//
@@ -667,22 +664,24 @@ void DefineBuffers()
//
// Fast ...
ENUM_DRAW_TYPE mFastDrawType = showMCFast ? DRAW_LINE : DRAW_NONE;
bool canShowMFast = showMedium && showFast;
ENUM_DRAW_TYPE mFastDrawType = canShowMFast ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(mFastBuffer, true);
SetIndexBuffer(mFastBufferIndex, mFastBuffer, INDICATOR_DATA);
PlotIndexSetDouble(mFastBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(mFastBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(mFastBufferIndex, PLOT_SHOW_DATA, showMCFast);
PlotIndexSetInteger(mFastBufferIndex, PLOT_SHOW_DATA, canShowMFast);
PlotIndexSetInteger(mFastBufferIndex, PLOT_DRAW_TYPE, mFastDrawType);
//
// Slow ...
ENUM_DRAW_TYPE mSlowDrawType = showMCSlow ? DRAW_LINE : DRAW_NONE;
bool canShowMSlow = showMedium && showSlow;
ENUM_DRAW_TYPE mSlowDrawType = canShowMSlow ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(mSlowBuffer, true);
SetIndexBuffer(mSlowBufferIndex, mSlowBuffer, INDICATOR_DATA);
PlotIndexSetDouble(mSlowBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(mSlowBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(mSlowBufferIndex, PLOT_SHOW_DATA, showMCSlow);
PlotIndexSetInteger(mSlowBufferIndex, PLOT_SHOW_DATA, canShowMSlow);
PlotIndexSetInteger(mSlowBufferIndex, PLOT_DRAW_TYPE, mSlowDrawType);
//
@@ -690,22 +689,24 @@ void DefineBuffers()
//
// Fast ...
ENUM_DRAW_TYPE lFastDrawType = showLCFast ? DRAW_LINE : DRAW_NONE;
bool canShowLFast = showLong && showFast;
ENUM_DRAW_TYPE lFastDrawType = canShowLFast ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(lFastBuffer, true);
SetIndexBuffer(lFastBufferIndex, lFastBuffer, INDICATOR_DATA);
PlotIndexSetDouble(lFastBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(lFastBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(lFastBufferIndex, PLOT_SHOW_DATA, showLCFast);
PlotIndexSetInteger(lFastBufferIndex, PLOT_SHOW_DATA, canShowLFast);
PlotIndexSetInteger(lFastBufferIndex, PLOT_DRAW_TYPE, lFastDrawType);
//
// Slow ...
ENUM_DRAW_TYPE lSlowDrawType = showLCSlow ? DRAW_LINE : DRAW_NONE;
bool canShowLSlow = showLong && showSlow;
ENUM_DRAW_TYPE lSlowDrawType = canShowLSlow ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(lSlowBuffer, true);
SetIndexBuffer(lSlowBufferIndex, lSlowBuffer, INDICATOR_DATA);
PlotIndexSetDouble(lSlowBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(lSlowBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(lSlowBufferIndex, PLOT_SHOW_DATA, showLCSlow);
PlotIndexSetInteger(lSlowBufferIndex, PLOT_SHOW_DATA, canShowLSlow);
PlotIndexSetInteger(lSlowBufferIndex, PLOT_DRAW_TYPE, lSlowDrawType);
//
@@ -713,22 +714,24 @@ void DefineBuffers()
//
// Fast ...
ENUM_DRAW_TYPE hFastDrawType = showHCFast ? DRAW_LINE : DRAW_NONE;
bool canShowHFast = showHind && showFast;
ENUM_DRAW_TYPE hFastDrawType = canShowHFast ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(hFastBuffer, true);
SetIndexBuffer(hFastBufferIndex, hFastBuffer, INDICATOR_DATA);
PlotIndexSetDouble(hFastBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(hFastBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(hFastBufferIndex, PLOT_SHOW_DATA, showHCFast);
PlotIndexSetInteger(hFastBufferIndex, PLOT_SHOW_DATA, canShowHFast);
PlotIndexSetInteger(hFastBufferIndex, PLOT_DRAW_TYPE, hFastDrawType);
//
// Slow ...
ENUM_DRAW_TYPE hSlowDrawType = showHCSlow ? DRAW_LINE : DRAW_NONE;
bool canShowHSlow = showHind && showSlow;
ENUM_DRAW_TYPE hSlowDrawType = canShowHSlow ? DRAW_LINE : DRAW_NONE;
ArraySetAsSeries(hSlowBuffer, true);
SetIndexBuffer(hSlowBufferIndex, hSlowBuffer, INDICATOR_DATA);
PlotIndexSetDouble(hSlowBufferIndex, PLOT_EMPTY_VALUE, 0);
PlotIndexSetInteger(hSlowBufferIndex, PLOT_DRAW_BEGIN, maxLength);
PlotIndexSetInteger(hSlowBufferIndex, PLOT_SHOW_DATA, showHCSlow);
PlotIndexSetInteger(hSlowBufferIndex, PLOT_SHOW_DATA, canShowHSlow);
PlotIndexSetInteger(hSlowBufferIndex, PLOT_DRAW_TYPE, hSlowDrawType);
}