PureBytes Links
Trading Reference Links
|
lol... well, Dennis, my first attempt at helping someone else and I kind
of labelled it wrong. The code should be fine though. Of course I gave
you the KST Intermediate term indicator, but I mistakenly copied the
Metastock SMA indicator as an example. So just so that there is no
confusion, here are both
Amibroker code for KST Intermediate term Simple Moving Average
condition=MA(ROC(C,10),10)*1 + MA(ROC(C,13),13)*2 +
MA(ROC(C,15),15)*3 + MA(ROC(C,20),20)*4;
Plot(condition,"KST Intermediate SMA",1,1);
Notice this uses the 'MA' function call
Here is the code for the Intermediate term Exponential Moving Average
condition=EMA(ROC(C,10),10)*1 + EMA(ROC(C,13),13)*2 +
EMA(ROC(C,15),15)*3 + EMA(ROC(C,20),20)*4;
Plot(condition,"KST Intermediate EMA",1,1);
This is what I gave you in the first response to your request
Notice that 'MA' has been replaced by 'EMA' because we want the
exponential MA in this case.
Clear as mud?
>
>
> condition=EMA(ROC(C,10),10)*1 + EMA(ROC(C,13),13)*2 +
> EMA(ROC(C,15),15)*3 + EMA(ROC(C,20),20)*4;
> Plot(condition,"KST Intermediate SMA",1,1);
>
> In Amibroker, you don't need to specify that the ROC should be a % ROC -
> the program defaults to that method of calculation. Also in Amibroker,
> the Metastock 'MOV' function is called by using 'MA'. That gives you a
> /simple/ MA. To get an /exponential/ MA, you use 'EMA'. So, in
> Metastock, you use always use 'MOV' to call a moving average, then you
> specify which type of Moving Average you want to calculate 'within the
> brackets'. In Amibroker, you use different function calls for different
> types of moving averages - MA, EMA, WMA (Weighted Moving Average), etc.
>
> Now... I am throwing the term 'function call around without really being
> an AB expert - I hope that is the right term. I'm also a beginner but I
> know how to code this one up. Others may be able to help you in terms of
> plotting other fancy lines with this - I gave you the raw signal line
> only. Anyway, you get the idea, I hope.
>
>
> Nikku
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> 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
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
--
The majority meet with failure because of their lack of persistence in creating new plans to take the place of those which fail.
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|