I've been trying to develop some piece of code which allows me to change the color based on a specific value.
There's something in the documentation referring to this:
So, how do I go about making the colors variable within an indicator/EA?
int RedValue = 255 * Ratio; int GreenValue = 255 * (1 - Ratio); color LineColor = C'RedValue,GreenValue,000';
// symbol constants C'128,128,128' // gray