Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/08/26 18:50
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, Quad), 15,417 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How do I open only 1 position per asset? #445895
09/29/14 03:02
09/29/14 03:02
Joined: Sep 2014
Posts: 24
M
mustang Offline OP
Newbie
mustang  Offline OP
Newbie
M

Joined: Sep 2014
Posts: 24
Basic question: how do I open only 1 position per asset without using MaxTrades?

Thanks!

Re: How do I open only 1 position per asset? [Re: mustang] #445900
09/29/14 10:34
09/29/14 10:34
Joined: Jul 2000
Posts: 28,083
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,083
Frankfurt
Either limit the positions by script, or use the reverseLong/Short functions that limit the positions automatically.

Re: How do I open only 1 position per asset? [Re: jcl] #445906
09/29/14 13:50
09/29/14 13:50
Joined: Sep 2014
Posts: 24
M
mustang Offline OP
Newbie
mustang  Offline OP
Newbie
M

Joined: Sep 2014
Posts: 24
Would you please provide a short code as an example?
I could not find examples in the documentation.

Re: How do I open only 1 position per asset? [Re: mustang] #445907
09/29/14 14:09
09/29/14 14:09
Joined: Jul 2000
Posts: 28,083
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,083
Frankfurt
The manual has a "Search" function. So it should not be too hard to find the examples in the documentation. Also, workshop 7 covers these functions.

Re: How do I open only 1 position per asset? [Re: jcl] #445915
09/29/14 15:40
09/29/14 15:40
Joined: Sep 2014
Posts: 24
M
mustang Offline OP
Newbie
mustang  Offline OP
Newbie
M

Joined: Sep 2014
Posts: 24
Yes, it works with and NumOpenLong < 1 and NumOpenShort < 1 both covered in Workshop7.

Thanks you!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1