1. OnBarUpdate certainly doesn't run for every tick, i made a strategy that entered a position each time OnBarUpdate is called, just to test this, and for about first 10 or 15 bars after enabling it, nothing happened, then it started responding/working... this behavior was consistent between several custom strategies (some of them had some indicator conditions) - none of them seem to be working from the moment of activating, all of them start to work after about 10 bars have passed from their activation
2. In second attempt (changed the strategy to call custom dll to log into file, as i can't seem to force the NT Log call to work, added dll references, saved, compiled, exited NT, started NT, opened strategy, compiled again just to be sure), already 18 bars from its start have passed, and strategy doesn't seem to be working (it's active in the list of strategies, but it doesn't trade (again, just dumb "Enter long" and "call dll function to log into file" on every OnBarUpdate call).
Status update: 28 bars passed from strategy activation, and it finally noticed that it's active.
Another status update: edited the strategy to CalculateOnBarClose = true, 7 bars passed since its new activation (before which i also disabled all the indicators on chart), still waiting for it to kick in.
Am I missing something? Am I stupid? Is your help file stupid?
In that regard, i've been also unable to make the DrawText function from custom strategy to work, despite generating the call from the Strategy Wizard (after several unsuccessful attempts to write the call by hand) - no error in logs, no text in chart, nothing.
On a somewhat (un)related note, what the hell is going on with the "remove reference, re-add reference, save strategy, exit NT, start NT, compile strategy" routine i have to do every time I make a change to my external dll, for NT to notice it? Why can't it just properly and fully re-bind to the external dll after the first two (remove reference, re-add reference) steps?
Conclusion: The API seems inconsistent, strange and counter-intuitive in its behavior, and this inconsistency and strangeness doesn't seem to be noted anywhere in help. If it's just my stupidity and I'm misunderstanding some principles that cause this apparent inconsistency, i'd be grateful to anyone who would explain it to me.

Comment