@@ -666,7 +666,7 @@ def addSma(self):
666
666
paramDialog .addParameterColor ("Plot color" , "#FFFF00" )
667
667
paramDialog .adjustSize ()
668
668
669
- if (paramDialog .exec () == QtWidgets .QDialog .Accepted ):
669
+ if (paramDialog .exec () == QtWidgets .QDialog .DialogCode . Accepted ):
670
670
period = paramDialog .getValue ("SMA Period" )
671
671
width = paramDialog .getValue ("Plot width" )
672
672
qColor = paramDialog .getColorValue ("Plot color" )
@@ -688,7 +688,7 @@ def addEma(self):
688
688
paramDialog .addParameterColor ("Plot color" , "#FFFF00" )
689
689
paramDialog .adjustSize ()
690
690
691
- if (paramDialog .exec () == QtWidgets .QDialog .Accepted ):
691
+ if (paramDialog .exec () == QtWidgets .QDialog .DialogCode . Accepted ):
692
692
period = paramDialog .getValue ("EMA Period" )
693
693
width = paramDialog .getValue ("Plot width" )
694
694
qColor = paramDialog .getColorValue ("Plot color" )
@@ -708,7 +708,7 @@ def toogleRsi(self):
708
708
paramDialog .addParameterColor ("Plot color" , "#FFFF00" )
709
709
paramDialog .adjustSize ()
710
710
711
- if (paramDialog .exec () == QtWidgets .QDialog .Accepted ):
711
+ if (paramDialog .exec () == QtWidgets .QDialog .DialogCode . Accepted ):
712
712
period = paramDialog .getValue ("RSI Period" )
713
713
qColor = paramDialog .getColorValue ("Plot color" )
714
714
self .fpltWindow [self .current_timeframe ].drawRsi ( period , qColor )
@@ -735,7 +735,7 @@ def toogleStochastic(self):
735
735
paramDialog .addParameter ("Stochastic Smooth D" , 3 )
736
736
paramDialog .adjustSize ()
737
737
738
- if (paramDialog .exec () == QtWidgets .QDialog .Accepted ):
738
+ if (paramDialog .exec () == QtWidgets .QDialog .DialogCode . Accepted ):
739
739
period = paramDialog .getValue ("Stochastic Period K" )
740
740
smooth_k = paramDialog .getValue ("Stochastic Smooth K" )
741
741
smooth_d = paramDialog .getValue ("Stochastic Smooth D" )
@@ -764,7 +764,7 @@ def toogleStochasticRsi(self):
764
764
paramDialog .addParameter ("Stochastic Rsi Smooth D" , 3 )
765
765
paramDialog .adjustSize ()
766
766
767
- if (paramDialog .exec () == QtWidgets .QDialog .Accepted ):
767
+ if (paramDialog .exec () == QtWidgets .QDialog .DialogCode . Accepted ):
768
768
period = paramDialog .getValue ("Stochastic Rsi Period K" )
769
769
smooth_k = paramDialog .getValue ("Stochastic Rsi Smooth K" )
770
770
smooth_d = paramDialog .getValue ("Stochastic Rsi Smooth D" )
0 commit comments