OrderLimit is a global variable and not an argument for enterLong/short. Just set OrderLimit before you call enterLong.