Welcome to the Traders Laboratory.

Coding Forum Collaborate, receive help, or discuss indicators and other coding-related topics

Like Tree1Likes
Reply
Old 05-03-2009, 10:57 AM   #9

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 626
Ignore this user

Thanks: 431
Thanked 576 Times in 231 Posts

Re: Trendline (EasyLanguage)

Always wondered how it was done. Thanks for the great writeup Tams!
daedalus is offline  
Reply With Quote
Old 05-03-2009, 10:58 AM   #10

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Trendline (EasyLanguage)

Quote:
Originally Posted by aaa »
It's good to have friends all over the world
The idea is simple and works like classicals pivots
The goal is to have High Blue and low Red in a solid color
And to extend in Dotted lines to the right during xDays
The circles shows interesting S/R on the 15 mn graph
They are a lot of pullback in 1 mn on these support

ok, simple enough...

sneo suggested the correct keyword -- TL_SetExtRight( id.tl, True);


here's the trick:
you only want to extend the lines on current day.
you don't want previous day's lines to clutter up your chart:

if lastbaronchart then begin
tl_setextright(value1, true);
... and so on

Last edited by Tams; 05-03-2009 at 11:07 AM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-03-2009)
Old 05-03-2009, 11:02 AM   #11

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Trendline (EasyLanguage)

I have done it for Lookback = 3,
you can copy it to other sections.

enjoy!



edit: updated attachment
Attached Files
File Type: txt lookback3.txt (5.7 KB, 241 views)

Last edited by Tams; 05-03-2009 at 11:21 AM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-03-2009)
Old 05-03-2009, 11:12 AM   #12
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 466
Ignore this user

Thanks: 243
Thanked 354 Times in 151 Posts

Re: Trendline (EasyLanguage)

Here is a 1 mn charts
Attached Thumbnails
Trendline (EasyLanguage)-untitled-1.jpg  
aaa is offline  
Reply With Quote
Old 05-03-2009, 11:26 AM   #13
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 466
Ignore this user

Thanks: 243
Thanked 354 Times in 151 Posts

Re: Trendline (EasyLanguage)

I don't see any changes...

I'm not a fan of multi colored lines too

Blue for High and red for low

I'm not complaining guys !!!

Your help is a gift

I think that my way is not the good way to do what I "want"

The code is too heavy because if I want to have 50 days back...

2 millions exponentials codes lines may be ?

Also it's better to have the beginning of the line with the real first day in a solid line to better interpretation and the choose of, let's say, 50 days of Xtended dotted lines on the right

My 15 mn charts is exactly my goal

50 ThanX anyway, I really do appreciate your help.
aaa is offline  
Reply With Quote
Old 05-03-2009, 11:30 AM   #14

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Trendline (EasyLanguage)

Quote:
Originally Posted by aaa »
I don't see any changes...
...

you better write some lines/arrows/notes on your chart.

;-)

Last edited by Tams; 05-03-2009 at 11:41 AM.
Tams is offline  
Reply With Quote
Old 05-03-2009, 11:37 AM   #15

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Trendline (EasyLanguage)

Quote:
Originally Posted by aaa »
I don't see any changes...


I have only done it for Lookback=3.

here's how my chart looks.


Attached Thumbnails
Trendline (EasyLanguage)-lookback3.gif  
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-03-2009)
Old 05-03-2009, 11:39 AM   #16

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 4,052
Ignore this user

Thanks: 2,275
Thanked 1,663 Times in 1,010 Posts

Re: Trendline (EasyLanguage)

Quote:
Originally Posted by aaa »
...
I'm not a fan of multi colored lines too
...

you can set the color to anything you like when you are trading,
but when you are programming, you have to see which line is which.
Tams is offline  
Reply With Quote

Reply

Tags
trendline

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easylanguage Auto Trendline Study raven4ns Technical Analysis 3 03-30-2009 04:50 PM
GBP/USD Trendline Breakout DannyBly Forex Trading Laboratory 3 07-06-2008 09:13 AM
Trendline methods waveslider Technical Analysis 0 06-26-2007 09:13 PM
Russell 2000 (IWM) Trendline Test MrPaul Technical Analysis 0 03-25-2007 12:53 PM
The Downsloping Trendline On The YM Bfbusa Technical Analysis 0 02-06-2007 11:54 PM

All times are GMT -4. The time now is 09:56 PM.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
2006-2011 Traders Laboratory, All Rights Reserved.