Gamestudio Links
Zorro Links
Newest Posts
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/16/26 11:13
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Martin_HH, AndrewAMD), 3,476 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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,106
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,106
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,106
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,106
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