My Hedge EA does not do Hedge trade at all on Tester... but will do for live trading. Why? HELP Plz~
Tester does not support multi-currency. Only one symbol can send orders.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I'm testing my EA for Hedge positions on MT4 Tester.
---------------------------------------------------------------------------------------------------------------------------
OrderSendTest EURUSD,H1: ***** TEST 1 START *****: Order SELL --> Order Buy Lots=0.01
OrderSendTest EURUSD,H1: AccountBalance:10000 AccountMargin:0 AccountFreeMargin:10000
OrderSendTest EURUSD,H1: ** Ordre Send CASE1 No.=1 OrdreType=SELL **
OrderSendTest EURUSD,H1: open #1 sell 0.01 EURUSDFXF at 1.2997 sl: 1.3017 tp: 1.2977 ok
OrderSendTest EURUSD,H1: AccountBalance:10000 AccountMargin:51.992 AccountFreeMargin:9947.808
---------------------------------------------------------------------------------------------------------------------------
So the first Sell is ok, and only Margin:51.992 is used. But then, on the following next step, it'll suddenly show
"NewMargin: -1, FreeMargin: -1" and OrderSend failed with error #134 (not enough money).
---------------------------------------------------------------------------------------------------------------------------
OrderSendTest EURUSDFXF,H1: ** Ordre Send CASE1 No.=2 OrdreType=BUY **
Tester: not enough money for buy 0.01 EURUSDFXF at 1.2999 sl: 1.2979 tp: 1.3019
Tester: PrevBalance: 10000.00, PrevPL: -0.20, PrevEquity 9999.80, PrevMargin: 51.99, NewMargin: -1, FreeMargin: -1.#J
OrderSendTest EURUSD,H1: OrderSend error 134
OrderSendTest EURUSD,H1: OrderSend failed with error #134
OrderSendTest EURUSD,H1: AccountBalance:10000 AccountMargin:51.992 AccountFreeMargin:9947.808
OrderSendTest EURUSD,H1: ***** TEST 1 END *****: Order Clear
OrderSendTest EURUSD,H1: close #1 sell 0.01 EURUSDFXF at 1.2997 sl: 1.3017 tp: 1.2977 at price 1.2999
---------------------------------------------------------------------------------------------------------------------------
The broker I'm using allows Hedge, and will calculate Margin for the one which takes more amount (4% margin ratio). So I should have enough margin to proceed hedge positions,
but it won't.
Help me please~
Many thanks!