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

RE: [amibroker] Re: Resricting calculations to the first 6 periods of occurrence Question for DT



PureBytes Links

Trading Reference Links

Eugene
Here is a plot I use for the support and resistanc levels for any selected
bar. You might find the answer to plotting horizontal lines from it

RSIperiod	= 6;
Percent 		= 7;
HHVperiod 	= 3;
NumLine 		= 1;
SigPer		= 9;
MAperiod 	= 4;

Base = DEMA(RSI(RSIperiod),MAperiod);

GraphXSpace=2;
Plot(C,"",colorBlack,styleCandle);

for( i = 1; i <= numline; i++ )
{
ResBase =SelectedValue( /*LastValue*/(Peak(Base,Percent,i)));
SupBase =SelectedValue( /*LastValue*/(Trough(Base,Percent,i)));

Plot(ValueWhen( (ResBase)==Base,SelectedValue(HHV(H,HHVperiod)) ), "Resist
Level", colorRed, styleDots);

Plot(ValueWhen( SelectedValue(supbase)==Base,
SelectedValue(LLV(L,HHVperiod)) ), "Support Level", colorGreen, styleDots);
}

Title = Name() + "; " + Date() + ": Support & Resistance Levels using RSI: "
+ /*EncodeColor(colorGreen)+ "Support Levels are Green;
"+EncodeColor(colorRed)+ "Resistance Levels are Red:
"+EncodeColor(colorBlack)+*/ "Num lines ="+WriteVal(numline,1) ; 

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: Eugene [mailto:johngalt1234@xxxxxxxxx] 
Sent: Friday, 18 July 2003 7:54 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Resricting calculations to the first 6 periods of
occurrence Question for DT


How would I get just horizontal lines and not connected lines marking 
the high point of each pattern?-

-- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Eugene,
> you may have less than 6 cascade pattern bars.
> When the pattern [or the 6 bars] is over, the highest high is  
> ValueWhen(Cond1==0 AND Ref(Cond1,-1),Ref(HHV(H,6),-1)) See the
> 
> Cond=C>Ref(C,-4);
> Cond1=Cond AND BarsSince(NOT(Cond))<=6; Plot(C,"",4*Cond1+1,64);
> Plot(ValueWhen(Cond1==0 AND Ref(Cond1,-1),Ref(HHV(H,6),-1)),"",4,1);
> if it gives what you want.
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "Eugene" <johngalt1234@xxxx> 
wrote:
> > Basic pattern
> > C>ref(c,-4)
> > 
> > I want to be able to caluculate the highest high in the first 6
> > periods of the occurrence of this pattern?
> > 
> > TIA


------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy
Ink Cartridges & Refill Kits for Your Epson at Myinks.com Free shipping on
orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/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/ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/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/