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?
printf("Value of iMACD index = %f",MACD);