Hiya, I gave the script a try on an open Oanda demo market and it seemed to work fine. Note I had to click the 'Auto Off' button and turn it to 'Auto On' to get trades happening. In your screen shot it shows as 'Auto Off'. The trades showed up in my demo Oanda. I also clicked the 'Buy Long' button and this did as expected and opened a new trade. Buy Short closed it. J