I am trying to plot a horizontal trend line in the center of a
price chart thru AFL code and after it is plotted on price chart I can
select it and move it around the chart. I realize I can uses the
horizontal trend line drawing tool to create the above but I want to
be able to create it using code.
Also I would like to be able to control the length and position.
Here is what I got so far but it won’t
do what I want it to do. All it does is put a horizontal line
across my chart which I can’t move. I understand why it can’t move,
because of the “665” but I don’t know what to
do about it .Don’t laugh it took me and 1 ½ hours to create it.
Plot(665, "Line", colorRed,
styleLine,0, 0, 0);
Thanks,
Bruce