Gamestudio Links
Zorro Links
Newest Posts
IG plugin initial release
by sodiumchloride. 09/22/20 20:53
Using STL in Zorro strategies
by AndrewAMD. 09/22/20 17:01
Rubbish data from Yahoo
by DanielX. 09/22/20 14:37
assert
by Grat. 09/22/20 12:14
MT4 - use more Zorro script
by Grat. 09/22/20 06:49
Single advise model for portfolio
by jmlocatelli. 09/21/20 19:41
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (Dooley, kvm, AndrewAMD, jmlocatelli), 445 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
NewBorn, 3dvg, secretagentman, distribution, EditeY
18515 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: 249
D
danatrader Offline OP
Member
danatrader  Offline OP
Member
D

Joined: Mar 2019
Posts: 249
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,343
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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