Maaf pak, DCA itu apa yah?
Gambar di bawah itu display scan berdasaarkan formula AFL dibawah? Formula itu sdh lengkap or potongannya saja pak?
Salam,
Dennij R
From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-bei@yahoogroups.com] On Behalf Of Timur Langit
Sent: 07 April 2011 13:04
To: amibroker-4-bei@yahoogroups.com
Subject: RE: [Komunitas AmiBroker] Resend: Development Update Pyramid + DCA f/ Timur Langit (Fwd:[#83054] How to PYRAMID with spsPercentOfEquity + Dollar Cost Average)
Terimakasih Pak Wisnu… Sangat mencerahkan, dan menarik sekali system yg Bapak miliki, terutama yg saya warnai di body email Pak Wisnu. Sepertinya memang hal itu yg bikin perbedaan system kita ya? Masih banyak yg hartus di coba2 nih kayanya, he he he….
Oh ya, ttg DCA, Saya dapat contoh DCA ini di web Amibroker/guide tetapi kok ketika dijalankan nggak memberikan hasil ya… dibawah contoh hasil pada AALI dari tahun 2001.
Apanya yg salah ya?
http://www.amibroker.com/guide/h_pyramid.html
FixedDollarAmount = 500;
MonthBegin = Month() != Ref( Month(), -1 );
FirstPurchase = Cum( MonthBegin ) == 1;
Buy = IIf( MonthBegin, sigScaleIn, 0 ); // each month increase position
Sell = 0; // we do not sell
PositionSize = FixedDollarAmount;
From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-bei@yahoogroups.com] On Behalf Of Wisnu Mobile
Sent: Thursday, April 07, 2011 12:10 AM
To: amibroker-4-bei@yahoogroups.com
Subject: Re: [Komunitas AmiBroker] Resend: Development Update Pyramid + DCA f/ Timur Langit (Fwd:[#83054] How to PYRAMID with spsPercentOfEquity + Dollar Cost Average)
Halo Pak,
Dari lamanya respon Suppport, then it must be something uncommon, belum ada referensi, sehingga perlu custom backtest codes. Let's see lah..
Pyramid - mestinya aman dan profitable - kita pernah test. Tetapi tidak optimum. Argumen saya beberapa bulan yang lalu, adalah setiap penambahan posisi baru membawa 50:50 peluang untuk sukses dan gagal. Opini saya, itu kenapa jarang sekali ada pola yang universally acceptable - tentang bagaimana averaging up.
ScalingOut punya concern yang sama, setiap keputusan membawa 50:50 peluang.
By the way, saya tidak mengatakan averaging up salah - tetapi saya memilih untuk full power (menurut aturan PositionSize yang saya pakai), di setiap opportunity yang muncul. Apabila opportunity itu muncul di saham yang sama, efek nya seperti averaging up. Tetapi untuk saya, dan my system - dua trades tersebut, completely separated packages - dengan risk profilenya masing2. Tetapi satu exit condition, berlaku general - semua posisi di stock yang sama, akan exit bersama-sama.
Rupanya, Howard bandy punya comment yang sama. He's got more research than me.. so his comment carries weight.
Bukankah dengan aturan pyramid, dan PositionSize >>> total capital dialokasikan untuk SATU PositionSize, akan menjadi JARANG dieksekusi full power? Mestinya jadi underutilized capital, isn't?
Untuk konteks kedua, DCA. Mestinya positif - bisa diuji dengan example di GUIDE. Tentunya selama digunakan dengan skenario yang juga survive the test ya..
So, YES. Dengan dua separated test: Pyramid + DCA, anda bisa punya gambaran solid, tentang bagaimana overall sistem akan perform.
Salam belajar.
2011/4/6 Timur Langit <timurlangit.is.here@gmail.com>
Sorry baru sempat balas…
Thank you Pak Wisnu atas kebaikan hatinya.
Saya dapat menerima bahwa kita tidak boleh terlalu mengusahakan system yg ‘handal’. Itulah sebabnya kenapa muncul tantangan system ‘semi investor’ ini. System yg sebetulnya tidak complete dan maksimum.
Saya berkesan dengan quote Pak Wisnu yaitu “kenapa kita bisa tahan FLOATING LOSS, tapi tidak tahan FLOATING GAIN”, yg kalau dilihat system pada gambar di bawah, adalah jawaban dari quote Pak Wisnu itu, yaitu jika masih positif, boleh dong nambah kalau ada tambahan dana (tiap bulan).
Tapi challengenya adalah, apa betul dgn system ‘semi investor’ ini nantinya akan untung? Jangan2 malah menghapus keuntungan yg susah2 dibangun?
Bisakah kesimpulan both sides “DCA” dan “Pyramid” menjawab pertanyaan ini dan memberikan kita keyakinan untuk menggunakannya?
Timur
From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-bei@yahoogroups.com] On Behalf Of Wisnu Mobile
Sent: Tuesday, April 05, 2011 7:54 AM
Subject: Re: [Komunitas AmiBroker] Resend: Development Update Pyramid + DCA f/ Timur Langit (Fwd:[#83054] How to PYRAMID with spsPercentOfEquity + Dollar Cost Average)
Let's discuss.
Menurut saya, IMHO, dari kacamata trader/investor - yang kita cari bukan PERFECT system. CUKUP REPRESENTATIF terhadap konsep yang mau diuji saja, sudah cukup. Ini opini saya, feel free to have different ones.
Sehingga, ketika saya berhadapan dengan kompleks idea, saya punya dua pilihan:
1. Full effort, chasing a complete system. Saya kenal satu senior, beliau me-rewrite BW's Alligator, ribuan lines - complete system. Tetapi kemudian beliau berhenti - karena sistemnya menjadi kompleks sekali. Jadi harta karun terpendam tuh.. Ayo diteruskan, Pak. Hehe..
2. Break it into pieces, and test it as separate systems.
Saya selalu memilih yang kedua. Dan rupanya Pak Bandy pun memilih jalan yang sama.. Jangan2 dia ikut milis kita diam2, terus baca tulisan kita, huahaha... Joking ya..
Oya, point2 diskusinya Pak Bandy sangat berharga untuk dipahami. Jangan dilewatkan ya..
Dalam case Pak Timur ini, konsep bisa dipecah dalam 2 gelondongan besar:
1. Scaling In-Out normal, sudah pernah kita test. Disini kita bisa evaluasi EXPECTANCY dari skenario pyramid ini.
2. DCA dengan fix monthly saving, ada contohnya di GUIDE. Dan kita pun bisa evaluasi EXPECTANCY nya.
Dari dua EXPECTANCY ini, kita akan punya rough estimates complete system PYRAMID + DCA.
Anyway, bukan men-discourage ya, Pak Timur. Kita tetap tanya ke SUPPORT. Hehe.
Saya cuma mau share sudut berpikir - untuk selalu mengambil PATH OF LEAST RESISTANCE - supaya siapapun ketika memulai develop sistem, dan mendapati konsepnya kompleks - jangan menyerah duluan.
Break apart, and test independently.
Semua ini my opinion, feel free to have different ones.
Salam.
On Tue, Apr 5, 2011 at 4:19 AM, <timurlangit.is.here@gmail.com> wrote:
Asli puyeng...... Asli mumet....
Harus ambil cuti nih.
Selain Pak Wisnu, ada Pak Abdul Halim, Chris dan Pak Eko nih yg bisa diharapkan dapat membantu menyelesaikan challenge ini.
Semoga....
Timur
Sent from my BlackBerry® by dtac.
From: Wisnu Mobile <wisnu.working@gmail.com>
Sender: amibroker-4-bei@yahoogroups.com
Date: Mon, 4 Apr 2011 21:54:41 +0700
To: AB4<amibroker-4-bei@yahoogroups.com>
ReplyTo: amibroker-4-bei@yahoogroups.com
Subject: [Komunitas AmiBroker] Resend: Development Update Pyramid + DCA f/ Timur Langit (Fwd: [#83054] How to PYRAMID with spsPercentOfEquity + Dollar Cost Average)
Calling Pak Timur. Hehe..
Silahkan dibaca-baca referensi yang dikirimkan MG.
Dan satu lagi, comment dari Howard Bandy: http://finance.groups.yahoo.com/group/amibroker/message/151519
Quite a shocking comment bagi penganut paham averaging in/out. Tapi worth to understand the point, at least. Sebelum memutuskan untuk betulan terjun jadi full-time AFL programmer.. Hehe..
Salam.
---------- Forwarded message ----------
From: Wisnu Wijayanta <wisnu.wijayanta@gmail.com>
Date: Mon, Apr 4, 2011 at 5:25 PM
Subject: Re: [#83054] How to PYRAMID with spsPercentOfEquity + Dollar Cost Average
To: AMIBROKER SUPPORT <support@amibroker.com>
Marcin,
Thanks, but still need a lot of help. Forgive me for my lack of programming skill.
I add the code below to my system in research, but I guess its a total failure, can you please help to correct?
First of all, I don't want to rewrite the pyramid position sizing, into this custom procedures. So, what I need is only HOW to adjust the PORTFOLIO EQUITY - so the scaling in/out can take over after that.
Thanks.
function IsEOM(dn, bar)
{
rc = False;
if (bar >= 0 && bar < BarCount-1)
{
mm = int((dn[bar] % 10000) / 100); // Month of passed bar
mmn = int((dn[bar+1] % 10000) / 100); // Month of next bar
rc = mmn != mm; // End of month if not same
}
return rc;
}
SetCustomBacktestProc(""); // Start of custom backtest procedure
if (Status("action") == actionPortfolio)
{
bo = GetBacktesterObject(); // Get backtester object
bo.PreProcess(); // Do pre-processing
bo.InitialEquity = 50000000;
dn = DateNum(); // Array for finding end of month
for (i = 0; i < BarCount; i++) // Loop through all bars
{
if (IsEOM(dn, i)) // Scale trades only on last bar of month
{
bo.Cash=2000000;
}
}
bo.PostProcess();
}
On Mon, Apr 4, 2011 at 3:17 PM, AMIBROKER SUPPORT <support@amibroker.com> wrote:
Hello,
If you want to increase equity by adding capital each month, then you can do it in custom backtest procedure by modifying CASH property of the backtester object.
http://www.amibroker.com/guide/a_custombacktest.html
http://www.amibroker.org/userkb/2008/03/16/amibroker-custom-backtester-interface-2/
On the other hand - you can define initial equity, then just recalculate your position-sizing algorithm within the backtest (e.g. based on number of months since the beginning of the test) - all depends on the exact rules you want to follow regards the position-sizing.
Best regards
Marcin Gorzynski
Amibroker.com Technical Support
From: Wisnu Wijayanta
Sent: Sunday, April 03, 2011 2:35 PM
To: support@amibroker.com
Subject: [#83054] How to PYRAMID with spsPercentOfEquity + Dollar Cost Average
Hallo Support,
How can I execute this scenario? Please help. Many thanks in advance.
1. I have X initial capital to start trade.
2. I have Y additional capital to be added PER MONTH to my equity.
3. I have a pyramid scenario with spsPercentOfEquity (working OK, WITHOUT this DCA additional).
I am thinking along the line, loop calculation of EQUITY at the beginning of each month, as a function of last equity value + Y.
Please help me with the skeleton.
Best regards,
Wisnu.
__._,_.___
Apabila membutuhkan software AmiBroker, Realtime Intraday Data & Pelatihan silahkan kontak : Dendo Valentino | Cell : 08159304868 | e-mail: amibrokerfreak{at}yahoo.co.id | YM id : dendov | http://www.facebook.com/dendo.amibrokerfreak | http://www.amibroker-4-bei.org
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