I have strategy which work in Strategy Analyzer. But when I try use the same strategy in my workspace, nothing happend od my chart. There is no information about any problem. For the first view it looks that everything is all right, but strategy doesn't color bars (strategy should color bars which do properly conditions).
This is the code:
protected override void OnBarUpdate()
{
// Condition set 1
if (CurrentBar < 60)
return;
if (Close[0] > Close[20]
&& Close[0] > Close[60])
{
BarColor = Color.Green;
}
if (Close[0] < Close[20]
&& Close[0] < Close[60])
{
BarColor = Color.Red;
}
}
Please, help me.
Thanks
Daniel
Comment