Forum

How to simulate mouse click over "One Click Trading" buy and sell button on mt5 chart?

I have a very special situation in which I am not able to send buy and sell orders using mql5 because auto trading is disabled on my broker server from their side and it is not possible to ask them to enable it. I was wondering if there is any possible solution that I could write a code that on

how to get the value of iMACD for a given bar in mql5?

Hi I searched for a simple way to calc the macd (iMACD) for the last bar (or for a given bar number) but couldn't find a clear solution for that. The documentation got me confused. Can someone show me one simple example please? thanks