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

Re: [amibroker] To dingo or AB Guru



PureBytes Links

Trading Reference Links

Hello,

I suggest to re-read.

Use positive offset for next day data
 AddColumn(Ref(H, 1),"Hi",1.2);
 AddColumn(Ref(L, 1),"Low",1.2);
 AddColumn(Ref(C, 1),"Close",1.2);

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "mroman59" <mroman59@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, March 23, 2003 9:43 PM
Subject: [amibroker] To dingo or AB Guru


> I have but these do not work. According to AB help files it should.
> I even email support for AB but they never gave a response.
>
> thank you
>
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > Why don't you experiment a little?
> >
> >
> >
> > Like, change the -1 to 0 or 1 or ? and see that the effect is?
> >
> >
> >
> >
> >
> > From the help file:
> >
> >
> >
> >
> >
> > REF
> > - reference past/future values of the array
> >
> > Trading system toolbox
> >
> >
> >
> >
> > SYNTAX
> >
> > ref( ARRAY, period )
> >
> >
> > RETURNS
> >
> > ARRAY
> >
> >
> > FUNCTION
> >
> > References a previous or subsequent element in a ARRAY. A positive
> > period references "n" periods in the future; a negative period
> > references "n" periods ago.
> >
> >
> > EXAMPLE
> >
> > The formula "ref( CLOSE, -14 )" returns the closing price 14
> periods
> > ago. Thus, you could write the 14-day price rate-of-change
> (expressed in
> > points) as "C - ref( C, -14 )." The formula "ref( C, +14 )"
> returns the
> > closing price 12 periods ahead (this means looking up the future)
> >
> >
> > SEE ALSO
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > d
> >
> >
> >
> > -----Original Message-----
> > From: mroman59 [mailto:mroman59@x...]
> > Sent: Sunday, March 23, 2003 3:26 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] To: Brian Elijah or anyone
> >
> >
> >
> > Sorry this is not what I am looking for. The last three lines
> > AddColumn(Ref(H,-1),"Hi",1.2);
> > AddColumn(Ref(L,-1),"Low",1.2);
> > AddColumn(Ref(C,-1),"Close",1.2);
> >
> > are asking for the close of the previous day and I need the close
> > for the future day. The future day is in the database and I am
> > running my exploration on a day prior to the current downloaded
> data.
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Brian Elijah" <cadvantag@xxxx>
> > wrote:
> > > is this what you are looking for
> > >
> > >
> > > //Support & Resistance
> > >
> > > PP=(H+L+C)/3;
> > >
> > > S1=(2*PP)-H;
> > >
> > > R1=(2*PP)-L;
> > >
> > > S2=PP-(H-L);
> > >
> > > R2=PP+(H-L);
> > >
> > > Buy = C>0;
> > >
> > > Filter = Buy;
> > >
> > > AddColumn(Ref(C,-1),"PrevClose",1.2);
> > >
> > > AddColumn(PP,"PP",1.2);
> > >
> > > AddColumn(S1,"S1",1.2);
> > >
> > > AddColumn(S2,"S2",1.2);
> > >
> > > AddColumn(R1,"R1",1.2);
> > >
> > > AddColumn(R2,"R2",1.2);
> > >
> > > AddColumn(Ref(H,-1),"Hi",1.2);
> > >
> > > AddColumn(Ref(L,-1),"Low",1.2);
> > >
> > > AddColumn(Ref(C,-1),"Close",1.2);
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "mroman59" <mroman59@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Wednesday, March 19, 2003 3:41 PM
> > > Subject: [amibroker] AB Guru's - I need help please
> > >
> > >
> > > > According to AB User Guide the following is stated:
> > > >
> > > > The formula "ref( CLOSE, -14 )" returns the closing price 14
> > periods
> > > > ago. Thus, you could write the 14-day price rate-of-change
> > > > (expressed in points) as "C - ref( C, -14 )." The formula "ref
> (
> > C,
> > > > +14 )" returns the closing price 12 periods ahead (this means
> > > > looking up the future).
> > > >
> > > >
> > > > Therefore, I wish to calculate simple resistance & support
> levels
> > > > using the following formula below for a given date and report
> the
> > > > future C, H, L values which should be in the database, so as
> > long as
> > > > the date exploration is run on a day previous to the future
> > value,
> > > > according to User Guide intstruction above. See last three (3)
> > lines
> > > > of the following code. However, AB 4.30 will not allow me to
> > report
> > > > any values for this code.
> > > >
> > > > //Support & Resistance
> > > > PP=(H+L+C)/3;
> > > > S1=(2*PP)-H;
> > > > R1=(2*PP)-L;
> > > > S2=PP-(H-L);
> > > > R2=PP+(H-L);
> > > >
> > > > Buy = C>0;
> > > > Filter = Buy;
> > > > AddColumn(Ref(C,-1),"PrevClose",1.2);
> > > > AddColumn(PP,"PP",1.2);
> > > > AddColumn(S1,"S1",1.2);
> > > > AddColumn(S2,"S2",1.2);
> > > > AddColumn(R1,"R1",1.2);
> > > > AddColumn(R2,"R2",1.2);
> > > > AddColumn(Ref(H,+1),"Hi",1.2);
> > > > AddColumn(Ref(L,+1),"Low",1.2);
> > > > AddColumn(Ref(C,+1),"Close",1.2);
> > > >
> > > > Please Advise.
> > > > Thank You
> > > >
> > > > PS - If anyone has any support and resistance formulas other
> than
> > > > the traditional ones above, taken from stocks and commodities
> > > > magazine, I would appreciate your assistance in this area.
> > > >
> > > >
> > > >
> > > > Send BUG REPORTS to bugs@xxxx
> > > > Send SUGGESTIONS to suggest@xxxx
> > > > -----------------------------------------
> > > > Post AmiQuote-related messages ONLY to:
> amiquote@xxxxxxxxxxxxxxx
> > > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > > --------------------------------------------
> > > > Check group FAQ at:
> > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > >
> > > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> > > >
> > > >
> > > >
> > > >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Sponsor
> >
> >
> >
> > ADVERTISEMENT
> >
> >
> <http://rd.yahoo.com/M=243066.2784921.4151384.1927555/D=egroupweb/S=1
> 705
> > 632198:HM/A=1377502/R=0/*http:/www.verisign.com/cgi-bin/go.cgi?
> a=b315501
> > 13206004000>
> >
> >
> >
> > <http://us.adserver.yahoo.com/l?
> M=243066.2784921.4151384.1927555/D=egrou
> > pmail/S=:HM/A=1377502/rand=428527853>
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> > Your use of Yahoo! Groups is subject to the Yahoo!
> > <http://docs.yahoo.com/info/terms/>  Terms of Service.
>
>
>
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Your own Online Store Selling our Overstock.
http://us.click.yahoo.com/rZll0B/4ftFAA/46VHAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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