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 

[SOLVED] Using Alligator and Fractals Indicator Problem

 
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
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Fri Feb 24, 2012 7:36 am    Post subject: [SOLVED] Using Alligator and Fractals Indicator Problem Reply with quote

Dear all,

I'm new in programming Forex Tester 2 Strategies, try to make Bill Williams Chaos Theory Strategies, I already follow the Forex Tester 2 Help file or searching on web (this forum), but still got some problem :

1. How can I get current bar Indicator Value from each Alligator buffer index (jaws,teeth,lips)? here my script sample :
Code:

iAlligator := CreateIndicator('GBPUSD', 30, 'Alligator',format('%s;%s;%d;%d;%d;%d;%d;%d', [StrMAType(ma_SSMA), StrPriceType(pt_HL2),13, 8, 8, 8, 5, 3]));

bJaws := GetIndicatorValue(iAlligator, 0, 0); // JAWS
bTeeth := GetIndicatorValue(iAlligator, 0, 1); // TEETH
bLips := GetIndicatorValue(iAlligator, 0, 2); // LIPS


since I always got the shift value, not current bar values for Jaws, Teeth, lips.

2. How can I use the Fractals? since I always got the "error in Strategy...". while start the test. here my script sample :

Code:

iFractal := CreateIndicator('GBPUSD', 30, 'Fractals', '');

bFracUp := GetIndicatorValue(iFractal, 0, 0); // FRACTALS UP
bFracDown := GetIndicatorValue(iFractal, 0, 1); // FRACTALS DOWN


Anyone can help me, urgently need a help. Thank you before.


Last edited by ghostomg on Mon Mar 05, 2012 2:01 am; edited 2 times in total
Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Fri Feb 24, 2012 1:19 pm    Post subject: Reply with quote

Hello,

did you get indicator handle after CreateIndicator function call?

what values of iAlligator and iFractal variables did you get?

maybe there was an error in the parameters which you pass to the indicator.

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Sat Feb 25, 2012 1:55 am    Post subject: Reply with quote

FT Support wrote:
Hello,

did you get indicator handle after CreateIndicator function call?

what values of iAlligator and iFractal variables did you get?

maybe there was an error in the parameters which you pass to the indicator.


Here the print screen of Integer Handle value I got after starting the Test.
Anything wrong?

Thank you for the Support.



img1.png
 Description:
 Filesize:  14.07 KB
 Viewed:  10839 Time(s)

img1.png


Back to top
View user's profile Send private message
FxMax



Joined: 28 Nov 2011
Posts: 9

PostPosted: Mon Feb 27, 2012 8:52 am    Post subject: Reply with quote

ghostomg wrote:
FT Support wrote:
Hello,

did you get indicator handle after CreateIndicator function call?

what values of iAlligator and iFractal variables did you get?

maybe there was an error in the parameters which you pass to the indicator.


Here the print screen of Integer Handle value I got after starting the Test.
Anything wrong?

Thank you for the Support.


Hello,

Can you send whole code of your strategy? I'll try to compile and reproduce your error.
Back to top
View user's profile Send private message
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Mon Feb 27, 2012 2:46 pm    Post subject: Reply with quote

okey..I've attached my source code, since there is an error, so the code still without logic or algorithm,I'm only testing if 'CreateIndicator' and 'GetIndicatorValue' function are return right value. It's Delphi Code.

very appreciate your support and any solution.Thank you.



chaos-error.zip
 Description:

Download
 Filename:  chaos-error.zip
 Filesize:  171.88 KB
 Downloaded:  526 Time(s)

Back to top
View user's profile Send private message
FT Support



Joined: 11 Jul 2009
Posts: 902

PostPosted: Thu Mar 01, 2012 9:00 pm    Post subject: Reply with quote

Hello,

Probably the error happens because you use CreateIndicator function in the GetSingleTick procedure.

Please try to remove CreateIndicator call from there. Does it help?

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com
Back to top
View user's profile Send private message Visit poster's website
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Fri Mar 02, 2012 1:42 am    Post subject: Reply with quote

FT Support wrote:
Hello,

Probably the error happens because you use CreateIndicator function in the GetSingleTick procedure.

Please try to remove CreateIndicator call from there. Does it help?


I've try to put only on ResetStrategy procedure and I got popup window error every start the test. any others idea? I think there are something wrong with the Fractal parameter while initialize with Create Indicator base on strategies help file, since there are no source code of fractal indicator, please help me to solve.
Back to top
View user's profile Send private message
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Fri Mar 02, 2012 2:13 am    Post subject: Reply with quote

Here I attached print screen of popup window error message.


img2.png
 Description:
 Filesize:  5.04 KB
 Viewed:  10773 Time(s)

img2.png


Back to top
View user's profile Send private message
Stonev



Joined: 28 Jan 2010
Posts: 103

PostPosted: Sat Mar 03, 2012 3:24 am    Post subject: Reply with quote

Hello,
Send me your code, I can try to fix it.
Just indicator loading part, not whole EA Smile

Stonev@yandex.ru
Alexey
Back to top
View user's profile Send private message Send e-mail
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Mon Mar 05, 2012 2:00 am    Post subject: Reply with quote

Hi, at last, problem solve, i make my own fractal function n work fine for multiple timeframe Very Happy Alligator indicator also could give the current bar value. Thanks for the support.
Back to top
View user's profile Send private message
mspen



Joined: 10 Sep 2008
Posts: 8
Location: San Diego

PostPosted: Sun Nov 11, 2012 5:46 pm    Post subject: Using Alligator and Fractals Indicator Problem Reply with quote

Any chance you would publish the correct code here so we know what the fix was. Just the lines initializing Fractal and getting the values would be helpful.
Back to top
View user's profile Send private message
ghostomg



Joined: 24 Feb 2012
Posts: 12
Location: Indonesia

PostPosted: Sat Nov 24, 2012 1:53 am    Post subject: Re: Using Alligator and Fractals Indicator Problem Reply with quote

mspen wrote:
Any chance you would publish the correct code here so we know what the fix was. Just the lines initializing Fractal and getting the values would be helpful.


The posibilities is maybe there is some version of FT 2 Indicator in installer build in. I backup my old indicator *.dll file, then I download a newest installer from FT website, install it, then I found there are different modify date between this indicator same file. dont know it could be posible happened.

For the current, I'm using the newest alligator & fractal indicator from newest FT Installer into my Strategies, not from my own created before, and it worked fine until now.

Little bit suggestion, could you give some version information into indicator interface or something if any different version, just to make sure we use the right version as well Very Happy

Thank you
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