-
-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not enough money for demo account #341
Comments
Are you running with the default settings? It could only happen when you set lot size too large. Set 'Lot size' to '0' in EA's parameters, if it's already, otherwise set to minimal of 0.01 (it's possible auto lot calculate fails due to specific broker settings). Can you also paste the initial screen before that right after start (which should include values with Market values). |
@kenorb I had the lot size set at 1000, I thought it was units, Im really new to this, so I set lot size to 0.01 and everything is good now. It has traded a bunch of times but there are like 100s of these messages popping up, can you tell me what this means? |
Im getting this also |
@kenorb How can I limit EA to one order at a time? I think that would solve the problem |
It is not being able to close later orders other than earlier orders and its getting stuck trying to close a more recent order when there are earlier orders |
It seems your broker doesn't support hedging. It's not recommended to use brokers that don't support it. For the workaround, you can change |
@kenorb I am using Oanda demo account |
@kenorb Im trying your workaround now, Ill let you know how it goes, it may be a US thing the mail says "filling order is against FIFO requirement". thats in the old case, ill let you know how the workaround works. Can you tell me a broker that this would definetly work with if it is a oanda thing, or one that has the hedging option? |
@kenorb yeah setting 40 did not work. It is still doing multiple orders. Is there a way i can make it only deal with one order at a time? |
That filter is per each strategy, try to set only one strategy for the whole EA (other set to None), then try SOF filter=40. |
If that's a US thing, not sure if you can do much. In EU most of the broker can trade with hedging. |
@kenorb this is what I have set, I set the 40, and disabled the other strategies and it is still opening multiple orders |
The configuration looks fine. Opening multiple orders should be fine as long they're in the same direction. If you see in the different direction (buy+sell) at the same time (generating hedging error), then it's not good, so something needs fixing. |
It tries to modify the orders and I get the FIFO error again |
Please test if the issue still persist in the new released v2.013. |
Hi Im trying to setup EA with mt4, and every time it tries to trade there is this error
2022.07.26 19:01:04.033 EA31337-Lite-v2.010 EURUSD,M1: 2022.07.27 02:00:53: ERROR: Trade::OrderAdd:663: Cannot add order!; Code: 134, Msg: Not enough money.
Maybe its something im doing wrong, I log into my demo account and see this when I connect the expert
This is in the oanda specific MT4
Thank you for your time
The text was updated successfully, but these errors were encountered: