Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 959 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Close All Trades or Close All Trades for a certain Currency #447428
12/10/14 20:55
12/10/14 20:55
Joined: Jan 2014
Posts: 41
K
killerkhan Offline OP
Newbie
killerkhan  Offline OP
Newbie
K

Joined: Jan 2014
Posts: 41
Hello all, can any programmer or developer that knows the lite-c well create a script that will allow me to close all trades on a certain FXCM account inside zorro or close all trades for a certain currency? I have a script like that in MT4 but want to get one in zorro hoping it will be faster and more streamlined and I dont have to jump from zorro to mt4 etc. thank you in advance,

KK

Re: Close All Trades or Close All Trades for a certain Currency [Re: killerkhan] #447433
12/11/14 09:35
12/11/14 09:35
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Use the for(open_trades) loop, and compare the TradeAsset string - exit the trade when the asset is the currency that you want to close. Check out the example:

http://manual.3dgamestudio.net/fortrades.htm


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1