Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MESA indicator issues - bug or misunderstanding? #463071
11/13/16 12:48
11/13/16 12:48
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Hi

I'm getting very strange results with the MESA indicator. I'm new to Zorro, so please check my code - either I'm misunderstanding something or this is a bug.

On the default settings of Fast: 0.5 / Slow: 0.05 I get something that looks vaguely sensible, but incorrect when compared with other platforms running TA-Lib. As soon as I move to slower settings such as 0.3/0.03 things go seriously awry.

Here is a 5 minute chart on JForex with the TA-Lib MESA on 0.3/0.03:



And here's the same time period generated by the code below:



This is my code. Am I doing something dim or is this a bug?

Either way, I'd very much appreciate a quick resolution. I have an account set up and a system ready to trade, so this is a downer...

Extending the lookback doesn't help, and all other indicators I've tried work fine, so I don't think it's my install.

If I can get this working, I'll be a paying customer.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

var fast_limit = 0.3;
var slow_limit = 0.03;

function run()
{
StartDate = 2015;
LookBack = 200;
BarPeriod = 5;
MaxBars = 1000;

vars Close = series(priceClose());
MAMA(Close, fast_limit, slow_limit);

plot("MAMA", rMAMA, 0, RED);
plot("FAMA", rFAMA, 0, BLUE);
}

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Re: MESA indicator issues - bug or misunderstanding? [Re: scotpip] #463084
11/14/16 13:02
11/14/16 13:02
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Bump...

It would be really helpful to get some feedback on this - I've got an urgent need.

I've already coded the Mesa in another language and could do it again in Zorro but as I'm new to Lite-C this would likely be time-consuming.

So if there's a quicker solution I'd be very grateful for any suggestions - especially if it's simply an error in my code.

Last edited by scotpip; 11/14/16 13:03.
Re: MESA indicator issues - bug or misunderstanding? [Re: scotpip] #463113
11/15/16 23:47
11/15/16 23:47
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
I can't see anything wrong in your code. The source code for Zorro's MAMA indicator should be available in indicators.c in the "include" folder. Maybe compare the implementations to see where the difference lies?

If you need help coding something in lite-C, just post here with whatever progress you make and you'll get useful feedback.

Re: MESA indicator issues - bug or misunderstanding? [Re: boatman] #463120
11/16/16 08:43
11/16/16 08:43
Joined: May 2016
Posts: 180
Prague
pcz Offline
Member
pcz  Offline
Member

Joined: May 2016
Posts: 180
Prague
Originally Posted By: boatman
I can't see anything wrong in your code. The source code for Zorro's MAMA indicator should be available in indicators.c in the "include" folder. Maybe compare the implementations to see where the difference lies?

If you need help coding something in lite-C, just post here with whatever progress you make and you'll get useful feedback.


I think there's only declaration in ta.h, no definition.

Re: MESA indicator issues - bug or misunderstanding? [Re: pcz] #463128
11/16/16 12:31
11/16/16 12:31
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Yes - I think the definition is in the binary.

Actually, I never managed to get the TA-Lib MAMA working in Java - I ended up porting it myself from the EasyLanguage original.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1