Here is the code I use:
Code: Select all
{
Indicator: Strat Equity Color
}
inputs:
ShowOpenEquity(1),
ShowClosedEquity(1);
if ShowOpenEquity = 1 then begin
if I_OpenEquity >= 0 then
Plot1( I_OpenEquity, "OpenEquity", Green )
else
Plot1( I_OpenEquity, "OpenEquity", Red ) ;
end;
if ShowClosedEquity = 1 then begin
if I_ClosedEquity = 0 then
Plot2( I_ClosedEquity, "ClosedEquity", DarkGreen )
else if I_ClosedEquity > 0 then
Plot2( I_ClosedEquity, "ClosedEquity", DarkGreen )
else
Plot2( I_ClosedEquity, "ClosedEquity", DarkRed ) ;
end;
Plot3( 0, "ZeroLine", DarkGray ) ;
BTW, this is a brand new problem which I have never observed in any prior version of MC.