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
+36 -30
View File
@@ -62,11 +62,13 @@ input ENUM_APPLIED_PRICE farestAppliedTo = PRICE_CLOSE; // Farest Applied To
//
// START Buffers ...
//
#property indicator_separate_window
// #property indicator_separate_window
#property indicator_chart_window
//
#property indicator_buffers 4
#property indicator_plots 4
// #property indicator_plots 4
#property indicator_plots 0
//
// Current ...
@@ -74,11 +76,11 @@ input ENUM_APPLIED_PRICE farestAppliedTo = PRICE_CLOSE; // Farest Applied To
double currentBuffer[];
#property indicator_label1 "XTS C"
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrBrown
#property indicator_style1 STYLE_SOLID
#property indicator_width1 1
// #property indicator_label1 "XTS C"
// #property indicator_type1 DRAW_LINE
// #property indicator_color1 clrBrown
// #property indicator_style1 STYLE_SOLID
// #property indicator_width1 1
//
// Nearest ...
@@ -86,11 +88,11 @@ double currentBuffer[];
double nearestBuffer[];
#property indicator_label2 "XTS N"
#property indicator_type2 DRAW_LINE
#property indicator_color2 clrAqua
#property indicator_style2 STYLE_SOLID
#property indicator_width2 1
// #property indicator_label2 "XTS N"
// #property indicator_type2 DRAW_LINE
// #property indicator_color2 clrAqua
// #property indicator_style2 STYLE_SOLID
// #property indicator_width2 1
//
// Mediest ...
@@ -98,11 +100,11 @@ double nearestBuffer[];
double mediestBuffer[];
#property indicator_label3 "XTS M"
#property indicator_type3 DRAW_LINE
#property indicator_color3 clrLime
#property indicator_style3 STYLE_SOLID
#property indicator_width3 1
// #property indicator_label3 "XTS M"
// #property indicator_type3 DRAW_LINE
// #property indicator_color3 clrLime
// #property indicator_style3 STYLE_SOLID
// #property indicator_width3 1
//
// Farest ...
@@ -110,11 +112,11 @@ double mediestBuffer[];
double farestBuffer[];
#property indicator_label4 "XTS F"
#property indicator_type4 DRAW_LINE
#property indicator_color4 clrLightBlue
#property indicator_style4 STYLE_SOLID
#property indicator_width4 1
// #property indicator_label4 "XTS F"
// #property indicator_type4 DRAW_LINE
// #property indicator_color4 clrLightBlue
// #property indicator_style4 STYLE_SOLID
// #property indicator_width4 1
//
// END Buffers ...
@@ -273,26 +275,30 @@ void DefineBuffers()
//
// Current ...
ArraySetAsSeries(currentBuffer, true);
SetIndexBuffer(currentBufferIndex, currentBuffer, INDICATOR_DATA);
PlotIndexSetInteger(currentBufferIndex, PLOT_DRAW_BEGIN, maxLength);
SetIndexBuffer(currentBufferIndex, currentBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(currentBufferIndex, currentBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(currentBufferIndex, PLOT_DRAW_BEGIN, maxLength);
//
// Nearest ...
ArraySetAsSeries(nearestBuffer, true);
SetIndexBuffer(nearestBufferIndex, nearestBuffer, INDICATOR_DATA);
PlotIndexSetInteger(nearestBufferIndex, PLOT_DRAW_BEGIN, maxLength);
SetIndexBuffer(nearestBufferIndex, nearestBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(nearestBufferIndex, nearestBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(nearestBufferIndex, PLOT_DRAW_BEGIN, maxLength);
//
// Mediest ...
ArraySetAsSeries(mediestBuffer, true);
SetIndexBuffer(mediestBufferIndex, mediestBuffer, INDICATOR_DATA);
PlotIndexSetInteger(mediestBufferIndex, PLOT_DRAW_BEGIN, maxLength);
SetIndexBuffer(mediestBufferIndex, mediestBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(mediestBufferIndex, mediestBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(mediestBufferIndex, PLOT_DRAW_BEGIN, maxLength);
//
// Farest ...
ArraySetAsSeries(farestBuffer, true);
SetIndexBuffer(farestBufferIndex, farestBuffer, INDICATOR_DATA);
PlotIndexSetInteger(farestBufferIndex, PLOT_DRAW_BEGIN, maxLength);
SetIndexBuffer(farestBufferIndex, farestBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(farestBufferIndex, farestBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(farestBufferIndex, PLOT_DRAW_BEGIN, maxLength);
}
//