Script read a manual trendline??

Questions about MultiCharts and user contributed studies.
maxpi
Posts: 58
Joined: 03 Jun 2007

Script read a manual trendline??

Postby maxpi » 03 Oct 2007

Is there a way for an indicator script to read the parameters of manually drawn line objects?? It would be great to be able to "talk" to a script by drawing objects on the chart.

Max

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 04 Oct 2007

Hi Max,

Try the code below (it will plot the indicator of the same color as the one you have already applied):

---
value1 = TL_GetFirst(7);
if value1>= 0 then
begin

value2 = tl_getcolor(value1);
Plot1(1, "Plot same color as First TL adder by User", value2);

end;

---

For more info please refer to the EasyLanguage guidelines: https://www.TS.com/support/bo ... tarted.pdf and https://www.TS.com/support/bo ... _Guide.pdf


Return to “MultiCharts”