OpenBuyProfit+=OrderProfit()+OrderSwap()+OrderCommission();
Slawa thanks for replying. I have tried to change but still get value of 0
OrderSelect(i, SELECT_BY_POS ); if ( OrderSymbol() == Symbol() && OrderMagicNumber() == forMagic && type == OP_BUY) { OpenBuyProfit += OrderProfit()+OrderSwap()+OrderCommission();
Try to print selected orders
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Instead of manually counting both profits, I am trying to post a comment that shows each individual totals.
Here is sample code I am using. I know it's not right, so maybe someone could assist?
Thank you in advance.