One more way...
// Previous Day's close, Low and High
Show_Prev = ParamToggle( "Display Prev HLC", "No|Yes", 1 );
// Get Previous Day's close, Low and High
Prev_Close = TimeFrameGetPrice( "C", inDaily, -1, expandFirst ) ;
Prev_Low = TimeFrameGetPrice( "L", inDaily, -1, expandFirst ) ;
Prev_High = TimeFrameGetPrice( "H", inDaily, -1,expandFirst ) ;
Today = LastValue( Day() );
if ( Show_Prev )
{
Plot( IIf( Today == Day(), Prev_Close, Null ), "Prev Close",
ParamColor( "Prev. Close", colorWhite ), styleDashed );
Plot( IIf( Today == Day(), Prev_Low, Null ), "Prev Low",
ParamColor( "Prev Low", colorLavender ), styleDashed );
Plot( IIf( Today == Day(), Prev_High, Null ), "Prev High",
ParamColor( "Prev High", colorAqua ), styleDashed );
}
Le 01/08/2010 08:11, Inquisitive Voyager a écrit :
[Attachment(s) <#TopText> from Inquisitive Voyager included below]
see it it helps!
find the attachment
On Sun, Aug 1, 2010 at 8:17 AM, ram vel <[email protected]
<mailto:[email protected]>> wrote:
Hi reinsley
On an intraday chart 15min tf, can we plot previous days close?
can your code line be modified to show
previous days close, and todays latest close as lines on chart,please
thanks
rv
--- On *Fri, 7/30/10, reinsley /<[email protected]
<mailto:[email protected]>>/* wrote:
From: reinsley <[email protected] <mailto:[email protected]>>
Subject: Re: [amibroker] additionnal centered underscore PlotShape
To: [email protected] <mailto:[email protected]>
Date: Friday, July 30, 2010, 9:34 AM
Stupid question...the simple way.
|Plot( LastValue( *C* ), "", |colorWhite |, *styleLine* ,
*Null*, *Null*, *Null*, 2 );|
Shame on me !
Le 29/07/2010 11:19, Reinsley a écrit :
Hi,
I plot an horizontal line on the close that way.
PlotShapes( shapeHollowSmallCir cle, colorWhite , layer = 0,
yposition = LastValue(C) , offset = 0 );
Does it exist some hidden shapes not documented ?
Or personnal additionnal shapes such as :
tiret, centered underscore, left triangle, right triangle...
In the above example, a centered underscore (centered in Y
axis) could draw what I wish , a plain line.
Or a trick to display the line...
TIA
Best regards