Forum

indicator is too slow, 3016 ms. rewrite the indicator, please.

I need an EA that can track multiple symbols' prices (around 10) , and open/close positions when certain prices meet certain conditions. I know that if the EA is attached to one symbol, then the OnTick() function will notify the EA when the bid/ask price of the symbol changes. I basically need the

Undeleted objects left, leaked memory!

Hi I'm new to MQL. I have an EA, and after it stops, I see the following in the Experts tab: "9 undeleted objects left 9 objects of type CDynamicArray left 5760 bytes of leaked memory" I have done some research and looked at similar posts. I know that I have to de-allocate the memory every time I

Is there any way to count number of milliseconds passed since a position has been opened?

I want to be able to see how many milliseconds have passed since a particular position has been opened. If I do PositionGetInteger ( POSITION_TIME ) The returned datetime value does not appear to have millisecond precision, even though I can see the open time for that position down to milliseconds