2 questions

Posted By: danatrader

2 questions - 08/14/20 10:05

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.

Posted By: jcl

Re: 2 questions - 08/14/20 12:50

Use TradeProfit > 0. TradeIsProfit only indicates that the profit target is hit.
© 2024 lite-C Forums