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
Script read a manual trendline??
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 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
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