| View previous topic :: View next topic |
| Author |
Message |
FinGeR
Joined: 23 Apr 2008 Posts: 72
|
|
| Back to top |
|
 |
FinGeR
Joined: 23 Apr 2008 Posts: 72
|
|
| Back to top |
|
 |
Terranin Site Admin

Joined: 21 Oct 2006 Posts: 831
|
Posted: Thu Sep 17, 2009 4:32 pm Post subject: |
|
|
On the first picture there is possible an error in code buffer[index] = buff[index + 1]
In this case you will get an error when you are trying to access index = bars - 1, because there is no index = Bars.
_________________ Hasta la vista
Mike |
|
| Back to top |
|
 |
adekat
Joined: 18 Jul 2010 Posts: 7
|
Posted: Sun Jul 18, 2010 7:11 am Post subject: GetMA ma_WMA bug? |
|
|
TechnicalFunctions.h 2010/3/27
double GetMA(
case ma_WMA:
bug
for (i=index; i < index+period; i++)
good
for (i=0; i < period; i++)
|
|
| Back to top |
|
 |
Terranin Site Admin

Joined: 21 Oct 2006 Posts: 831
|
Posted: Sun Jul 18, 2010 4:13 pm Post subject: Re: GetMA ma_WMA bug? |
|
|
| adekat wrote: | TechnicalFunctions.h 2010/3/27
double GetMA(
case ma_WMA:
bug
for (i=index; i < index+period; i++)
good
for (i=0; i < period; i++) |
Thanks, fixed.
_________________ Hasta la vista
Mike |
|
| Back to top |
|
 |
adekat
Joined: 18 Jul 2010 Posts: 7
|
Posted: Mon Jul 19, 2010 11:26 am Post subject: GetMA ma_EMA bug? |
|
|
TechnicalFunctions.h 2010/3/27
double GetMA(
case ma_EMA:
ng (k=0,1,2)
k = 2/(period + 1);
good
k = (double)2/(period + 1);
compile with Microsoft Visual c++ express
|
|
| Back to top |
|
 |
Terranin Site Admin

Joined: 21 Oct 2006 Posts: 831
|
Posted: Mon Jul 19, 2010 4:16 pm Post subject: Re: GetMA ma_EMA bug? |
|
|
| adekat wrote: | TechnicalFunctions.h 2010/3/27
double GetMA(
case ma_EMA:
ng (k=0,1,2)
k = 2/(period + 1);
good
k = (double)2/(period + 1);
compile with Microsoft Visual c++ express |
Fixed.
_________________ Hasta la vista
Mike |
|
| Back to top |
|
 |
|