Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, VoroneTZ, Quad, 1 invisible), 688 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Prevent Zorro from opening positions on initial load #484298
10/03/21 14:26
10/03/21 14:26
Joined: Sep 2021
Posts: 13
-
R
Raven478 Offline OP
Newbie
Raven478  Offline OP
Newbie
R

Joined: Sep 2021
Posts: 13
-
Greetings,

As soon as I start a strategy and it connects to MT4 bridge and loads the historic lookback data, it tries to open positions.

Is there a way to prevent this?

Kind Regards

Re: Prevent Zorro from opening positions on initial load [Re: Raven478] #484299
10/03/21 15:25
10/03/21 15:25
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Many reasons exist. I’d check this:
1) Is your trading script opening positions?
2) Are there any outstanding trd files in your Data folder? If so, is Zorro trying to fill unfilled orders from a previous session?

Re: Prevent Zorro from opening positions on initial load [Re: AndrewAMD] #484300
10/03/21 15:53
10/03/21 15:53
Joined: Sep 2021
Posts: 13
-
R
Raven478 Offline OP
Newbie
Raven478  Offline OP
Newbie
R

Joined: Sep 2021
Posts: 13
-
1. The trading script is trying to open orders based on the historic data it is loading on initial start. Like from the previous day.
2. Data folder was cleared and only par files were copied in.

smile

Re: Prevent Zorro from opening positions on initial load [Re: Raven478] #484301
10/03/21 16:07
10/03/21 16:07
Joined: Aug 2021
Posts: 237
L
Lapsa Offline
Member
Lapsa  Offline
Member
L

Joined: Aug 2021
Posts: 237
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=483933#Post483933

had same issues

in fact - I think my current script also immediately opens a trade.
but only one. so I sort of can ignore it for the price of single trade fees

try adding preload flag (my current script doesn't have it, think that's the issue), remove asset() function call, make sure you got history data already prepared

while debugging the issue - set lot size below minimum so your exchange would reject your trades and you don't lose money

I don't know precise reason this happens

Re: Prevent Zorro from opening positions on initial load [Re: Raven478] #484302
10/03/21 16:44
10/03/21 16:44
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
1. This is the default behavior. What did you want to change it to, exactly?

Re: Prevent Zorro from opening positions on initial load [Re: Raven478] #484307
10/04/21 12:14
10/04/21 12:14
Joined: Sep 2021
Posts: 13
-
R
Raven478 Offline OP
Newbie
Raven478  Offline OP
Newbie
R

Joined: Sep 2021
Posts: 13
-
Thank you both for the replies smile

If its default behavior I can live with it. I am using limit / pending orders so its not a big issue.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1