Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 410 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 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: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
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: 206
Germany
Smon Offline OP
Member
Smon  Offline OP
Member

Joined: Dec 2014
Posts: 206
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