Profit on drop script calculation

 

Hello guys.

I have found a very interesting script to calculate the net profit of open trades dropping the script on charts.

But the script is just working on some crosses while in others it misses completely the right calculation or in some others even does not work.

I tried it on my ECN broker with suffix (like EURUSDe).

Unfortunately my skills in coding are very basic and I do not know how to modify correctly the script to make it working again.

I tried to contact the coder of the script, but it seems he is not reachable anymore.

Is there someone among you able to fix the code?

Thank you in advance.

Files:
 

I would like that too

Reason: