(1) I'm new to NT script and try to start from simple.
(2) My primary series is CL 03-11 2 Renko and try to access the previous High and Low from 10 Renko. I've done the following but check with the output window, the values aren't what I want. Please point out where I'm wrong.
protected override void Initialize()
{
AddRenko("CL 03-11", 10, MarketDataType.Last);
}
if(CurrentBar < 1);
return;
if(BarsInProgress == 1)
{
hi = High[1];
lo = Low[1];
}
Print(hi.ToString("00.00")+ " " + lo.ToString("00.00"));
DrawRay("01", false, 1, hi+TickSize*10, 0, hi+TickSize*10, Color.Silver, DashStyle.Dot, 1);
DrawRay("02", false, 1, lo-TickSize*10, 0, lo-TickSize*10, Color.Silver, DashStyle.Dot, 1);
Comment