Babysitting isn't always required but it takes a very long time to work out all the possible issues. It takes years because most of the problems are not obvious at first. But you're right that some commercial piece of software is unlikely to handle all your nuances.
I had similar issue in my code that’s why I was looking for someone to help me add the time element. But instead of complicate things I have decided to just enter everything mkt, I have only tested for the past 2 days the slippage wasn’t bad.
Nearly all of it is due to new market regulations or broker changes. The code part can be done and has been for a while.
Misunderstood what I am saying. Of course it is possible to code. But chit happens. And one needs to be there - IMO. Seen it many times before... to others ... who knew what they were doing. Connection goes down, even a blip can reset things and mess things. Just one of many problems that may need to be rectified by somewhere there. It is why some brokers market the service to babysit your "baby".
You start developing a serious algo when 80% of your code is about exceptions handling. Pretty much like any corporate solution. It is very easy to design a "happy path", but to cover every single path, that's another matter. Triggering an order is something anyone can do. Acting when that order fails is something else. Op's code is very amateur. A classic example of someone that went to fiver to code his algo.
There are ways around some of these issues. For one, having critical orders rest with your broker if possible. Definitely using a VPS over a home internet/electrical connection. One really important factor is error handling, making sure that no problem whether unforeseen or not can cause lingering issues.
Some, not all. I'll let you know when I come across someone who, honestly, claims to retail auto- trade uninterrupted for years now. Better yet, maybe you can save me some time and point me to such a person?
That's obviously impossible. There are regulatory changes; brokers and data feeds update platforms and APIs and break backward compatibility etc. I've had about a week where I only checked in before/after market to see what happened. Few of the changes are problem fixes, most are feature additions/improvements.
That's my whole point. Auto-trading can be done ... over periods of time. Not sustainably though - without some human intervention.
Hello hilmy83, Keep on trading buddy. It is no big deal. Nothing is perfect in trading. And looking for perfect in trading is too much work. Do not work hard in trading, just let the system run and check to make sure it exit the trade at about 3pm. Over working in trading leads to losses.