thanks for the review
The calculation does not include swaps and commissions, which is important.
Vitaly Muzichenko #:
The calculation does not include swaps and commissions, which is important.
Totally agree. The calculation does not include swaps and commissions, which is important.
And also the net average price is wrong, because it's simply using buy avg price if there are more buy volume then sell, and viceversa, which is not correct.
Another variable should be used, in which buy info are added and sell info subtracted, there you will have the correct average price, but once again, without swaps and commissions.
In few words: good basic idea, but very bad realization.

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
AveragePrice:
Indicator for calculating the average price of open positions, you can use the magic number if you want to separate the positions of just one robot, but the zero number is for manual operations.
Author: Francisco Gomes Da Silva