virginia
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090
|
one of mistake a coder makes often is forgetting to wait for enough data
for example if you want to refer to bar[6] then you have to have this coding first
protected override void OnBarUpdate()
{
if (CurrentBar < 6)
return;
----------
you may want to try
protected override void OnBarUpdate()
{
if (CurrentBar < 1)
return;
|