I have a new question about this feature. Yesterday morning, the code I'm developing for a client was firing orders and doing thing properly. In the afternoon yesterday, it was not firing orders because it was rejecting them (for some reason).
Today, it's doing the same thing. It keeps rejecting orders because it thinks I'm trying to CLOSE a position when I have no positions open in the PaperTrader. Every time I try to fire a buyMarket() or sellMarket() it gives me an error...
"New order ID = 70, Account = 473851, Symbol = ES #F, Exchange = AccountManager, Type = Market, Action = Sell, Quantity = 10"
"Order 70 has been rejected. You cannot place closing order at the moment, you need to have an open position at the corresponding side first."
Now, I'm not currently showing any position for the ES #F in the Papertrader and I don't know why it would stop taking orders. I've added debug lines into the code to see if it is anything I'm doing and I can't see anything in the EFS that would be causing this not to work.
I've tried firing an order manually into the papertrader and it works perfectly. It even closes the position properly.
Is there a way to reset the papertrader and start over with a new account? Can anyone assist me as to why these orders are being rejected from EFS when they worked (for a while) yesterday?
Today, it's doing the same thing. It keeps rejecting orders because it thinks I'm trying to CLOSE a position when I have no positions open in the PaperTrader. Every time I try to fire a buyMarket() or sellMarket() it gives me an error...
"New order ID = 70, Account = 473851, Symbol = ES #F, Exchange = AccountManager, Type = Market, Action = Sell, Quantity = 10"
"Order 70 has been rejected. You cannot place closing order at the moment, you need to have an open position at the corresponding side first."
Now, I'm not currently showing any position for the ES #F in the Papertrader and I don't know why it would stop taking orders. I've added debug lines into the code to see if it is anything I'm doing and I can't see anything in the EFS that would be causing this not to work.
I've tried firing an order manually into the papertrader and it works perfectly. It even closes the position properly.
Is there a way to reset the papertrader and start over with a new account? Can anyone assist me as to why these orders are being rejected from EFS when they worked (for a while) yesterday?
Comment