Forex Tester Forum (Professional Training Software for Traders) Forum Index Forex Tester Forum (Professional Training Software for Traders)

Back to main site   Risk disclosure
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C++ API Bug

 
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> FT API
View previous topic :: View next topic  
Author Message
FinGeR



Joined: 23 Apr 2008
Posts: 72

PostPosted: Sat Aug 29, 2009 10:47 am    Post subject: C++ API Bug Reply with quote

- Volume()


Capture_024.gif
 Description:
 Filesize:  42.23 KB
 Viewed:  3628 Time(s)

Capture_024.gif



Capture_023.gif
 Description:
 Filesize:  14.86 KB
 Viewed:  3628 Time(s)

Capture_023.gif



_________________
ForexTester Software Version 2
http://www.MetaTraders.de
Back to top
View user's profile Send private message
FinGeR



Joined: 23 Apr 2008
Posts: 72

PostPosted: Sat Aug 29, 2009 10:52 am    Post subject: Reply with quote

GetMA()
RegMATypeOption()
EMA is always SMA Periode 1



Capture_025.gif
 Description:
 Filesize:  24.33 KB
 Viewed:  3627 Time(s)

Capture_025.gif



_________________
ForexTester Software Version 2
http://www.MetaTraders.de
Back to top
View user's profile Send private message
Terranin
Site Admin


Joined: 21 Oct 2006
Posts: 831

PostPosted: Thu Sep 17, 2009 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
adekat



Joined: 18 Jul 2010
Posts: 7

PostPosted: Sun Jul 18, 2010 7:11 am    Post subject: GetMA ma_WMA bug? Reply with quote

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
View user's profile Send private message
Terranin
Site Admin


Joined: 21 Oct 2006
Posts: 831

PostPosted: Sun Jul 18, 2010 4:13 pm    Post subject: Re: GetMA ma_WMA bug? Reply with quote

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
View user's profile Send private message
adekat



Joined: 18 Jul 2010
Posts: 7

PostPosted: Mon Jul 19, 2010 11:26 am    Post subject: GetMA ma_EMA bug? Reply with quote

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
View user's profile Send private message
Terranin
Site Admin


Joined: 21 Oct 2006
Posts: 831

PostPosted: Mon Jul 19, 2010 4:16 pm    Post subject: Re: GetMA ma_EMA bug? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> FT API All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group