Hi... automatic trend lines indicator...
Raff
Quote:
|
Originally Posted by Linuxser
Raff:
Do you have some code that I can use to:
Over a period x bars
Calculate the 1 highest high
Calculate the 2 highest high
Calculate and 1 lowest low
Calculate and 2 lowest low
But without a MA.
I´m searching to code a simple indicator that plots trendlines.
I know how to make a code to draw a trendline between 2 points. (object_create and object_move). But I need to know howto obtain the value of the high an low. Then I will use the data to fill the draw points.
I´d make some experimets with the zigzag indicator and the mod from coderguru but without succes.
Thanks.
|