Calculation of .diff() ?

 

Is there's an mql5 function for calculation of diffs (python's .diff() function) or percentage change?

diff is the difference bt last close and current close. It bounces up and down around 0. 

I couldn't find it in the documentation...

 
Vlady217:

Is there's an mql5 function for calculation of diffs (python's .diff() function) or percentage change?

diff is the difference bt last close and current close. It bounces up and down around 0. 

I couldn't find it in the documentation...

If you can't find the function, then you have to create it yourself.

 
Vlady217:

Is there's an mql5 function for calculation of diffs (python's .diff() function) or percentage change?

diff is the difference bt last close and current close. It bounces up and down around 0. 

I couldn't find it in the documentation...


Look for a 'Rate Of Change' indicator.   That indicates a percentage change by dividing a difference by the close price.