Text on a trend line

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Text on a trend line

Postby arjfca » 22 Mar 2012

Hello

A dummy question, but i just don't found it

What is the function to set a string ( text) on the left of a trend line that I created via code.
Martin

User avatar
TIKITRADER
Posts: 84
Joined: 17 Jun 2009
Location: USA
Has thanked: 55 times
Been thanked: 13 times

Re: Text on a trend line

Postby TIKITRADER » 22 Mar 2012

maybe something here can be useful


http://markplex.com/free-tutorials/tuto ... ms-part-2/


Thanks to TJ for pointing out markplex site


Image

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Text on a trend line

Postby arjfca » 22 Mar 2012

maybe something here can be useful


http://markplex.com/free-tutorials/tuto ... ms-part-2/


Thanks to TJ for pointing out markplex site


Image
I will check that

Martin :)

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Text on a trend line

Postby arjfca » 22 Mar 2012

Question:
As mention in the video we need to set in the code:
Using elsystem;

Do we have access to ELSystem?

I have not found any reference in MC

Martin

bowlesj3
Posts: 2180
Joined: 21 Jul 2007
Has thanked: 227 times
Been thanked: 429 times

Re: Text on a trend line

Postby bowlesj3 » 22 Mar 2012

A bit of work but you could write a function.

value1 = funcTextOnTL(TL_ID, then put your details).

It would get the coordinates, figure out the change per bar of the line, and do whatever you want internally using whatever logic you wanted. Maybe a dynamic array of text could be submitted along with positions for the text (also dynamic).

You could have several of these functions for various purposes (maybe text of values or maybe text of whatever you put out there in the array). Maybe the text would be in the extended portions or within the coordinates.

I think it is all very doable. It is not the smallest job in the world but I don't think the amount of work is huge. If you do a few of them the first would make the rest much easier.


Return to “MultiCharts”