I'm trying to create an indicator that uses zigzag as it's base and adds some extra features on top of that. but the zigzag lines don't show up correctly. here's my code: //+------------------------------------------------------------------+ //|