Function not following rules | Forex Factory