mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 20:48:04 +00:00
Add Vortex Indicator implementation and documentation
- Implemented Vortex Indicator in Vortex.cs, including calculation logic and event handling. - Added detailed documentation for Vortex Indicator in Vortex.md, covering historical context, algorithm, outputs, and trading interpretation. - Updated oscillators index to include TTM Wave indicator. - Added TTM Wave documentation with algorithm and trading interpretation. - Updated reversals index to include TTM Scalper Alert indicator. - Added TTM Scalper Alert documentation with algorithm and trading strategy. - Updated NDepend badges to reflect increased code metrics (classes, methods, lines of code, public types, comments, and complexity).
This commit is contained in:
@@ -185,10 +185,10 @@ public sealed class HtPhasor : AbstractBase
|
||||
prevI2 = i2;
|
||||
|
||||
double tempReal1 = period;
|
||||
if (im != 0.0 && re != 0.0)
|
||||
if (Math.Abs(im) > 1e-10 && Math.Abs(re) > 1e-10)
|
||||
{
|
||||
double angle = Math.Atan(im / re);
|
||||
if (angle != 0.0)
|
||||
if (Math.Abs(angle) > 1e-10)
|
||||
{
|
||||
period = (2.0 * Math.PI) / angle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user