Issue with Bucket of trades
-
hi, there seems to be a problem getting the average open value using the bucket of trades block. i have done a test ex4 mt4-5595 to illustrate the problem. as you run you will notice it works normally. but after a few close, the average open price doesnt match. For example, im testing on EURUSD, the average open price is above 1. but after a few runs the value suddenly drops to below 1 when price have never reach there before.
-
Fixed

-
thanks. its working fine now.
-
there seems to be a problem with the order count and profit calculation too in the bucket of trades. sometimes when there are both buy and sell trade it counts both even though they are from different group and opposite trades
edit: i think everything is messed up in the block of trades now. @@ it includes both buy and sell trades in the calculation or something. even the fixed problem above is back. -
Oops, my fault! Yesterday I made some changes here and there, but it looks that without knowing I revert back to the old version of this function. Now it should be working.