Ability to create rectangles in EasyLanguage?

Questions about MultiCharts and user contributed studies.
jek
Posts: 181
Joined: 24 Dec 2006
Has thanked: 1 time
Been thanked: 2 times

Ability to create rectangles in EasyLanguage?

Postby jek » 25 Nov 2009

Is there any programmatic way to create rectangles?
Any plans to allow it?

What about other drawing tools?

Thanks!

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 25 Nov 2009

Tutorial 29 - How to draw an adjustable rectangle or box using EasyLanguage

http://www.markplex.com/tutorial29-draw ... tation.php

http://www.youtube.com/watch?v=5VDXPcGa1cs

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 29 Nov 2009


jek
Posts: 181
Joined: 24 Dec 2006
Has thanked: 1 time
Been thanked: 2 times

Postby jek » 04 Dec 2009

Just getting around to saying thank you for the pointers.

I hadn't thought of drawing it with lines!

I'm still curious what TS plans might be to add other objects to EasyLanguage.

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Postby ABC » 04 Dec 2009

jek,

you can do rectangles quite nicely with:

Code: Select all

TxtID = Text_New_S(Date, Time_S, Open, " ");
Text_SetBorder(TxtID, true);
if you want a colored rectangle you can use:

Code: Select all

Text_SetBGColor(TxtID, blue)
for example.

The size of the rectangle can be changed via the string containing just spaces and Text_SetSize of course.

Regards,

ABC

janus
Posts: 835
Joined: 25 May 2009
Has thanked: 63 times
Been thanked: 104 times

Re: Ability to create rectangles in EasyLanguage?

Postby janus » 09 Apr 2010

We need to have a rectangle drawing feature. Any time soon? At the moment I'm using line segments but that's resource hungry. A rectangle drawing feature would also reduce the amount of code substantially.

For completeness we should also have them for ellipse and arc, although I have no need of them now.


Return to “MultiCharts”