View Single Post
  #709 (permalink)  
Old 05-05-2009, 05:59 PM
bill_vol_2 bill_vol_2 is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
bill_vol_2 is on a distinguished road
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
Reply With Quote