I think i'm still not clear on how variables work. To keep it simple I'll ask this question, which might help me with the more complex question I have.
So I want to draw text, an "H" when ZigZag indicator makes a high
this code gives me how many bars ago a High occurred in ZigZag indi
int first_high_barsAgo = ZigZag(DeviationType.Points, 0.0002, true).HighBar(0, 1, 999);
if (first_high_barsAgo > -1) { Draw.Text(this, @"v3 Text_1", @"H", first_high_barsAgo, High[first_high_barsAgo]); }
Thanks
Mehm
Comment