Hi, I figure I am missing something simple here.
I have an EFS that when I double click on a particular price point on a chart, the price and bars are recorded. Then when I hit a button that is on the chart it writes these price levels to a text file. At the same time, the EFS removes and then draws a unique line at that price level. This all works perfectly......see part of the EFS below.
function BuyOn(){
Action="Buys";
linename="buyline";
removeLine(120)
drawLineRelative( -30, yy, -1, yy, PS_SOLID, 2, Color.blue, 120 );
writetoFile(yy);
}
However, if I load up another chart, and then go back to this first chart, the lines that were drawn no longer show.
When I manually draw a line it stays with the chart, but any lines using using drawlinerelative do not.
How do I get them to hold? Is this possible?
(or do I need to re-read from the text file each time the particular stock is loaded and redraw a line?)
thanks.
I have an EFS that when I double click on a particular price point on a chart, the price and bars are recorded. Then when I hit a button that is on the chart it writes these price levels to a text file. At the same time, the EFS removes and then draws a unique line at that price level. This all works perfectly......see part of the EFS below.
function BuyOn(){
Action="Buys";
linename="buyline";
removeLine(120)
drawLineRelative( -30, yy, -1, yy, PS_SOLID, 2, Color.blue, 120 );
writetoFile(yy);
}
However, if I load up another chart, and then go back to this first chart, the lines that were drawn no longer show.
When I manually draw a line it stays with the chart, but any lines using using drawlinerelative do not.
How do I get them to hold? Is this possible?
(or do I need to re-read from the text file each time the particular stock is loaded and redraw a line?)
thanks.
Comment