I used NT7 for develop many indicator and/or strategies and i don't remember this type problem so far. So i'm thinking problem related NT8.
First step, I develop simple indicator which is draw up/down arrows for show instrument trend. And then develop a strategy which is using this indicator for buy/sell decision. Both indicator and strayegy are working correctly.
Second step, On indicator, i add a counter for count bars after trend reverse and draw text on a chart for each bar to trend counter value. I put on a chart this indicator and check indicator working correctly and also check output window too for is there any error/warning message for it. Again every thing working correctly, output window is clear. After that again i restart back-test the strategy and receive an error message for my indicator that "Object reference not set to an instance of an object.".
For test purpose, i uncomment only Draw.Text(...) lines from my indicator and strategy works again. Is this is a bug? Because it's not make sense for me, "can not use draw.text in an indicator if you'll use it in a strategy."
Best Regards,
Aytaç Aşan
Comment