[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: plotting 1st 30min H &



PureBytes Links

Trading Reference Links

Setting Timenum() to equal 100000 gave H & L of the 10:00 to 10:30
bar.  So I tried using the time 095959, thinking I had to set the time
check to the end period of the first 30min bar.  That didn't work at
all.  Luckily I tried setting the time check to 093000.  That works
perfectly.  But I sure won't have guessed that the valuewhen() only
looks for the bar start time.



--- In amibroker@xxxxxxxxxxxxxxx, "ymtrader1" <ymtrader1@xxx> wrote:
>
> 
> Thx Mark.
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Mark Jarvis" <mark.jarvis@> wrote:
> >
> > Try this.
> > 
> > ThirtyMinuteHigh = Valuewhen(Timenum() == 100000,H);
> > ThirtyMinuteLow = Valuewhen(Timenum() == 100000,L);
> > 
> > Plot(ThirtyMinuteHigh,"30 Minute High",colorbrightgreen,styleline);
> > Plot(ThirtyMinuteLow,"30 Minute Low",colorred, styleline);
> > 
> > You should be able to adapt this to your specific req's.
> > 
> > Regards,
> > 
> > Mark
> > 
> > On 31/01/07, ymtrader1 <ymtrader1@> wrote:
> > >
> > >   what is the most efficient way to plot the high & low of the first
> > > 30min of trading? I tried using the timenum()function to determine
> > > when 10:00 EST arrived and then timeframegetprice() to get the H
& L,
> > > but the code is not working. Maybe you have a better method.
> > >
> > > Thx,
> > >
> > >  
> > >
> >
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.18/662 - Release Date: 1/31/2007 3:16 PM