You can create a new empty project and use one only condition block on it. That condition block can be configured as you want and then donwloaded as an mq4 file and open via the mql editor on your MT4. Theer you will see the code you're looking for.