Master the plot function

Posted By: Smon

Master the plot function - 04/24/17 18:35

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?
Posted By: Sphin

Re: Master the plot function - 04/25/17 16:45

Just try:

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

Re: Master the plot function - 04/26/17 19:51

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!
© 2024 lite-C Forums