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

Re: [amibroker] To: Brian Elijah or anyone



PureBytes Links

Trading Reference Links







Hello,
 
As an example...load into AA window, select current stock, n last quotations and n=10.
click explore.

//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(H,"high");//this is high today
AddColumn(Ref(H,1),"Hi",1.2);//this is high tomorrow
AddColumn(Ref(L,1),"Low",1.2);
AddColumn(Ref(C,1),"Close",1.2); 
-------Original Message-------
 

From: amibroker@xxxxxxxxxxxxxxx
Date: Sunday, March 23, 2003 15:26:30
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/> >> >> >> >Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 the Yahoo! Terms of Service. 
 







____________________________________________________  IncrediMail - Email has finally evolved - Click Here






Yahoo! Groups Sponsor


  ADVERTISEMENT









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 the Yahoo! Terms of Service.

Attachment: Description: ""