I have written an indicator with several series and it works ok with these lines in OBU:
if (CurrentBars[0] < 1
|| CurrentBars[1] < 1
|| CurrentBars[2] < 1
|| CurrentBars[3] < 1)
return;
In order to get better performance and smart results, I want to draw to use onRender method.
What changes should I do over my previous only one-serie code to avoid "Object reference not set to an instance of an object"? Any help or example is apreciated.
Thanks in advanced
Comment