if (CrossAbove(LinReg(80), Close,1))
{
DrawTextFixed("UpMarket", "UpMkt: " + LinReg(80)[1] + " close: " + Close[1], TextPosition.TopRight);
}
if (CrossBelow(LinReg(80), Close,1))
{
DrawTextFixed("DownMarket", "DownMkt: " + LinReg(80)[1] + " close: " + Close[1], TextPosition.TopLeft);
}
The text prints, but BOTH of the IF statements yield a TRUE value which results in both lines of text being printed on screen. Both conditions can't be TRUE at the same time. What am I doing wrong?
Thanks
Comment