Close All Trades or Close All Trades for a certain Currency

Posted By: killerkhan

Close All Trades or Close All Trades for a certain Currency - 12/10/14 20:55

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
Posted By: jcl

Re: Close All Trades or Close All Trades for a certain Currency - 12/11/14 09:35

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
© 2024 lite-C Forums