last refactors ...

This commit is contained in:
2024-05-18 13:21:23 +03:30
parent 8c81f649dc
commit fb4445c1d7
19 changed files with 8425 additions and 42 deletions
+10 -2
View File
@@ -39,10 +39,18 @@ enum ENUM_X_XTM_STATES
//
// START Inputs ...
//
//
input group "Market";
input int maPeriod = 14; // Period
input int maShift = 0; // Shift
input ENUM_MA_METHOD maMethod = MODE_SMA; // Method
input ENUM_APPLIED_PRICE maAppliedTo = PRICE_CLOSE; // Applied To
//
input group "Presentation";
input bool showLine = true; // Show Line
//
// END Inputs ...
//
@@ -72,7 +80,7 @@ double stateBuffer[];
#property indicator_label1 "XTM"
#property indicator_type1 DRAW_COLOR_LINE
#property indicator_color1 clrLime, clrGray, clrRed
#property indicator_color1 clrLime, clrGray, clrRed, CLR_NONE
#property indicator_style1 STYLE_SOLID
#property indicator_width1 1
//
@@ -331,7 +339,7 @@ void CalculateBuffers(int bar_index)
//
// Set Ma Buffer Color Index ...
maColorBuffer[bar_index] = lineColorIndex;
maColorBuffer[bar_index] = showLine ? lineColorIndex : 3;
//
// Set State Buffer Value ...