longCondition = ta.change(Result) != 0 and Result > 0 shortCondition = ta.change(Result) != 0 and Result < 0 if longCondition strategy.entry('Buy', strategy.long, alert_message = OpenLONGCode) else if shortCondition strategy.close('Short', 'Close', alert_message = CloseSHORTCode, immediately = true)...