Profit on drop fix for JPY pairs

 

Hello guys,

can somebody with coding knowledge fix this SCRIPT "ProfitOnDrop" to fix calculation when trading with JPY currency. It seem that the calculation is OK but not when using it with JPY pairs.

This is very useful script which you can use anywhere oin chart if you have 2 or more open positions. You can see instantly anywhere on chart value of profit/lost anywhere eon chart.

Thanks in advance.

Files:
Reason: