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
+31 -26
View File
@@ -68,11 +68,13 @@ input color bearishArrowColor = clrMagenta; // Cross Under Arrow Color
//
// START Buffers ...
//
#property indicator_separate_window
// #property indicator_separate_window
#property indicator_chart_window
//
#property indicator_buffers 3
#property indicator_plots 3
// #property indicator_plots 3
#property indicator_plots 0
//
#define bullishBufferIndex 0
@@ -85,25 +87,25 @@ double bearishBuffer[];
double signalBuffer[];
//
#property indicator_label1 "XBullPower"
#property indicator_type1 DRAW_LINE
#property indicator_color1 clrLime
#property indicator_style1 STYLE_SOLID
#property indicator_width1 1
// #property indicator_label1 "XBullPower"
// #property indicator_type1 DRAW_LINE
// #property indicator_color1 clrLime
// #property indicator_style1 STYLE_SOLID
// #property indicator_width1 1
//
#property indicator_label2 "XBearPower"
#property indicator_type2 DRAW_LINE
#property indicator_color2 clrRed
#property indicator_style2 STYLE_SOLID
#property indicator_width2 1
// #property indicator_label2 "XBearPower"
// #property indicator_type2 DRAW_LINE
// #property indicator_color2 clrRed
// #property indicator_style2 STYLE_SOLID
// #property indicator_width2 1
//
#property indicator_label3 "XSignal"
#property indicator_type3 DRAW_LINE
#property indicator_color3 clrGold
#property indicator_style3 STYLE_DOT
#property indicator_width3 1
// #property indicator_label3 "XSignal"
// #property indicator_type3 DRAW_LINE
// #property indicator_color3 clrGold
// #property indicator_style3 STYLE_DOT
// #property indicator_width3 1
//
// END Buffers ...
//
@@ -273,25 +275,28 @@ void DefineBuffers()
// Bullish Buffer ...
string bullishBufferLabel = ShortName + "BullPow " + "(" + (string)length + ")";
ArraySetAsSeries(bullishBuffer, true);
SetIndexBuffer(bullishBufferIndex, bullishBuffer, INDICATOR_DATA);
PlotIndexSetInteger(bullishBufferIndex, PLOT_DRAW_BEGIN, length);
PlotIndexSetString(bullishBufferIndex, PLOT_LABEL, bullishBufferLabel);
SetIndexBuffer(bullishBufferIndex, bullishBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(bullishBufferIndex, bullishBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(bullishBufferIndex, PLOT_DRAW_BEGIN, length);
// PlotIndexSetString(bullishBufferIndex, PLOT_LABEL, bullishBufferLabel);
//
// Bearish Buffer ...
string bearishBufferLabel = ShortName + "BearPow " + "(" + (string)length + ")";
ArraySetAsSeries(bearishBuffer, true);
SetIndexBuffer(bearishBufferIndex, bearishBuffer, INDICATOR_DATA);
PlotIndexSetInteger(bearishBufferIndex, PLOT_DRAW_BEGIN, length);
PlotIndexSetString(bearishBufferIndex, PLOT_LABEL, bearishBufferLabel);
SetIndexBuffer(bearishBufferIndex, bearishBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(bearishBufferIndex, bearishBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(bearishBufferIndex, PLOT_DRAW_BEGIN, length);
// PlotIndexSetString(bearishBufferIndex, PLOT_LABEL, bearishBufferLabel);
//
// Signal Buffer ...
string signalBufferLabel = ShortName + "Signal " + "(" + (string)length + ")";
ArraySetAsSeries(signalBuffer, true);
SetIndexBuffer(signalBufferIndex, signalBuffer, INDICATOR_DATA);
PlotIndexSetInteger(signalBufferIndex, PLOT_DRAW_BEGIN, length);
PlotIndexSetString(signalBufferIndex, PLOT_LABEL, signalBufferLabel);
SetIndexBuffer(signalBufferIndex, signalBuffer, INDICATOR_CALCULATIONS);
// SetIndexBuffer(signalBufferIndex, signalBuffer, INDICATOR_DATA);
// PlotIndexSetInteger(signalBufferIndex, PLOT_DRAW_BEGIN, length);
// PlotIndexSetString(signalBufferIndex, PLOT_LABEL, signalBufferLabel);
}
//