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, 01:36 PM   #17
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)

You are right

I must give more informations if I want to be understood

I hope that this graph is clear enough

The lookback period is usefull to clean the graph from pollution of all the H/L of the data range

Let say on my graph that I estimated that the -4 day is an important top

It could be also the -10 day ( the yellow arrow )

or any lookback (may be maxi 50 days ?)

The Blue/red color for H/L is a way to immediatly see the confluences of the H/L
Attached Thumbnails
Trendline (EasyLanguage)-untitled-1.jpg  
aaa is offline  
Reply With Quote
Old 05-03-2009, 02:01 PM   #18

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 »
You are right

I must give more informations if I want to be understood

I hope that this graph is clear enough

The lookback period is usefull to clean the graph from pollution of all the H/L of the data range

Let say on my graph that I estimated that the -4 day is an important top

my last code should do this trick.
all you need to do is to copy my codes in lookback=3 to lookback=4.



Quote:
It could be also the -10 day ( the yellow arrow )

or any lookback (may be maxi 50 days ?)

The Blue/red color for H/L is a way to immediatly see the confluences of the H/L

if you need addition lookbacks, simply use my original code here:
http://www.traderslaboratory.com/for...html#post63601

this code is for ONE lookback only.
simply apply this indicator to the chart with the lookback at 10,
then you will have the HL lines from 10 days ago.

if you also need to lookback at day 50,
then apply the indicator AGAIN... with lookback at 50.

QED !
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, 02:53 PM   #19

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)

additional notes:

if you want to plot current day's high low...
this requires a different routine.

because past day's HL are static,
all you need is to find the HL once and plot the lines.

Current day's HL is a moving target.
Your codes needs to detect and compare current bar's HL
to see if it has made a new HL, then plot the HL lines accordingly.
... and this has to be done for every bar and after every tick.


You can see an example here:
http://www.traderslaboratory.com/for...-low-5630.html
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, 03:43 PM   #20
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)

QED

What does it means ?
aaa is offline  
Reply With Quote
Old 05-03-2009, 04:15 PM   #21

HAL9000's Avatar

Join Date: Feb 2008
Location: There is no place like home!
Posts: 241
Ignore this user

Thanks: 230
Thanked 154 Times in 83 Posts

Re: Trendline (EasyLanguage)

Quod erat demonstrandum!

If I remember right.

It means something like:

"What had to be shown"
(sorry for my English, I guess I could it better explain in my mother tongue).
It is usually used, behind a successful finished proof.

Hal
HAL9000 is offline  
Reply With Quote
The Following User Says Thank You to HAL9000 For This Useful Post:
Tams (10-06-2010)
Old 05-03-2009, 04:38 PM   #22
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)

Of course

QED or CQFD
which was to be demonstrated

English is not my mother tongue too
aaa is offline  
Reply With Quote
Old 05-08-2009, 04:23 AM   #23
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 one of the 3 indicators wich slowed down MC

// The code slows dramatically MC when resizing the scale with the mouse in 1 mn untill it freezezes all the screen during 10 seconds


Code:
// HL bar (MC)
// version: beta 0.3
// author: TAMS
// date: 20090426
// license: public use
// description: this indicator draws a trendline 
// at the highest high and lowest low of X days back
// 
// 20090503: modified by aaa for multi-days lookback
// 20090503: TAMS: added different colors for each day
// 20090503: TAMS: added tl extension for lookback=3
// 20090505: aaa:  removed 
//			multi-days lookback  
//			different colors for each day 
//		     added 
//			StartDate
//			tl_setextright (Sneo suggestion)
// The code slows dramatically MC when resizing the scale with the mouse in 1 mn untill it freezezes all the screen during 10 seconds

input:
StartDate(	1090426),
Line.size (	1 	),
Line.style (	2	),
Color.high(	blue	),
Color.low(	red	);

If date this bar >= StartDate then 
begin

	if date <> date[1] then begin
		value1 = tl_new_s(d , time_s , highd(1) , d , time_s , highd(1) );	
		value2 = tl_new_s(d , time_s , lowd( 1) , d , time_s , lowd(1)  );

		tl_setcolor( value1, Color.high );
		TL_SetSize(  value1, Line.size  );
		TL_SetStyle( value1, Line.style );		
	
		tl_setcolor( value2, Color.low  );
		TL_SetSize(  value2, Line.size  );
		TL_SetStyle( value2, Line.style );		
	end;
		tl_setextright(value1, true);
		tl_setextright(value2, true);
end;
aaa is offline  
Reply With Quote
Old 05-08-2009, 04:56 AM   #24
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)

Suggestion for working with zero problems


MC has a very good C++ multiprocessoring engines

Actual powered quad CPU + GPU can draw millions of lines in a fraction of a seconds

2 Mo memory is enough... 4 Mo is better and cheap (instead 3,xx Mo is available for programms and 1,xx Mo reseved to the system )

I suggest a C: ghost each week ( C = windows D = your programm )

The system will be clean without virus and You will always have the best of windows performance and security

And

Backup
Backup
Backup


oftently your datas on multiple supports
aaa 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 12:12 PM.
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
2006-2011 Traders Laboratory, All Rights Reserved.