PureBytes Links
Trading Reference Links
|
Tom,
The way I do it is I set the line color to my background color whenever the
line is outside my range of interest. For example, if your background color
is black:
clrBg = colorBlack; // set to your background color
BarTime = TimeNum();
clrYDayH = iif (BarTime < 93000 OR BarTime > 160000, clrBg, colorWhite);
Plot(YDayH,"", clrYDayH,styleDots+styleNoLine+styleNoRescale);
I would be curious to know if there is a better way (like it would be cool
to have a "no color"). Actually I guess another way would be to plot each
day's line as a separate trend line.
Regards,
David
_____
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of nebt1
Sent: 02/17/2007 2:18 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help needed on a simple code:
Hi,
I am running a 24 hour intraday chart and I need to draw Horizontal
line for Yesterday Low and Horizontal line for Yesterday High on
Todays chart. Those lines should refer to Yesterday prices starting
from 9:30 and ending at 16:00.
Here is what I got:
YDayH = TimeFrameGetPrice("H", inDaily, -1); // yesterdays high
YDayL = TimeFrameGetPrice("L", inDaily, -1); // yesterdays low
Plot(YDayH, "",colorWhite,styleDots+styleNoLine+styleNoRescale);
Plot(YDayL, "",colorGold,styleDots+styleNoLine+styleNoRescale);
My problem is that I am getting lines drawn for high and low for 24
hours yesterday data, but I need for 9:30 to 16:00 only.
Please help,
tia, Tom
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.18.1/690 - Release Date: 2/16/2007 2:25 PM
|