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

[amibroker] Amibroker-AT group - Herman



PureBytes Links

Trading Reference Links

You may also use the function property for easier coding
function KAMA(T1,V2,V3)
{
F1=2/(V2+1);
S1=2/(V3+1);
ER=(abs(C-Ref(C,-T1))/Sum(abs(C-Ref(C,-1)),T1));
A1=ER*(F1-S1)+S1;
A2=A1^2;
K=AMA2(C,A2,1-A2);
return K;
}
//Add now various KAMA lines
Plot(KAMA(5,2,15),"KAMA1",1,8);
Plot(KAMA(10,2,15),"KAMA2",2,8);
Plot(KAMA(10,4,30),"KAMA3",3,8);
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> CS was kind enough to give KAMA formula some time ago.
> See #12863 to #12902
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
<TSOKAKIS@xxxx> 
> wrote:
> > x1=MA(C,20);
> > x2=MA(C,30);
> > Plot(x1,"",1,1);Plot(x2,"",2,1);
> > would solve for MAs.
> > Try a similar method for your 
> > y1=KAMA1;
> > y2=KAMA2;
> > If you dont mind, post your KAMA formula to fix it.
> > Dimitris Tsokakis
> > --- In amibroker@xxxxxxxxxxxxxxx, "traderix2003" <d.adam@xxxx> 
> wrote:
> > > I would like to have  TWO  KAMA on my chart i.e one with 10 
> periods 
> > > and another with 20. 
> > > It should give much better signals than the Moving Averges 
(lag).
> > > I have the formula for one Kama but I am not able to get a 
second 
> > > one on my chart.
> > > 
> > > Somebody could help me?  Thxs a lot.
> > > Traderix



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 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:
     http://docs.yahoo.com/info/terms/