I see many bugs. The "Script" lines make no sense and why do you call advise twice with the same signals? Also variables with the same name are defined multiple times, that is probably not intended.

There is a deepnet example, start from there and then add your own signals.