PureBytes Links
Trading Reference Links
|
Ken, you can't do it easily ... if your series is less than first visible bar, then the program has no data to adjust its scale with ...
You might consider plotting a couple of lines at the maximum and minimum values of your series and the "overlay" your series on top
Example:
xo = firstvisiblebarindex;
y1 = maxvalueofseries;
x1 = lastbarindex;
y2 = y1;
Line = LineArray(x0,y0,x1,y1,0,1);
Plot(Line,"",...
repeat for min value of series
then Plot series. You may still have to set your selected symbol to someting standard.
Have not tried it ... but just an idea
----- Original Message -----
From: Ken Close
To: amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, February 07, 2007 5:20 PM
Subject: FW: [amibroker] Plotting when early bars are Empty
Any help on this? Surely someone has run into this and solved it. Any hints? Any code to share?
Thanks,
Ken
------------------------------------------------------------------------------
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ken Close
Sent: Wednesday, February 07, 2007 10:12 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Plotting when early bars are Empty
I want to plot a series which begins at a recent day in the past.
If the bars visible on the screen is less than the total length of the series, I can see my plot with a simple
Plot(series,"title",1,1);
If I scroll to the left or zoom out, the plot disappears.
So, I want something that allows the Plot to remain on the screen if the first visible bar is earlier than the start of the series.
Plot(IIF(IsEmpty(Series),-1e10,Series),"title",1,1);
does not work nor do any variations I have tried.
Can someone please suggest how to make this happen.
Thanks for your suggestion.
Ken
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 3:33 PM
|