Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 410 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can't open trade issue #463702
12/22/16 08:01
12/22/16 08:01
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW




Hi,
I'm running a strategy that I wrote on a live account and I'm getting this issue with ICMarket broket and MT4 bridge.
Please see the log below.
Looks like the is trying to put a stop at 5.000 on XAU/USD.
In my script I just use Stop=4*ATR(30).
I don't understand why I'm getting this error.
Any help is appreciated.
Thanks
Vincenzo


[285: Thu 22.12.16 07:00] 1.0433/1.04481.0433/1.0448
Buy 1S XAU/USD Stop 1138.9566 at 07:00:01
{XAU/USD:ISS:s8501} Short 24@1132.18 Risk 166$ at 07:00:01
Stop: 1138.9565 Trail: 0.0000 TakeProfit: 0.0000
Units: 24.0000 Margin: 1680.00 MCost: 2.2644 PCost: 0.01000
Buy 24S XAU/USD Stop 5.0000 at 07:00:01
BrokerBuy XAU/USD: 0 ms
(XAU/USD:NET:S) 07:00 Can't open 24@1132

Re: Can't open trade issue [Re: vinsom] #463704
12/22/16 08:12
12/22/16 08:12
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW

Another one with EurUsd.
The Phantom trade stop looks ok.
Is the stop on the pool trade that is wrong.
I'm using StopFactor = 1.0;
But reading the manual shouldnt be an issue.

[286: Thu 22.12.16 08:00] 1.0448/1.04561.0437/1.0438
Buy 1S EUR/USD Stop 1.0485 at 08:00:01
{EUR/USD:ISS:s8602} Short 45@1.04382 Risk 215$ at 08:00:01
Stop: 1.0485 Trail: 0.0000 TakeProfit: 0.0000
Units: 45000.0000 Margin: 2107.00 MCost: 2.0876 PCost: 0.10000
Buy 1S NZD/USD Stop 0.7175 at 08:00:01
[NZD/USD:ISS:S] Skipped: Lots/Margin = 0
Buy 1S EUR/USD Stop 1.0513 at 08:00:01
{EUR/USD:FIR:s8603} Short 27@1.04382 Risk 203$ at 08:00:01
Stop: 1.0513 Trail: 0.0000 TakeProfit: 0.0000
Units: 27000.0000 Margin: 2009.00 MCost: 2.0876 PCost: 0.10000
Buy 72S EUR/USD Stop 9.0000 at 08:00:01
BrokerBuy EUR/USD: 0 ms
(EUR/USD:NET:S) 08:00 Can't open 72@1.0438

Re: Can't open trade issue [Re: vinsom] #463707
12/22/16 09:43
12/22/16 09:43
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Set Verbose to a higher value, like 7. Then the reason why the trade could not be opened is printed in the log.

Re: Can't open trade issue [Re: jcl] #463726
12/22/16 20:47
12/22/16 20:47
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi,
Code is already with this 2 lines
if(!Train && !Test)
Verbose = 7 + 8;

But what is logged is still the same now for UDS/JPY log below.
Can it be because of limtations ? but from what I read I'm still in it.
Is a real USD account with USD $ 5800. Limit is USD $7000 right ?

[296: Thu 22.12.16 18:00] 1.0452/1.04541.0437/1.0441
[297: Thu 22.12.16 19:00] 1.0441/1.04481.0435/1.0437
[298: Thu 22.12.16 20:00] 1.0437/1.04391.0433/1.0433
Buy 1L USD/JPY Stop 101.5559 at 20:00:01
{USD/JPY:ISL:l9807} Long 2@117.6000 Risk 273$ at 20:00:01
Stop: 101.5559 Trail: 0.0000 TakeProfit: 0.0000
Units: 17.0075 Margin: 3227.00 MCost: 2.0000 PCost: 0.08504
Buy 2L USD/JPY Stop 9.0000 at 20:00:01
BrokerBuy USD/JPY: 0 ms
(USD/JPY:NET:L) 20:00 Can't open 2@117.60

Thanks
Vincenzo

Re: Can't open trade issue [Re: vinsom] #463733
12/23/16 10:12
12/23/16 10:12
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
I tried to switch to a demo account and trades are executed without problems from the same zorro instance and strategy.
Any idea ?
Account balance is 5800 USD, so below 7000, and according to the guide should be fine.
Any help appreciated.
Thanks
Vincenzo


[Fri 23.12.16 09:00] 16361 +14 -71 \ 1.0439/1.04481.0436/1.0445
[Fri 23.12.16 10:00] 16305 +14 -127 \ 1.0446/1.04631.0444/1.0456
Buy 1S AUD/USD Stop 0.7900 at 10:00:01
{AUD/USD:ISS:s1205} Short 10@0.72065 Risk 695$ at 10:00:01
Stop: 0.7900 Trail: 0.0000 TakeProfit: 0.0000
Units: 10000.0000 Margin: 7200.00 MCost: 1.8016 PCost: 0.10000
Buy 10S AUD/USD Stop 7.0000 at 10:00:01.
BrokerBuy AUD/USD: 323 ms
[AUD/USD:NET:S4477] Short 10@0.72065 Pool trade at 10:00:01
Stop: 1.0089 Trail: 0.0000 TakeProfit: 0.0000
Units: 10000.0000 Margin: 2570.00 MCost: 1.8016 PCost: 0.10000


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1