|
hello guys,
i see the thread died but maybe i'll find somebody to help me...
i have the goertzel_cycle_v1_1 and i'm stuck with this:
1. i created a sinewave indicator to see how goertzel work. code:
------------------------------------
int start()
{
int counted_bars=IndicatorCounted();
int i=Bars-counted_bars-1;
//----
while (i>=0)
{
indybuffer[i]= MathSin(2*PI*i/20);
i--;
}
//----
return(0);
-------------------------------
2. i replaced in the goertzel code "close" with the indicator "sinewave"
3. then the result is: a clear cycle of 20 bars -ok. but the amplitude is 149.98 when the sine indicator is between -1 and 1 as expected.
squareamp is "false", i tried everything but i have no clue what's wrong.
any help will be greatly apreciated
|