Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
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
2 registered members (TipmyPip, AndrewAMD), 16,415 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
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: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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