cleanup ...

This commit is contained in:
2024-05-28 08:01:50 +03:30
parent 030e8e3c72
commit 670ca1eac2
13 changed files with 5533 additions and 97395 deletions
+52 -44
View File
@@ -121,11 +121,13 @@ input bool scDrawCrosses = false; // Draw Cross Lines
//
// START Buffers ...
//
#property indicator_separate_window
// #property indicator_separate_window
#property indicator_chart_window
//
#property indicator_buffers 7
#property indicator_plots 6
// #property indicator_plots 6
#property indicator_plots 0
//
// LC ...
@@ -519,26 +521,28 @@ void LCDefineBuffers()
string lcFastBufferLabel = ShortName + " LC Fast (" + (string)lcFastLength + ")";
ENUM_DRAW_TYPE lcFastDrawType = lcDrawFast ? lcDrawType : DRAW_NONE;
ArraySetAsSeries(lcFastBuffer, true);
SetIndexBuffer(lcFastBufferIndex, lcFastBuffer, INDICATOR_DATA);
PlotIndexSetString(lcFastBufferIndex, PLOT_LABEL, lcFastBufferLabel);
PlotIndexSetInteger(lcFastBufferIndex, PLOT_LINE_COLOR, lcFastColor);
PlotIndexSetInteger(lcFastBufferIndex, PLOT_LINE_STYLE, lcDrawStyle);
PlotIndexSetInteger(lcFastBufferIndex, PLOT_LINE_WIDTH, lcDrawWidth);
PlotIndexSetInteger(lcFastBufferIndex, PLOT_DRAW_BEGIN, lcFastLength);
PlotIndexSetInteger(lcFastBufferIndex, PLOT_DRAW_TYPE, lcFastDrawType);
SetIndexBuffer(lcFastBufferIndex, lcFastBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(lcFastBufferIndex, lcFastBuffer, INDICATOR_DATA);
// PlotIndexSetString(lcFastBufferIndex, PLOT_LABEL, lcFastBufferLabel);
// PlotIndexSetInteger(lcFastBufferIndex, PLOT_LINE_COLOR, lcFastColor);
// PlotIndexSetInteger(lcFastBufferIndex, PLOT_LINE_STYLE, lcDrawStyle);
// PlotIndexSetInteger(lcFastBufferIndex, PLOT_LINE_WIDTH, lcDrawWidth);
// PlotIndexSetInteger(lcFastBufferIndex, PLOT_DRAW_BEGIN, lcFastLength);
// PlotIndexSetInteger(lcFastBufferIndex, PLOT_DRAW_TYPE, lcFastDrawType);
//
// LC Slow Buffer ...
string lcSlowBufferLabel = ShortName + " LC Slow (" + (string)lcSlowLength + ")";
ENUM_DRAW_TYPE lcSlowDrawType = lcDrawSlow ? lcDrawType : DRAW_NONE;
ArraySetAsSeries(lcSlowBuffer, true);
SetIndexBuffer(lcSlowBufferIndex, lcSlowBuffer, INDICATOR_DATA);
PlotIndexSetString(lcSlowBufferIndex, PLOT_LABEL, lcSlowBufferLabel);
PlotIndexSetInteger(lcSlowBufferIndex, PLOT_LINE_COLOR, lcSlowColor);
PlotIndexSetInteger(lcSlowBufferIndex, PLOT_LINE_STYLE, lcDrawStyle);
PlotIndexSetInteger(lcSlowBufferIndex, PLOT_LINE_WIDTH, lcDrawWidth);
PlotIndexSetInteger(lcSlowBufferIndex, PLOT_DRAW_BEGIN, lcSlowLength);
PlotIndexSetInteger(lcSlowBufferIndex, PLOT_DRAW_TYPE, lcSlowDrawType);
SetIndexBuffer(lcSlowBufferIndex, lcSlowBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(lcSlowBufferIndex, lcSlowBuffer, INDICATOR_DATA);
// PlotIndexSetString(lcSlowBufferIndex, PLOT_LABEL, lcSlowBufferLabel);
// PlotIndexSetInteger(lcSlowBufferIndex, PLOT_LINE_COLOR, lcSlowColor);
// PlotIndexSetInteger(lcSlowBufferIndex, PLOT_LINE_STYLE, lcDrawStyle);
// PlotIndexSetInteger(lcSlowBufferIndex, PLOT_LINE_WIDTH, lcDrawWidth);
// PlotIndexSetInteger(lcSlowBufferIndex, PLOT_DRAW_BEGIN, lcSlowLength);
// PlotIndexSetInteger(lcSlowBufferIndex, PLOT_DRAW_TYPE, lcSlowDrawType);
}
//
@@ -550,26 +554,28 @@ void MCDefineBuffers()
string mcFastBufferLabel = ShortName + " MC Fast (" + (string)mcFastLength + ")";
ENUM_DRAW_TYPE mcFastDrawType = mcDrawFast ? lcDrawType : DRAW_NONE;
ArraySetAsSeries(mcFastBuffer, true);
SetIndexBuffer(mcFastBufferIndex, mcFastBuffer, INDICATOR_DATA);
PlotIndexSetString(mcFastBufferIndex, PLOT_LABEL, mcFastBufferLabel);
PlotIndexSetInteger(mcFastBufferIndex, PLOT_LINE_COLOR, mcFastColor);
PlotIndexSetInteger(mcFastBufferIndex, PLOT_LINE_STYLE, mcDrawStyle);
PlotIndexSetInteger(mcFastBufferIndex, PLOT_LINE_WIDTH, mcDrawWidth);
PlotIndexSetInteger(mcFastBufferIndex, PLOT_DRAW_BEGIN, mcFastLength);
PlotIndexSetInteger(mcFastBufferIndex, PLOT_DRAW_TYPE, mcFastDrawType);
SetIndexBuffer(mcFastBufferIndex, mcFastBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(mcFastBufferIndex, mcFastBuffer, INDICATOR_DATA);
// PlotIndexSetString(mcFastBufferIndex, PLOT_LABEL, mcFastBufferLabel);
// PlotIndexSetInteger(mcFastBufferIndex, PLOT_LINE_COLOR, mcFastColor);
// PlotIndexSetInteger(mcFastBufferIndex, PLOT_LINE_STYLE, mcDrawStyle);
// PlotIndexSetInteger(mcFastBufferIndex, PLOT_LINE_WIDTH, mcDrawWidth);
// PlotIndexSetInteger(mcFastBufferIndex, PLOT_DRAW_BEGIN, mcFastLength);
// PlotIndexSetInteger(mcFastBufferIndex, PLOT_DRAW_TYPE, mcFastDrawType);
//
// MC Slow Buffer ...
string mcSlowBufferLabel = ShortName + " MC Slow (" + (string)mcSlowLength + ")";
ENUM_DRAW_TYPE mcSlowDrawType = mcDrawSlow ? lcDrawType : DRAW_NONE;
ArraySetAsSeries(mcSlowBuffer, true);
SetIndexBuffer(mcSlowBufferIndex, mcSlowBuffer, INDICATOR_DATA);
PlotIndexSetString(mcSlowBufferIndex, PLOT_LABEL, mcSlowBufferLabel);
PlotIndexSetInteger(mcSlowBufferIndex, PLOT_LINE_COLOR, mcSlowColor);
PlotIndexSetInteger(mcSlowBufferIndex, PLOT_LINE_STYLE, mcDrawStyle);
PlotIndexSetInteger(mcSlowBufferIndex, PLOT_LINE_WIDTH, mcDrawWidth);
PlotIndexSetInteger(mcSlowBufferIndex, PLOT_DRAW_BEGIN, mcSlowLength);
PlotIndexSetInteger(mcSlowBufferIndex, PLOT_DRAW_TYPE, mcSlowDrawType);
SetIndexBuffer(mcSlowBufferIndex, mcSlowBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(mcSlowBufferIndex, mcSlowBuffer, INDICATOR_DATA);
// PlotIndexSetString(mcSlowBufferIndex, PLOT_LABEL, mcSlowBufferLabel);
// PlotIndexSetInteger(mcSlowBufferIndex, PLOT_LINE_COLOR, mcSlowColor);
// PlotIndexSetInteger(mcSlowBufferIndex, PLOT_LINE_STYLE, mcDrawStyle);
// PlotIndexSetInteger(mcSlowBufferIndex, PLOT_LINE_WIDTH, mcDrawWidth);
// PlotIndexSetInteger(mcSlowBufferIndex, PLOT_DRAW_BEGIN, mcSlowLength);
// PlotIndexSetInteger(mcSlowBufferIndex, PLOT_DRAW_TYPE, mcSlowDrawType);
}
//
@@ -581,26 +587,28 @@ void SCDefineBuffers()
string scFastBufferLabel = ShortName + " SC Fast (" + (string)scFastLength + ")";
ENUM_DRAW_TYPE scFastDrawType = scDrawFast ? lcDrawType : DRAW_NONE;
ArraySetAsSeries(scFastBuffer, true);
SetIndexBuffer(scFastBufferIndex, scFastBuffer, INDICATOR_DATA);
PlotIndexSetString(scFastBufferIndex, PLOT_LABEL, scFastBufferLabel);
PlotIndexSetInteger(scFastBufferIndex, PLOT_LINE_COLOR, scFastColor);
PlotIndexSetInteger(scFastBufferIndex, PLOT_LINE_STYLE, scDrawStyle);
PlotIndexSetInteger(scFastBufferIndex, PLOT_LINE_WIDTH, scDrawWidth);
PlotIndexSetInteger(scFastBufferIndex, PLOT_DRAW_BEGIN, scFastLength);
PlotIndexSetInteger(scFastBufferIndex, PLOT_DRAW_TYPE, scFastDrawType);
SetIndexBuffer(scFastBufferIndex, scFastBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(scFastBufferIndex, scFastBuffer, INDICATOR_DATA);
// PlotIndexSetString(scFastBufferIndex, PLOT_LABEL, scFastBufferLabel);
// PlotIndexSetInteger(scFastBufferIndex, PLOT_LINE_COLOR, scFastColor);
// PlotIndexSetInteger(scFastBufferIndex, PLOT_LINE_STYLE, scDrawStyle);
// PlotIndexSetInteger(scFastBufferIndex, PLOT_LINE_WIDTH, scDrawWidth);
// PlotIndexSetInteger(scFastBufferIndex, PLOT_DRAW_BEGIN, scFastLength);
// PlotIndexSetInteger(scFastBufferIndex, PLOT_DRAW_TYPE, scFastDrawType);
//
// SC Slow Buffer ...
string scSlowBufferLabel = ShortName + " SC Slow (" + (string)scSlowLength + ")";
ENUM_DRAW_TYPE scSlowDrawType = scDrawSlow ? lcDrawType : DRAW_NONE;
ArraySetAsSeries(scSlowBuffer, true);
SetIndexBuffer(scSlowBufferIndex, scSlowBuffer, INDICATOR_DATA);
PlotIndexSetString(scSlowBufferIndex, PLOT_LABEL, scSlowBufferLabel);
PlotIndexSetInteger(scSlowBufferIndex, PLOT_LINE_COLOR, scSlowColor);
PlotIndexSetInteger(scSlowBufferIndex, PLOT_LINE_STYLE, scDrawStyle);
PlotIndexSetInteger(scSlowBufferIndex, PLOT_LINE_WIDTH, scDrawWidth);
PlotIndexSetInteger(scSlowBufferIndex, PLOT_DRAW_BEGIN, scSlowLength);
PlotIndexSetInteger(scSlowBufferIndex, PLOT_DRAW_TYPE, scSlowDrawType);
SetIndexBuffer(scSlowBufferIndex, scSlowBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(scSlowBufferIndex, scSlowBuffer, INDICATOR_DATA);
// PlotIndexSetString(scSlowBufferIndex, PLOT_LABEL, scSlowBufferLabel);
// PlotIndexSetInteger(scSlowBufferIndex, PLOT_LINE_COLOR, scSlowColor);
// PlotIndexSetInteger(scSlowBufferIndex, PLOT_LINE_STYLE, scDrawStyle);
// PlotIndexSetInteger(scSlowBufferIndex, PLOT_LINE_WIDTH, scDrawWidth);
// PlotIndexSetInteger(scSlowBufferIndex, PLOT_DRAW_BEGIN, scSlowLength);
// PlotIndexSetInteger(scSlowBufferIndex, PLOT_DRAW_TYPE, scSlowDrawType);
}
//