internal double GetValue(double close, out string format, out Color color, out Color bkColor, out string alertText, DateTime now)
{
int num = this.signal_sign;
double num2 = 0.0;
color = Color.Black;
bkColor = Color.White;
color = (num == 0) ? Color.Black : ((num > 0) ? Color.White : Color.White);
bkColor = (num == 0) ? Color.White : ((num > 0) ? Color.LightGreen : Color.Red);
num2 = num;
format = (num == 0) ? "" : ((num > 0) ? "Long" : "Short");
return num2;
}
On the BarUpdate there is this code:
if (((this.var48 == 1.0) && !double.IsInfinity(this.var49)) && !double.IsNaN(this.var49))
{
this.Longstop.Set(this.var49);
base.BarColor = Color.LimeGreen;
}
if (((this.var48 == -1.0) && !double.IsInfinity(this.var50)) && !double.IsNaN(this.var50))
{
this.Shortstop.Set(this.var50);
base.BarColor = Color.Red;
}
What exactly needs to be modified to be able to access the bar color for this indicator?

Comment