Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 32,572 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to get MAMA (mesa moving average) to work with BBands #449330
03/15/15 11:41
03/15/15 11:41
Joined: Feb 2014
Posts: 183
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 183
I have the following function;

BBands(Price,100,2,2,MAType_MAMA);
Which results in the following compiler error.

Error 011: Function BBANDS called with invalid data
BBands called with wrong paramters.

BBands works when MAMA is replaced with SMA,EMA, and most of the other predefined moving averages.

So MAMA needs to be setup initially, but how?



Last edited by RTG; 03/15/15 11:46.
Re: How to get MAMA (mesa moving average) to work with BBands [Re: RTG] #449362
03/16/15 16:18
03/16/15 16:18
Joined: Jul 2000
Posts: 28,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,029
Frankfurt
I believe the problem is the time period: MAType_MAMA does not accept too long periods in the ta-lib, don't ask me why. This MA Type makes anyway not much sense to me because MAMA requires two time periods, not one.

You could write an own BBand function that directly uses the MAMA for overcoming this limit.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1