Hey everyone, I found this morning a mistake.
I started same robot on 2 different accounts, one of them didn’t execute cancel order at the same time, so I’d to remove stop order mannually, as you can see in the attached picture.
Both robots exited at 09:06:12 with limit orders and after that, only one of them canceled stop order at 09:07:00 and the other had to be closed manually.
Would this order have been a remaining sell order on market without an stop for that one?
Strategy link: http://www.prorealcode.com/prorealtime-trading-strategies/alex-autotradingbot-index/
First, are you sure the 2 automated strategies share the same codes? (same version).
Yes, the only difference between them is %risk. Any ideas?
What STOP order? I only see LIMIT ones in the strategy code.
Stop ploss order.
First line in attached file
Are these the same ?[attachment file=8954]
Pending orders need to be set at each new bar, they normally don’t remain on market. So I believe that a variable are stuck in a state that continuously place a stop order, .. somewhere in the code.. ?
But I understand that is weird since you are trading the same strategy on 2 different accounts.
Are we talking about pending orders or stoploss one made by ‘set stop ploss’ instruction?
Not sure but I bet is an stop entry order
lines 167-169
if longonmarket then
if enter2=0 then
sellshort….
It should be cancelled after exitted, like the other account did, or maybe the other one should keep it on market if the mistake is in another place.
like:
if not onmarket and enter2=0…
I really don’t know where mistake is atm, but one or another failed coz didn’t do the same with same code.
Thanks!
Yes Nicolas, I’m a bit afraid… I started one of them, save, export and import in the other account, checked and changed risk %, that’s all I did. 🙁
It’s a pending order, so if your variable “enter2” is still equal to 0, then this order will remain. The best you can do is to graph all your variables to see if some still have values even if they don’t need to..
Thanks Nicolas, that was what I thought…
In this case, why the other one closed it at 09:07:00??
Should keep it open like the other one… We will see tomorrow!