Support Board
Date/Time: Sat, 04 Apr 2026 09:57:06 +0000
Post From: Auto trade not working
| [2026-04-02 15:08:07] |
| User431178 - Posts: 857 |
|
Can you help.
Yes, find a new programmer...Here is what the programmer asked me to send. "sc.SellEntry() returns -1 on sim account with AutoLoop=0, UpdateAlways=1, bare market order, no working orders, flat position, all auto-trade settings enabled"
Anything in the trade service log?How about getting the actual error message details printed? Automated Trading From an Advanced Custom Study: sc.GetTradingErrorTextMessage() Is the return value always -1 or some other of the order error constants? Automated Trading From an Advanced Custom Study: Order Error Constants Started happening with new ACSIL studies — existing older studies trade correctly
So something is misconfigured in the new study, have you made comparison between what you have that works and what doesn't?You said this It works on first try then will not enter the trade
So does that mean somewhere in the code you are changing some config option that is preventing you from entering again? Can you provide more context, maybe some code, e.g. what is set in the 'SetDefaults' block? |
