View Single Post
  #3 (permalink)  
Old 09-28-2006, 01:34 AM
Linuxser's Avatar
Linuxser Linuxser is online now
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,301
Blog Entries: 46
Linuxser has disabled reputation
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.
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Reply With Quote