Home/Dovee/Function referencelong onlyIgnore shorts. sell becomes an exit.Reference/Language/Languagelong onlyPut near the top of the script. Opposite of short only.Return value—Examplestrategy "Longs" long only when ema(9) crosses above ema(21) buy when ema(9) crosses below ema(21) sellSee alsostrategywhenthenelsebuysellexitshort only← exitshort only →
Reference/Language/Languagelong onlyPut near the top of the script. Opposite of short only.Return value—Examplestrategy "Longs" long only when ema(9) crosses above ema(21) buy when ema(9) crosses below ema(21) sellSee alsostrategywhenthenelsebuysellexitshort only← exitshort only →