File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,6 @@ public class QuantowerTests
162
162
[ Fact ] public void Vortex ( ) => TestIndicatorMultipleFields < momentum ::QuanTAlib . VortexIndicator > ( new [ ] { "PlusLine" , "MinusLine" } ) ;
163
163
164
164
// Oscillators Indicators
165
- [ Fact ] public void Cti ( ) => TestIndicator < oscillator ::QuanTAlib . CtiIndicator > ( "Series" ) ;
165
+ [ Fact ] public void Cti ( ) => TestIndicator < oscillators ::QuanTAlib . CtiIndicator > ( "Series" ) ;
166
166
}
167
167
}
Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ protected override double Calculation()
96
96
}
97
97
98
98
// Check for numerical stability
99
- double denomX = points * sxx - sx * sx ;
100
- double denomY = points * syy - sy * sy ;
99
+ double denomX = ( points * sxx ) - ( sx * sx ) ;
100
+ double denomY = ( points * syy ) - ( sy * sy ) ;
101
101
102
102
if ( denomX > 0 && denomY > 0 )
103
103
{
104
- return ( points * sxy - sx * sy ) / Math . Sqrt ( denomX * denomY ) ;
104
+ return ( ( points * sxy ) - ( sx * sy ) ) / Math . Sqrt ( denomX * denomY ) ;
105
105
}
106
106
107
107
return 0 ;
You can’t perform that action at this time.
0 commit comments