This is an updated version of the FRASMA, earlier discussed. The original logic of it is left untouched, I merely updated it to take into account the calculation of the fractal dimension after the corrections I made in FGDI. Also, following a request from a reader, I added a parameter "shift" who simply translates the FRASMA either to the right (when "shift" is a positive integer) or to the left (when "shift" is a negative integer).
Here is how the FRASMAv2 with a shift set to 10 looks like:
The script for metatrader of FRASMAv2 can be found here.