I downloaded the RSI Gradient Color indicator (https://ninjatraderecosystem.com/use...olor-gradient/) and it calculates as follows using only RGB:
double rsiValue = RSI(Period, Smooth)[0]; int rgbGreen = 0; int rgbRed = 0; int rgbBlue = 0; rgbRed = (int) (255*(rsiValue)/100); rgbGreen = 255-rgbRed; //rgbBlue = 255-rgbRed;//To use blue values BarBrush = new SolidColorBrush(Color.FromArgb((byte)255, (byte)rgbRed,(byte)rgbGreen,(byte)rgbBlue));
Thank you.
Comment