PureBytes Links
Trading Reference Links
|
How can I plot or graph the keltner
channel with the price bars?
// Length and Num_ATRs parameters
should be personalized for your> > preferred settings.>
>> > Mov_Avg = EMA(C,Length);> > KUP =
Mov_Avg + Num_ATRs * ATR(Length);> > KDOWN = Mov_Avg - Num_ATRs *
ATR(Length);> >> >> > Plot
(KUP,"KUP",1,1);> > Plot (KDown,"Kdown",1,1);> > Plot
(Mov_Avg,"Mov_Avg",6,1);
Thanks
Juan
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Dimitris
Tsokakis
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, August 11, 2003 5:50
AM
Subject: [amibroker] Inverse
functions
We usually express an MA or an EMA or a DEMA as a function
of Close.
The inverse functions are interesting in T/A
studies.
Paste in an indicator builder window the verification
formula
// Inverse functions, by D. Tsokakis, Aug
2003
p=20;fp=<FONT
size=2>2/(p+1<FONT
face=Verdana size=2>);<FONT
face="Times New Roman">
CloseviaMA=p*MA<FONT
size=2>(C,p)-(p-1)*<FONT
size=2>Ref(MA<FONT
size=2>(C,p-1),-<FONT
size=2>1);//
[1]
CloseviaEMA=0.5*((P+<FONT
size=2>1)*EMA<FONT
size=2>(C,P)-(P-1)*<FONT
size=2>Ref(EMA<FONT
size=2>(C,P),-1<FONT
face="Times New Roman">));// [2]
CloseviaDEMA=(DEMA<FONT
size=2>(C,p)+(1-fp)*fp*<FONT
size=2>Ref(EMA<FONT
size=2>(C,p),-1)-(<FONT
size=2>1-fp)*Ref<FONT
size=2>(DEMA(C,p),-<FONT
size=2>1))/((2<FONT
face=Verdana size=2>-fp)*fp);//
[3]
Plot(C,"CLOSE"<FONT
size=2>,1,<FONT
size=2>1<FONT
face="Times New Roman">);<FONT
face="Times New Roman">
Plot(CloseviaMA,<FONT
size=2>"CloseviaMA",5<FONT
size=2>,1<FONT
face="Times New Roman">);<FONT
face="Times New Roman">
Plot(CloseviaEMA,<FONT
size=2>"CloseviaEMA",7<FONT
size=2>,1<FONT
face="Times New Roman">);<FONT
face="Times New Roman">
Plot(CloseviaDEMA,<FONT
size=2>"CloseviaDEMA",4<FONT
size=2>,1<FONT
face="Times New Roman">);
As an application
you may have the nextbarClose as a function of nextbarMA or nextbarEMA or
nextbarDEMA.
<FONT
face="Times New Roman">Example:
From [1] we may have
<FONT
face="Times New Roman">nextbarCloseviaMA=p*nextbarMA(C,p)-(p-1)*MA(C,p-1)
If we know
nextbarMA, or if we ask a certain condition for nextbarMA, then we may know
the necessary nextbarClose
to fulfill the
condition.
Dimitris
Tsokakis
Send
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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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.
|