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

Re: [amibroker] Re: High & Low for the first 30 & 60mts for Each Day



PureBytes Links

Trading Reference Links

This wasn't a complete answer, as I just put simple approach for help

To have the highest value before a time during the day it would need
to be a bit more developed to something like this. This code is not
perfect, just a  starting point


High30 = ValueWhen( Cross( TimeNum(), 102959 ), HighestSince(
Cross(TimeNum(), 100000 ), H ));
TimeH30 = ValueWhen ( H==high30, DateTime() );
Plot(C,"close",colorBlack,styleBar);
Plot( IIf( DateNum()==LastValue(DateNum()) AND TimeNum()>102959,
High30, Null ), EncodeColor(colorBlack)+"time of high = " +
WriteVal(timeh30,formatDateTime) + " 30high" , colorRed, styleLine );


On Thu, 07 Oct 2004 22:09:37 -0000, firehorse888uk
<firehorse888uk@xxxxxxxxxxx> wrote:
> 
> 
> Hi,
> 
> Sorry to be a pest. Had a second look at the line drawn.
> The code locates the high at the time of 102959 and on a 15min chart
> misses the highs before 102959.
> Could you upgrade the code so that it show the high between a start
> time and 102959.
> 
> Many thanks.
> Alan
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, kaveman perth <kavemanperth@xxxx> wrote:
> > Sorry made a small mistake in the variable name, i also changed a bit
> > to make it work better
> >
> > High30 = ValueWhen( Cross( TimeNum(), 102959 ), H );
> > Plot(C,"close",colorBlack,styleBar);
> > Plot( IIf( DateNum()==LastValue(DateNum()) AND TimeNum()>102959,
> > High30, Null ), "30high", colorRed, styleLine );
> >
> >
> > On Thu, 07 Oct 2004 12:57:22 -0000, gacsekar <gacsekar@xxxx> wrote:
> > >
> > >
> > > Hi,
> > > Thanks for the prompt response.  When I run the indicator I get the
> > > following error message.
> > >
> > > <<. Line 1, Column 6:
> > > 30High
> > > ----^
> > > Error 23.
> > > Syntax error >>
> > >
> > > I will be thankful if you could write the complete code for both Hi &
> > > Lo for the first 30mts.  I am using Amibroker 4.6.
> > >
> > > Thanks
> > >
> > > G.A.Chanrasekaran
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, kaveman perth <kavemanperth@xxxx>
> > > wrote:
> > > > You can use valuewhen and cross to get your values. Here is an
> > > example
> > > > for plotting the current days value
> > > >
> > > > 30high = valuewhen( cross( timenum(), 102959 ), H );
> > > > plot( iff( datenum()==now(3) and timenum()>102959, 30high, null ),
> > > > "30high", colorred, styleline );
> > > >
> > > > On Thu, 07 Oct 2004 11:04:37 -0000, gacsekar <gacsekar@xxxx> wrote:
> > > > >
> > > > >
> > > > > Hi to all,
> > > > >
> > > > > I am day-trading Indian markets with 5mts chart, using Amibroker
> > > 4.6
> > > > > The trading opens @9:55 am & closes @3:30pm.
> > > > >
> > > > > I want to draw a horizontal line for the High & Low for the first
> > > 30
> > > > > & 60mts, for each day, (The ending period could be @ 10:25 to
> > > > > 1030am / 10:55 to 11:00am).  I hope my requirement is clear.
> > > > > Thanks in advance.
> > > > >
> > > > > G.A.Chandrasekaran
> > > > >
> > > > >
> > > > > Check AmiBroker web page at:
> > > > > http://www.amibroker.com/
> > > > >
> > > > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > > > Yahoo! Groups Links
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Cheers
> > > > Graham
> > > > http://e-wire.net.au/~eb_kavan/
> > >
> > >
> > > 
> > > Check AmiBroker web page at:
> 
> 
> > > http://www.amibroker.com/
> > >
> > > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/