Expected Volumes

 

The expected volumes indicator simply displays what the volume for each new candle or bar should be at the open of each bar/candle. The problem is that this indicator slows metatrader down a lot sometimes to the point of freezing the program. Is someone willing to look at the code to see if there any errors that might be causing the indicator to be so demanding? It is a very useful indicator for trading.

expected_volumes_1.mq4