What am I doing wrong? Does NinjaScript 7 support this type of functionality?
protected override void OnBarUpdate()
{
if (ToTime(Time[0]) >= 703000 && ToTime(Time[0]) < 80300)
{
if (Close[0] < MinPreMarket)
MinPreMarket = Close[0];
if (Close[0]>MaxPreMarket)
MaxPreMarket = Close[0];
}
if (ToTime(Time[0]) > 803000 && ToTime(Time[0]) < 803200)
{
DrawLine("tag1", false, Time[0],MaxPreMarket ,Time[0].AddHours(5) , MaxPreMarket, Color.Orange, DashStyle.Dot, 2);
}
}
Thanks in advance
Comment