PureBytes Links
Trading Reference Links
|
Antonio,
Can u please tell me how to draw a linear
regression band/line upwards by 25% and downwards by 20% with the downwards 20%
also to work as a STR stop
ed
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Antonio Marra
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, July 29, 2004 8:28
PM
Subject: RE: [amibroker] Need some Title
help
Yuki,to choose a colour if a given condition is
true, in title You can useWriteIf() function (commentary conditional text
output).Here is an
example://--------------------------------------------------------------------------Plot(C,"Close",ColorBlack,styleCandle);PlotForeign("^NDX","ND100",colorRed,styleCandle|styleOwnScale);Index_C
= Foreign("^NDX","C",1);Index_var = (Index_C -
Ref(Index_C,-1))/Ref(Index_C,-1)*100;// Titolo del graficoTitle =
Name()+" -
"
+WriteIf(Interval()==86400,"Daily ","")+Date()+"
:"
+" Op
"+WriteVal(O,1.4)
+", Hi
"+WriteVal(H,1.4)
+", Lo
"+WriteVal(L,1.4)
+", Cl
"+WriteVal(C,1.4)
+", ("+WriteVal(( ((C-Ref(C,-1))*100) /Ref(C,-1)),1.2)+"
%)"
+" - Vol
"+WriteVal(V,1.0)
+" - ^NDX %var
:"+WriteIf(Index_var>0,"\\c27","\\c32")+WriteVal(Index_var,1.2)+"\\c16
%";//--------------------------------------------------------------------------Best
Regards, Antonio-----Original
Message-----From: Yuki Taga [mailto:yukitaga@xxxxxxxxxxxxx] Sent:
Thursday, July 29, 2004 9:09 AMTo: amibroker@xxxxxxxxxxxxxxxSubject:
[amibroker] Need some Title helpI would like to modify the following
title in my built-in Px chart:Title = EncodeColor(colorWhite)+
"Px.[Built-in]"+EncodeColor(colorBlack)+" "+Name() +"
on "+ WriteVal(DateTime(), formatDateTime )+"
"+EncodeColor(colorYellow)+"O"+EncodeColor(colorBlack)+WriteVal(O,x)+""+EncodeColor(colorYellow)+"
H"+EncodeColor(colorBlack)+WriteVal(H,x)+""+EncodeColor(colorYellow)+"
L"+EncodeColor(colorBlack)+WriteVal(L,x)+""+EncodeColor(colorYellow)+"
C"+EncodeColor(colorBlack)+WriteVal(C,x)+EncodeColor(colorDarkRed)+"Vol
="+EncodeColor(colorBlack)+WriteVal(V,1)+EncodeColor(colorDarkGreen)+WriteIf(Name()=="^IXJ"OR
Name()=="^225"," (+3 zeros for Index Vol)","");This works
fine above ("x" refers to a format choice in an if-elsestatement that
looks at what database I'm using: US or Japan, just soyou know where
that's coming from). But I want to further complicatethis ^^_^^ and I'm
having some trouble getting what I want done.What I want to do is add
one more entry at the end after volume *if*I am looking at either
Name()=="^IXJ" OR Name()=="^225". The entrywould be the percentage change
of the index on that date, color codedgreen if higher and red if lower, to
two decimal places. I know howto calculate percentage change of
course. (^_-) But all this has tobe nested somehow (I think)
inside an IFF(), and I am just notgetting the job done however I try it.
Is there someone out there whocan give me a good
example?YukiCheck AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at:<A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups
SponsorADVERTISEMENTYahoo! Groups Links• To
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@xxxxxxxxxxxxxxx • Your use of
Yahoo! Groups is subject to the Yahoo! Terms of Service.
Check AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
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.
|