While I have succeeded in coding a "click to order" strategy to initiate ATM strategy orders, I'm not satisfied with it because it cannot be pegged to a template (e.g. loaded by default) and there are some confusion over the account (what the strategy says vs what the ChartTrader says). To be honest, using Strategy as a base offers very little for ATM strategy manipulation e.g. no OnOrderUpdate etc. so I decided to recode what I did as an indicator.
I managed to get everything compiled but when I run it, I get:
Now, I'm 100% sure the State is Realtime when that method is called. So, does that mean I can't use methods like GetAtmStrategyUniqueId/AtmStrategyCreate etc. in an indicator? If I want to do that, what should I try then?
Thanks in advance for your advice.

Comment