Fave This

Wednesday, 17 October 2012

Re: [Komunitas AmiBroker] tanya explore di menu Analysis



Mas Bangun/Lukman,

Saya pakai data EOD, jadi dah jarang utak-atik timeframe.
Dulu saya pernah copy AFL timeframe dari mas Panos di milis sebelah... mudah2an cocok seperti yang diinginkan.

Kalau mantau milis sebelah, kadang2 nemu AFL yg menarik seperti di bawah.

Insya Allah bermanfaat.

Regards,
ES

//===========================
/*
this is NOT True few days ago Tomasz explain how to put new buttons through customize/tools ...
but any way with this formula below that uses TimeFrameSet without to use restore, you can drag&drop any other AfL AND "Bingo"
try it...
you can have 2,3,..6 chart in the same window with different time frames

Panos
*/


/* Plot different TimeFrames in the same window */


SetChartBkGradientFill(colorTeal, colorTan,colorTan);
Period= ParamList( "Base", "Monthly|Weekly|Daily|8Hours|4Hours|2Hours|Hourly|30Minute|20Minute|15Minute|10Minute|5Minute|3Minute|1Minute" ,6);
function xVolume() {
Vol= Plot(V, "Volume2",colorWhite, styleHistogram|styleOwnScale);
}

if(Period== "Monthly"){
TimeFrameSet(inMonthly);
PlotOHLC(Open, High, Low, Close, "\nMonthly Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "Weekly"){
TimeFrameSet(inWeekly);
PlotOHLC(Open, High, Low, Close, "\nweekly Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "Daily"){
TimeFrameSet(inDaily);
PlotOHLC(Open, High, Low, Close, "\nDaily Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "8Hours"){
TimeFrameSet(inHourly *8);
PlotOHLC(Open, High, Low, Close, "\n8 Hours Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "4Hours"){
TimeFrameSet(inHourly *4);
PlotOHLC(Open, High, Low, Close, "\n4 Hours Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "2Hours"){
TimeFrameSet(inHourly *2);
PlotOHLC(Open, High, Low, Close, "\n2 Hours Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "Hourly"){
TimeFrameSet(inHourly);
PlotOHLC(Open, High, Low, Close, "\nHourly Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "30Minute"){
TimeFrameSet(in15Minute *2);
PlotOHLC(Open, High, Low, Close, "\n30 Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "20Minute"){
TimeFrameSet(in5Minute *4);
PlotOHLC(Open, High, Low, Close, "\n20 Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "15Minute"){
TimeFrameSet(in5Minute *3);
PlotOHLC(Open, High, Low, Close, "\n15Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "10Minute"){
TimeFrameSet(in5Minute *2);
PlotOHLC(Open, High, Low, Close, "\n10 Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "5Minute"){
TimeFrameSet(in5Minute);
PlotOHLC(Open, High, Low, Close, "\n5Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "3Minute"){
TimeFrameSet(in1Minute *3);
PlotOHLC(Open, High, Low, Close, "\n3Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}
if(Period== "1Minute"){
TimeFrameSet(in1Minute);
PlotOHLC(Open, High, Low, Close, "\n1Minute Price Chart", colorBlack, styleCandle );
if( ParamToggle( "Volume .?", "No|Yes" ) ) xVolume() ;
}


//==================


2012/10/17 bangunsastro <bangunsastro@yahoo.com>
Waduh maaf baru sempat buka email. Terima kasih Pak satriyo, pagi ini saya coba langsung tok cer. he3x.

Pak eco syariah. Saya bisa tanya2/diskusi mengenai TimeFrameSet?
Saya justru lg ada masalah mengenai hasil TimeFrameSet neh. Ceritanya saya pengen menghitung nilai MA volume harian dari chart hourly (intraday). dengan AFL berikut ini :

TimeFrameSet(inDaily);
DailyMA20Vol = Ref (MA(V,20), -1);
TimeFrameRestore();
TimeFrameExpand( DailyMA20Vol, inDaily);

Kenapa ya pak saya aplikasikan di saham kompas 100 beberapa memberikan hasil {empty} seperti : aisa, asii, akra, bwpt, ctra, lsip, ptba, tins, giaa. Tp saya cek di quote editor data2 volume transaksi harian ada. sementara untuk saham2 lain di kompas 100 keluar hasil dan benar ?

TQ/Lukman


--- In amibroker-4-bei@yahoogroups.com, Eco Syariah <esyariah@...> wrote:
>
> Baca juga di menu Help tentang TimeFrameGetPrice.
>
> Regards,
> ES
>
> On Thu, Oct 11, 2012 at 8:48 AM, Satriyo Pranoto
> <satriyo.pranoto@...>wrote:
>
> >
> >
> > Pada tab analysis….click button setting…dan ubah field periodicity jadi
> > "hourly"****
> >
> > ****
> >
> > ** **
> >
> > Salam,****
> >
> > Satriyo****
> >
> > " The fact that other people agree or disagree with you makes you neither
> > right or wrong. You will be right if your facts and reasoning are correct.(
> > Benjamin Graham)"****
> >
> > ** **
> >
> > *From:* amibroker-4-bei@yahoogroups.com [mailto:
> > amibroker-4-bei@yahoogroups.com] *On Behalf Of *Bangun Sastro
> > *Sent:* Thursday, October 11, 2012 12:05 AM
> > *To:* amibroker-4-bei@yahoogroups.com
> > *Subject:* [Komunitas AmiBroker] tanya explore di menu Analysis****
> >
> > ** **
> >
> >   ****
> >
> > Rekans developer AFL mohon bantuannya,****
> >
> > Saya tes fungsi explore di menu analysis menggunakan data intraday 1 jam,
> > Apply to : filter dan range : 1 (satu) recent bar dengan  AFL sederhana
> > berikut ini:****
> >
> > *Filter* = *C* > *O*;****
> >
> > AddColumn****
> >
> > (*O*, "OPEN", 1.1); AddColumn(*C*, "CLOSE", 1.1); ****
> >
> >  ****
> >
> > 1. mengapa hasilnya bukan open dan close data intraday 1 jam tapi open dan
> > close data harian?****
> >
> > 2. Apakah fungai explore di menu analysis hanya untuk data harian dan
> > mingguan saja?****
> >
> > 3. Jika tidak bisa menggunakan explore, tp saya ingin menampilkan data2 O,
> > C & V intraday 1 jam apa ada alternatif lain?****
> >
> >  ****
> >
> > salam/lukman****
> >
> >  ****
> >
> > ****
> >
> >
> >
> >
>




------------------------------------

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.idYahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker-4-bei/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker-4-bei/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-4-bei-digest@yahoogroups.com
    amibroker-4-bei-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    amibroker-4-bei-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/




__._,_.___


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