Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
Deeplearning Script
by wolfi. 02/26/24 12:46
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/22/24 16:22
AssetAdd() vs. modern asset list?
by jcl. 02/21/24 15:01
How many still using A8
by Aku_Aku. 02/20/24 12:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 521 guests, and 6 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