View Single Post
  #1 (permalink)  
Old 03-06-2006, 12:55 PM
mwriter's Avatar
mwriter mwriter is offline
Junior Member
 
Join Date: Feb 2006
Posts: 3
mwriter is on a distinguished road
Question trend line help

Hi guys,

I'm really new to coding/scripting in general so i'm going to have lots of noob questions *bear with me please!*

in any case. I was trying to create a simple "indicator". I was trying to write an expert advisor to identify trend line points (you need two points for trend lines)

pls correct me if i'm wrong here:

1. if say i wanted to two highest highs from the last 100 bars. do i assign all the highs from 100 bars and do a sort on the array values?

2. is it possible to keep drawing trend lines from the 2 highest highs (for example). bearing in mind i'm trying to keep only one trend line on the main window at all times. meaning i have to delete the old one. also that means i have to draw a trend line by defining to variables as the 2 defined coordinates, is that even possible?

i will appreciate any help at all on that matter because i've only just picked up mql a couple of weeks ago. so i'm quite sure everyone else is more experienced than me haha.

thanks in advance everyone.

Regards,
Joseph aka Mr. Writer
Reply With Quote