Adding Color to the graph lines

You probably copy pasted the code from AmiBroker Tips Weekly NewsLetter Issue 5/2000. Just for your future reference, while sharing codes - not written by yourself - please share the source or provide Credit to the author. :slight_smile:

Roger, as you can see that its a code written in AFL about 20 years back. Since then, thanks to the Tomasz and his team, AmiBroker has evolved! Plotting using graph0, graph1 has gone obsolete; they are just there for old-code compatibility purposes only.

Based on your request, would suggest you to study the Plot() function. And for further understanding this guide on Using graph styles, colors, titles and parameters in Indicators.

Not only that, now AmiBroker comes with many different types of Plot() function with varied spectrum providing ultimate freedom to your imagination. Such as:

(Source: Categorized list of AFL functions)

This forum encourages an user for self-study instead of spoon-feeding. Hence, not posting the answer directly and hope that you will go through the references. Share your efforts and attempts for better resolutions. Also:

And Welcome!

3 Likes