Fave This

Monday, 24 December 2012

RE: [Komunitas AmiBroker] minta bantuan afl



Ok terimakasih banyak pak.. baik akan saya coba dulu ke amibrokernya..

 

Sebelum dan sesudahnya saya ucapkan terimakasih banyak.

Wassalam.

 

 

 

 

From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-bei@yahoogroups.com] On Behalf Of Hengky B
Sent: Monday, December 24, 2012 3:32 AM
To: amibroker-4-bei@yahoogroups.com
Subject: Bls: [Komunitas AmiBroker] minta bantuan afl

 

 

silahkan di coba :

 

//Smooth = (Close(@) + ((Sum(Close(@),5)[-1] – MA(Close(@),5)[-1]))/5

//formula asli di potong jadi 3 potongan kecil

//disini banyak suhu, mungkin ada suhu yg punya versi lain

//periods = angka ; // angka bisa diganti sesuka hati sampai temukan angka yg cocok, dgn kata lain dioptimasi

//silahkan tanyakan ke suhu yg jago optimasi  

 

periods = 5 ;

 

a = Close ;// potongan 1

b = Sum(Close,periods); // potongan 2

bb = Ref(b,-1) ; // cari hasil potongan 2 , 1 hari ke belakang

C = MA(Close,periods) ; // potongan 3

Cc = Ref(C,-1) ; // cari hasil potongan 3 , 1 hari ke belakang

 

smooth =( a + bb - Cc)/periods ;

 

Plot(smooth,"smooth",colorGreen,styleLine); // garis smooth

Plot(MA(C,periods),"ma(c,Periods)",colorRed,styleLine); // garis ma ( c, periods )  

 


Dari: Ryan Akbar <rakbar83i@yahoo.com>
Kepada: amibroker-4-bei@yahoogroups.com
Dikirim: Minggu, 23 Desember 2012 23:23
Judul: [Komunitas AmiBroker] minta bantuan afl

 

 

Dear rekan2 milis..

Mohon bantuannya apakah ada yang punya AFL untuk smoothed MA seperti di bwh ini? Saya sudah coba buat sendiri tapi selalu gagal.

Sebelum dan sesudahnya saya ucapkan terimakasih banyak

wassalam

Smoothed Moving Average
A smoothed moving average, referred to as Smooth, uses the current closing price added to the difference of the previous sum of closing prices in the lookback period minus the previous simple moving average value, and divided by the number of bars in the lookback period.

For example, the formula for a five-day smoothed moving average is:

Smooth = (Close(@) + ((Sum(Close(@),5)[-1] – MA(Close(@),5)[-1]))/5

The formula for the five-day smoothed average shows that the elements in the numerator are divided by 5, or each element is weighted by 1/5. On a percentage basis, this means each element contributes just 20% to the calculation. Therefore, the longer the lookback period, the smaller the individual weighting, and the slower the smoothed moving average will respond to the price action. A 20-day smoothed moving average weights each element by 5%.

 

 



__._,_.___


Harga Software AmiBroker:
- Versi Professional: Rp 2,5 Jt
- Versi Standard: Rp 1,8 Jt

Harga Paket Realtime Intraday Data:
- 1 bulan Rp 250 Rb
- 3 bulan Rp 675 Rb (after disc 10%)
- 6 bulan Rp 1,2 Jt (after disc 20%)
- 12 bulan Rp 2,3 Jt (after disc 23%)

Pemesanan:
E-Mail: sales@integrity.co.id
Ph: 021-57936155
SMS: 08159304868
Pin: 285844A8
http://www.integrity.co.id




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

No comments:

Post a Comment