I need code. I want to buy a long position when the conditions are met and the price rises 0.5%. I understand that “at limit” is used, but I can’t.