Can you instead make it like indicator line which can be dragged over chart can would calculate the final profit/loss from all open trades.
Nice work, instead could make an indicator line which can be dragged on chart to see profits at various levels/prices.
if(OrderType()==OP_BUY) profit+=(targetPrice-OrderOpenPrice())/point*MarketInfo(Symbol(),MODE_TICKVALUE)*OrderLots()+OrderSwap(); if(OrderType()==OP_SELL) profit+=(OrderOpenPrice()-targetPrice)/point*MarketInfo(Symbol(),MODE_TICKVALUE)*OrderLots()+OrderSwap();
will be more proper.

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
ProfitOnDrop:
Author: Matus German