View Single Post
  #6 (permalink)  
Old 09-29-2006, 07:16 AM
raff1410's Avatar
raff1410 raff1410 is offline
Senior Member
 
Join Date: May 2006
Location: 24°10' E 54°24' N
Posts: 201
raff1410 is on a distinguished road
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.
Attached Files
File Type: mq4 TrendLines.mq4 (5.3 KB, 356 views)
__________________
http://www.gummy-stuff.org/raff-regression.htm

http://www.try-your-luck.com/

Lost in action ;-)... just_raff1410[at]yahoo.com

Last edited by raff1410; 09-29-2006 at 03:28 PM.
Reply With Quote