I placed these two lines at the end of your script and created the alerts but they fail to trigger, am I missing something?
alertcondition(Buy, title='Alert on Buy', message='Buy!')
alertcondition(Sell, title='Alert on Sell', message='Sell!')
@desman91, I was wondering the same thing, so I watched a 1 minute chart to get a feel for the system. It looks to me like the signal is generated at the open of the next bar, and does not change after that until the next signal. So I guess there could be a gap between the close of the signal bar and the open of the confirming bar, but otherwise system looks good to me. Hope that helps.