Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (howardR), 663 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 questions #481227
08/14/20 10:05
08/14/20 10:05
Joined: Mar 2019
Posts: 357
D
danatrader Offline OP
Senior Member
danatrader  Offline OP
Senior Member
D

Joined: Mar 2019
Posts: 357
First, how to make sure only trades in profit (loss) are closed?

Is this correct?

for(open_trades){
if(TradeIsProfit){
Lots = TradeLots;
exitTrade();
}



Second, ... hmm, first is most important.


Last edited by danatrader; 08/14/20 10:46.
Re: 2 questions [Re: danatrader] #481230
08/14/20 12:50
08/14/20 12:50
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Use TradeProfit > 0. TradeIsProfit only indicates that the profit target is hit.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1