scrtrade,
I am not the most efficient coder, so this can probably be written more concisely, but try this. It is written for TS 2000i, so if you are using TS8 you may need to modify it a bit. Also, I used a simple %R signal for the trigger, you will need to replace it with your indicator...