protected override void OnBarUpdate()
{
if (CurrentBars[0] < BarsRequired)
return;
if(BarsInProgress != 0) return;
if (Rising (LinReg(BarsArray[0],4))
&& Rising (LinReg(BarsArray[0],9)))
{
DrawLine("SLup", false, 0, Low[0], 1, Low[0], upColor, DashStyle.Solid, 2);
}
if
(
(Falling(LinReg(BarsArray[0],4)))
||
(Falling(LinReg(BarsArray[0],9)))
)
{
RemoveDrawObject("SLup");
}
Do you have any advice?
sandman
Comment