This code snippet should do the trick, but the kind of oscillator you mention are not climbing straight upward in a continuous line, so this condition will certainly not return anything at all..
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue