Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1326

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
how to calculate the commission for open orders in mt5 for each pair separately?
for some reason it won't - it shows zeros
For some reason it doesn't want to - it shows zeros.
As far as I remember, this thing never worked, and you can't get the commission for the position, you have to go through all the trades from the history, check if they belong to the selected position, and sum it up, it gets pretty messy, but somewhere there was an example code, I think from fxsaber.
As far as I remember, this thing never worked, and you can't get the commission for the position, you have to go through all the trades from the history, check if they belong to the selected position, and sum it up, it gets pretty messy, but somewhere there was a code example, I think from fxsaber.
fxsaber showed it as a calculation of all open pairs and that is the total commission
fxsaber was sending us the calculation of all the open pairs, i.e. the total commission
Right, here's the link:https://www.mql5.com/ru/forum/93879/page5
well, that's the question )) why can't they make simple things simple and not calculate the commission?
Well yes, it's unclear why the developers wouldn't make a ready-made function... maybe one day they will... there used to be no i-functions and everyone was struggling too... now there is... maybe we'll wait for commissions...
Well yes, it's unclear why the developers wouldn't make a ready-made function... maybe one day they will... there used to be no i-functions and everyone was struggling too... now there is... maybe we'll wait for the commissions...
it's probably faster to do it yourself...
for some reason does not want to show zeros
still zeros and does not want to show commission
I have it like this
i.e. it does not check if there is an open order?
The best way is to create a signal in the Indicator and then enter it into the Expert Advisor