Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (dBc, clonman, TipmyPip), 18,816 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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