I have an indicator that does, sometimes requires tick by tick bid / ask prices, even if price has not changed For that, I use OnMarketData event. But, that is the only thing it is used for. Per the nt docs, I don't want this left in the code, even if empty. Should the bid / ask prices not be needed (I can use on price change which will be more efficient). Is there a way for my code to unsubscribe from the OnMarketData, even though it is declared in code? Idea being, if the bid / ask options are not checked in the indicator options, I can save precious NT resources by unsubscribing from OnMarketData once the indicator starts and then will not have a full stream of tick and bid ask changes etc. flowing that I do not need.
Thanks.
Comment