Mathematical calculations
-
I need to do this: (in two or more orders)
First order lots * (ask or bid) opening price of the first order = xxx
Second order lots * (ask or bid) opening price of the second order = xxx
third order lots * (ask or bid) opening price of the third order = xxx
etc...
xxx + xxx + xxx = xxx1
First order lots + second order lots + third order lots = x.xx
xxx1 / x.xx = Final result x... weighted price -
You will have to use several 'Formula' blocks to do that. If you are a good mql4 programmer though, you can do all those math on a 'Custom mql' block.