Help to Close order with profit
It could be because of Swap !
Try to consider profitable trade is the one like this ...
Profit = OrderProfit() + OrderSwap() + OrderCommission();
so, in this case, if you have Swap in negative higher than profit itself, then the order will not be considered as a profitable trade.
It could be an other reason, but this for sure will enhance the result a little.
It could be because of Swap !
Try to consider profitable trade is the one like this ...
so, in this case, if you have Swap in negative higher than profit itself, then the order will not be considered as a profitable trade.
It could be an other reason, but this for sure will enhance the result a little.
i used following code to close only profit trades. but sometimes it close also loss trades. please some one help to resolve problem