Greetings again,
Thank you for providing an example of your strategy's logic. Now, please take a look at the following screenshot for how to implement it on Visual JForex:
PS:Just remember that when a strategy is stopped automatically, then it requires to be restarted manually!