Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, Nymphodora, Quad, TipmyPip, Imhotep), 852 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Master the plot function #465402
04/24/17 18:35
04/24/17 18:35
Joined: Dec 2014
Posts: 204
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 204
Germany
I want to master the plot function. It just makes sense to me because I think it's crucial for debugging and I think this exercise will help me to familiarize myself quickly with the syntax of calling functions.

Right now I'm struggling with the Alligator:

vars Price = series(price());
var Indicator = Alligator(Price);
plot("Indi",Alligator,0,RED);

The "Alligator" consists of 3 lines. How can I plot all 3? I only get one! The manual says "Result in rRed, rGreen, rBlue". What am I supposed to do with this?

Re: Master the plot function [Re: Smon] #465408
04/25/17 16:45
04/25/17 16:45
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Just try:

plot("1",rRed,0,RED);
plot("2",rGreen,0,GREEN);
plot("3",rBlue,0,BLUE);

Re: Master the plot function [Re: Sphin] #465426
04/26/17 19:51
04/26/17 19:51
Joined: Dec 2014
Posts: 204
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 204
Germany
Thank you Sphin! I think I got it: I just need to take the return of the indicator function as the parameter for the plot function!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1