Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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