| View previous topic :: View next topic |
| Author |
Message |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Fri Feb 24, 2012 7:36 am Post subject: [SOLVED] Using Alligator and Fractals Indicator Problem |
|
|
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 |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 902
|
Posted: Fri Feb 24, 2012 1:19 pm Post subject: |
|
|
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 |
|
 |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Sat Feb 25, 2012 1:55 am Post subject: |
|
|
| 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.
| Description: |
|
| Filesize: |
14.07 KB |
| Viewed: |
10839 Time(s) |

|
|
|
| Back to top |
|
 |
FxMax
Joined: 28 Nov 2011 Posts: 9
|
Posted: Mon Feb 27, 2012 8:52 am Post subject: |
|
|
| 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 |
|
 |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Mon Feb 27, 2012 2:46 pm Post subject: |
|
|
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.
| Description: |
|
 Download |
| Filename: |
chaos-error.zip |
| Filesize: |
171.88 KB |
| Downloaded: |
526 Time(s) |
|
|
| Back to top |
|
 |
FT Support
Joined: 11 Jul 2009 Posts: 902
|
Posted: Thu Mar 01, 2012 9:00 pm Post subject: |
|
|
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 |
|
 |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Fri Mar 02, 2012 1:42 am Post subject: |
|
|
| 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 |
|
 |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Fri Mar 02, 2012 2:13 am Post subject: |
|
|
Here I attached print screen of popup window error message.
| Description: |
|
| Filesize: |
5.04 KB |
| Viewed: |
10773 Time(s) |

|
|
|
| Back to top |
|
 |
Stonev
Joined: 28 Jan 2010 Posts: 103
|
Posted: Sat Mar 03, 2012 3:24 am Post subject: |
|
|
Hello,
Send me your code, I can try to fix it.
Just indicator loading part, not whole EA
Stonev@yandex.ru
Alexey
|
|
| Back to top |
|
 |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Mon Mar 05, 2012 2:00 am Post subject: |
|
|
Hi, at last, problem solve, i make my own fractal function n work fine for multiple timeframe Alligator indicator also could give the current bar value. Thanks for the support.
|
|
| Back to top |
|
 |
mspen
Joined: 10 Sep 2008 Posts: 8 Location: San Diego
|
Posted: Sun Nov 11, 2012 5:46 pm Post subject: Using Alligator and Fractals Indicator Problem |
|
|
| 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 |
|
 |
ghostomg

Joined: 24 Feb 2012 Posts: 12 Location: Indonesia
|
Posted: Sat Nov 24, 2012 1:53 am Post subject: Re: Using Alligator and Fractals Indicator Problem |
|
|
| 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
Thank you
|
|
| Back to top |
|
 |
|