Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
TL_Rectangle (EasyLanguage Function) Details »»
TL_Rectangle (EasyLanguage Function)
Platform: EasyLanguage, by Tams Tams is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: MultiCharts Rating:
Released: 11-25-2009 Last Update: Never Installs: 3
Re-useable Code Translations Is in Beta Stage  
No support by the author.

TL_Rectangle
(EasyLanguage Function)


Description:

This function draws a rectangle on the chart

2 points are required to draw the rectangle:
the top left corner and the bottom right corner

TL_Rectangle requires 8 input variables
the top left corner date, time and price
the bottom right corner date, time and price
as well as the color and thickness of the lines

TL_Rectangle requires the dates in EasyLanguage format





A demonstration indicator is attached below


Note:
This EasyLanguage indicator was written in MultiCharts.
I have not tested it in other compatible programs.
Please refer to your users manual for importation instructions.

Download Now

File Type: txt TL_Rectangle (function).txt (1.7 KB, 72 views)
File Type: txt Rectangle (indicator).txt (1.1 KB, 68 views)
File Type: pla Rectangle (MultiCharts).pla (9.2 KB, 55 views)

Screenshots

TL_Rectangle (EasyLanguage Function)-rectangle.png  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.
The Following 5 Users Say Thank You to Tams For This Useful Post:
aaa (11-28-2009), MKTr (11-29-2009), shrike (11-27-2009), TIKITRADER (12-02-2009), Tradewinds (10-03-2011)

Comments
Old 11-28-2009, 07:21 AM   #2
aaa

aaa's Avatar

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

Thanks: 240
Thanked 283 Times in 136 Posts

Re: TL_Rectangle (EasyLanguage Function)

as always... Very good job from our TAMS

A few lines of code 4 a simple idea

This indicator could B a new tool 2 Xperiment ideas

Why not higligt a trading range with it ?

Or a gap untill it is closed ?

Or 2 Xtrems ?

Or put variables on

Bot.Right.Date(20091125),
Bot.Right.Time(1400),
Bot.Right.Price(1105),

Or ... ?
Or ... ?
Or ... ?
Or ... ?
Or ... ?

Last edited by aaa; 11-28-2009 at 07:27 AM.
aaa is offline  
Reply With Quote
Old 11-28-2009, 09:17 AM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: TL_Rectangle (EasyLanguage Function)

Quote:
Originally Posted by aaa »
...
Why not higligt a trading range with it ?
Or a gap untill it is closed ?
Or 2 Xtrems ?
Or put variables on

Bot.Right.Date(20091125),
Bot.Right.Time(1400),
Bot.Right.Price(1105),

Or ... ?
Or ... ?
Or ... ?
Or ... ?
Or ... ?

EXACTLY !!!

What I have created is the FUNCTION
The indicator is for demonstration only.

When writing your own indicator... you can put any variables you like for the rectangle coordinates.

The rectangle size and position can change with every tick and every bar as the market unfolds.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
DugDug (11-30-2009)
Old 12-02-2009, 04:20 PM   #4

Join Date: Dec 2006
Location: new york
Posts: 31
Ignore this user

Thanks: 1
Thanked 13 Times in 8 Posts

Re: TL_Rectangle (EasyLanguage Function)

Hi Tams,

if a specific condition is met, i want to delete the rectangle. Does somebody has an easy solutiion where to put in the 4 tl_delete. Into the function before if value1 = 0 then or into the main code?
insideday is offline  
Reply With Quote
Old 12-02-2009, 05:27 PM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: TL_Rectangle (EasyLanguage Function)

you have to use TL_get... to find the lines before you can delete.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 12-02-2009, 06:04 PM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: TL_Rectangle (EasyLanguage Function)

Quote:
Originally Posted by insideday »
Hi Tams,

if a specific condition is met, i want to delete the rectangle. Does somebody has an easy solutiion where to put in the 4 tl_delete. Into the function before if value1 = 0 then or into the main code?

you can modify the function to pass the IDs:

id.tl.top(-1),
id.tl.bot(-1),
id.tl.left(-1),
id.tl.right(-1);
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following 2 Users Say Thank You to Tams For This Useful Post:
aaa (12-05-2009), TIKITRADER (12-02-2009)
Old 12-05-2009, 07:10 AM   #7
aaa

aaa's Avatar

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

Thanks: 240
Thanked 283 Times in 136 Posts

Re: TL_Rectangle (EasyLanguage Function)

What I have created is the FUNCTION
The indicator is for demonstration only.

TL_Rectangle (EasyLanguage Function)

Oups ! I must wear glasses...
aaa is offline  
Reply With Quote
Old 10-03-2011, 12:27 PM   #8

Join Date: Dec 2010
Posts: 103
Ignore this user

Thanks: 3
Thanked 7 Times in 7 Posts

Re: TL_Rectangle (EasyLanguage Function)

Do you coded also triangle pattern?
bomberone1 is offline  
Reply With Quote

Reply

Tags
rectangle, trendline

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suri.isTradingDay (EasyLanguage Function) suriNotes Trading Indicators 6 10-03-2011 12:35 PM
Iff Function Different Averages andypap Coding Forum 5 08-31-2009 11:40 AM
Help Finding Function kamakazy Coding Forum 1 07-30-2009 11:15 AM
IFF (EasyLanguage Function) Tams Coding Forum 1 05-24-2009 10:08 PM
ADX Easylanguage Code Without Calling a Function Frank Coding Forum 1 02-08-2009 09:39 PM

All times are GMT -4. The time now is 08:32 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.