I would like to create an indicator based on the %D slope of the 12, 5, 5 slow stochastic. So if the %D turns up the bars should be green, if it turns down the color should be red.
I have to say that I have no experience in creating indicators at all. So this seems to be tough.
Help is highly appreciated...thanks
Here is what I found in the help guide as an example:
// Sets the bar color to yellow
BarColor = Color.Yellow;
// Sets the bar color to its default color as defined in the chart properties dialog
BarColor = Color.Empty;
// Sets the bar color to yellow if the 20 SMA is above the 50 SMA and the closing
// price is above the 20 SMA (see image below)
if (SMA(20)[0] > SMA(50)[0] && Close[0] > SMA(20)[0])
BarColor = Color.Yellow;
Comment