Roger:
I guess it's because var Ticket1 equal zero. Check.
Try OrderProfit instead of AccountProfit
Nikas82:
Hi,
Short quesiton... why it doesn't work ?
It seems that AccountProfit doesn't work with "order select by ticket" .
When I write orderselect(0, select_by_Pos)... It woks ?
Do you have a solution ?
Thanks
You need to check the type of the opened trade too. If it is a buy trade you use Bid for closing, if it is a sell trade you use Ask for closing.
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
Hi,
Short quesiton... why it doesn't work ?
It seems that AccountProfit doesn't work with "order select by ticket" .
When I write orderselect(0, select_by_Pos)... It woks ?
Do you have a solution ?
Thanks