The issue:
Today I no longer leave the strategies working live overnight, but rather stop and restart them every start of trading day. I completely remove them and define from scratch.
There were no data loss overnight. Its not a weekend of maintenance. I dont see any missing chart data periods. If I restart the strategy is shows historical trades that it should have executed, but didnt.
Background:
over the last several years I have written a dozen of strategies with 3-4 thousand lines of code each sometimes. Some make money some dont
.Most working with futures markets.
some more complex than others. some with managed and some non manages order entry. most of them are with multi data series timeframes (same instrument)
ALL my strategies are session bound and go flat in the end of session.
I work with NINJA broker account via Continuum data connection.
the platform is on a VPS so its 24/7 .
Happy to hear what's the experience is.
I tried to work with the Sample programs that come with NinjaTrader., I can fairly confidently say they work all the time. They dont have the above issue.
And that means that the above issue is " something of my doing "
Nevertheless, I have couple of thoughts :
- the SAMPLE code is fairly simple in comparison to mine
- I realize that I am not an expert coder
- I do notice that ninjatrader is a memory hog if not restarted. and although I like NinjaTrader very much, I know it has its problems.
So currently I am not doing anything to solve this , I just work hard every day
and accept my fate. But it occupies my mind once in awhile ....

Comment