Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 902 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
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