Trying to code an indicator that detects GAP - 5 pips gaps - But cannot solve the problem of JPY crosses 2 decimal and Non Jpy crosses 4 decimals - 0.0005 - page 2

 

If you can handle it, you should try to use the snippet that WHRoeder provided. If you don't use that or something similar, you won't get the 5 pips you expect, you'll get 0.5 pips.

 

here is the gap indicator i use.


it could do with some cosmetic mods as the arrows are messy.


specifically if a box were drawn inside the gap instead of arrows and maybe an alert.

Files:
Reason: