Obviously the code is faulty and is not adapting to different environments and contract specifications.
Unfortunately, It is not a single line fix. You will probably have many areas in your code that will need to debugged and corrected.
Obviously the code is faulty and is not adapting to different environments and contract specifications.
Unfortunately, It is not a single line fix. You will probably have many areas in your code that will need to debugged and corrected.
This is what I am thinking too. The code is just panic buying on 'live' mode and not on demo. So strange.
To be clear, the algo is designed to place trades like below for example.
1.9000 - place sell
1.9005 - place sell
1.9010 - place sell
Perfect like this on demo. But instead it is like the below on live.
1.9000- place sell
1.9000- place sell
1.9002 - place sell
1.9001 - place sell
Just giving context.
Usually, you would show your code and we would try to help you, but that will only work for specific issues.
In your case, however, it will probably not be suitable because it seems like a generalised lack of proper program logic.
So, it serves no purpose to tell us what it is supposed to do. You will have to debug it on your own or hire someone to fix it for you if you don't know how.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
As per title, the algo works fine on demo, but operates in the exact opposite way in live.
It places trades when it should not, and instead 'sit out' of the market when needed. i.e only place trades when the market is going against the trade (like martingale).
What could cause this?