Blocks 3.0 offers the zig-zag swing indicator but doesn't allow you to look into the code. I was interested in this because I'm trying to reproduce Jan Arp's Trender.
What I did was to translate a piece of EasyCode into VB.net from "New Trading System and Methods".
First thing to do is to create a new code block. Then, insert the Kswing code (found at the bottom of the page).