
Edit: also attaching the original indicator for comparison purposes if anybody wants to have a go at some other indicator
@Kvak
Although the BT does work, I would be obliged if you could take a look at the code so to verify that everything is in order.
If something needs fixing please post back with amendments so I can learn further.
Thanking you in advance.