There is no straight forward way to do it, but you can try this. - Buy rule that trigger sell - #18 by yuvaltaylor