last works ...

This commit is contained in:
2026-01-07 19:53:22 +03:30
parent 31232dffef
commit 2fe1037ea5
10 changed files with 4945 additions and 2371 deletions
+11 -5
View File
@@ -43,6 +43,8 @@ input ENUM_MA_METHOD maMethod = MODE_EMA; // MA Mode
input ENUM_APPLIED_PRICE maAppliedTo = PRICE_CLOSE; // MA Applied To
input int rsiLength = 14; // RSI Length
input ENUM_APPLIED_PRICE rsiAppliedTo = PRICE_CLOSE; // RSI Applied To
input double rsiBullishConfirmation = 55; // RSI Bullish Confirmation Level
input double rsiBearishConfirmation = 45; // RSI Bearish Confirmation Level
input int kiWaveSmoothingLength = 14; // RSI KI Wave Smoothing Length
input ENUM_X_MA_METHOD kiWaveSmoothingMode = X_MA_MODE_EMA; // RSI KI Wave Smoothing Method
input double rsiMultiplier = 0.5; // RSI Multiplier
@@ -626,7 +628,11 @@ bool ValidateInputs()
atrLength >= 5 &&
//
// RSI ...
rsiLength >= 5
rsiLength >= 5 &&
rsiBullishConfirmation > 0 &&
rsiBullishConfirmation < 100 &&
rsiBearishConfirmation > 0 &&
rsiBearishConfirmation < 100
//
;
@@ -1700,15 +1706,15 @@ void CalculateRSI(
//
double iState =
iRsi >= 55
iRsi >= rsiBullishConfirmation
? bullishState
: iRsi <= 45
: iRsi <= rsiBearishConfirmation
? bearishState
: neuturalState;
double iColor =
iRsi >= 55
iRsi >= rsiBullishConfirmation
? bullishColorIDX
: iRsi <= 45
: iRsi <= rsiBearishConfirmation
? bearishColorIDX
: neuturalColorIDX;
if (!showKIWave)