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

[amibroker] Re: O.T. > Outlook express question



PureBytes Links

Trading Reference Links




Not certain exactly what you are wanting, so I will enclose an 
example to see if it helps. This is finding the last 260 day high, then the 260 
day low prior to that, and plotting these with the 38% retracement from the 
high.
L52 = LastValue( 
Ref(<FONT 
color=#0000ff size=2>LLV(<FONT color=#ff0000 
size=2>L,<FONT color=#ff00ff 
size=2>260),-H52bar-<FONT color=#ff00ff 
size=2>1) );
L52bar = LastValue<FONT 
size=2>( BarsSince<FONT 
size=2>(L==L52) 
);
change = H52-L52;
Retrace38 = H52 - change*<FONT color=#ff00ff 
size=2>0.38;
Plot(<FONT color=#ff0000 
size=2>C,<FONT color=#8b0000 
size=2>"price",<FONT color=#ff0000 
size=2>colorBlack,<FONT color=#ff0000 
size=2>styleBar);<FONT color=#0000ff 
size=2>
Plot(<FONT color=#0000ff 
size=2>IIf(<FONT color=#0000ff 
size=2>BarIndex()>=(<FONT color=#ff0000 
size=2>BarCount-<FONT color=#ff00ff 
size=2>1- H52bar), <FONT color=#0000ff 
size=2>ValueWhen(<FONT color=#ff0000 
size=2>H==H52,<FONT color=#ff0000 
size=2>H), <FONT color=#ff0000 
size=2>Null), <FONT color=#8b0000 
size=2>"H52", <FONT color=#ff0000 
size=2>colorRed,<FONT color=#ff0000 
size=2>
styleLine);
Plot(<FONT color=#0000ff 
size=2>IIf(<FONT color=#0000ff 
size=2>BarIndex()>=(<FONT color=#ff0000 
size=2>BarCount-<FONT color=#ff00ff 
size=2>1- L52bar), <FONT color=#0000ff 
size=2>ValueWhen(<FONT color=#ff0000 
size=2>L==L52,<FONT color=#ff0000 
size=2>L), <FONT color=#ff0000 
size=2>Null), <FONT color=#8b0000 
size=2>"L52", <FONT color=#ff0000 
size=2>colorRed,<FONT color=#ff0000 
size=2>
styleLine);
Plot(<FONT color=#0000ff 
size=2>IIf(<FONT color=#0000ff 
size=2>BarIndex()>=(<FONT color=#ff0000 
size=2>BarCount-<FONT color=#ff00ff 
size=2>1- H52bar), Retrace38, <FONT 
color=#ff0000 size=2>Null), <FONT 
color=#8b0000 size=2>"Retr 38%", <FONT 
color=#ff0000 size=2>colorGreen,<FONT 
color=#ff0000 size=2>
styleLine);
GraphXSpace=<FONT color=#ff00ff 
size=2>5;
Cheers,Graham<A 
href="">http://www.golala.com/forums/?mforum=asxsharetrading<A 
href="">http://groups.msn.com/fmsaustralia-----Original 
Message-----From: mroman59 [<A 
href="">mailto:mroman59@xxxxxxxxx]Sent: 
Saturday, 24 January 2004 8:06 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
[amibroker] Fibonacci Formulas? Help anyoneDoes anyone have the 
formula for determining the price of a stockthat retraces using the popula 
fibonacci % lines. I am alittleconfused, when i draw the lines using AB from 
lo to hi point itgives me the %lines and a value. However the value does not 
seem tocorrelate with the %retracement.  For example, when i calculate 
the% that a stock has retraced from its 52 week hi the value does 
notmatch the with the lines drawn nor does the value 38.2% line 
valuecorrelate with actual 38.2% retracment of the stocks value. Now 
thatI have you confused and myself can anyone help me?  I am trying 
tocreate an exploration or indicator that will alert me when a stockin 
my watchlist has retraced to one of these values.Thank 
YOuMRSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html------------------------ 
Yahoo! Groups Sponsor ---------------------~--> Buy Ink Cartridges or Refill 
Kits for your HP, Epson, Canon or Lexmark Printer at MyInks.com. Free s/h on 
orders $50 or more to the US & Canada. <A 
href="">http://www.c1tracking.com/l.asp?cid=5511<A 
href="">http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM---------------------------------------------------------------------~->Yahoo! 
Groups LinksTo visit your group on the web, go to:  <A 
href="">http://groups.yahoo.com/group/amibroker/To 
unsubscribe from this group, send an email to:  
amibroker-unsubscribe@xxxxxxxxxxxxxxxYour use of Yahoo! Groups is 
subject to:  <A 
href="">http://docs.yahoo.com/info/terms/


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








Yahoo! Groups Sponsor


  ADVERTISEMENT 









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