Skip to content

Latest commit

 

History

History
85 lines (53 loc) · 3.8 KB

TAMath.HtSine.md

File metadata and controls

85 lines (53 loc) · 3.8 KB

TAMath.HtSine Method

Overloads
HtSine(int, int, double[]) Calculates the Hilbert Transform - SineWave indicator for the input price data.
HtSine(int, int, float[]) Calculates the Hilbert Transform - SineWave indicator for the input price data.

TAMath.HtSine(int, int, double[]) Method

Calculates the Hilbert Transform - SineWave indicator for the input price data.

public static TechnicalAnalysis.Functions.HtSineResult HtSine(int startIdx, int endIdx, double[] real);

Parameters

startIdx System.Int32

The starting index for the calculation range.

endIdx System.Int32

The ending index for the calculation range.

real System.Double[]

The input price data.

Returns

HtSineResult
An HtSineResult containing the sine and lead sine values.

Remarks

The Hilbert Transform - SineWave indicator generates two outputs: Sine and LeadSine. The Sine line shows the current phase position in the dominant cycle, while the LeadSine is advanced by 45 degrees. When Sine crosses above LeadSine, it suggests a cycle bottom, and when Sine crosses below LeadSine, it suggests a cycle top. This indicator is most effective in cycling markets.

TAMath.HtSine(int, int, float[]) Method

Calculates the Hilbert Transform - SineWave indicator for the input price data.

public static TechnicalAnalysis.Functions.HtSineResult HtSine(int startIdx, int endIdx, float[] real);

Parameters

startIdx System.Int32

The starting index for the calculation range.

endIdx System.Int32

The ending index for the calculation range.

real System.Single[]

The input price data.

Returns

HtSineResult
An HtSineResult containing the sine and lead sine values.

Remarks

This overload accepts float input and converts it to double for calculation.