[amibroker] Re: Here's how to back test a single legged options trading strategy

2010-06-04 Thread David
I found an error in how I calculated the cash settlements at expiration. Below is the fixed code. All comments, suggestions, and improvements are most welcome!! Warm regards, David // This option trading strategy is not intended to make money. // It is intended to demonstrate the use of

Re: [amibroker] Re: Portfolio backtests are not valid?

2010-06-04 Thread Keith McCombs
I have been dealing with this very same problem for a few months now. My comments on Mike's three suggestions below. 1. This is the best suggestion for an accurate solution. Because you can actually test whether or not time order matters. Historical 1 minute data is available. You can

[amibroker] Re: Question about position size

2010-06-04 Thread engineering_returns
SetPositionSize( 100, spsPercentOfEquity ); Frank engineering-returns.com http://engineering-returns.com/ --- In amibroker@yahoogroups.com, Tony M pqj...@... wrote: Need help with position size - how position size is determined in backtesting? In one example of my backtest, first trade bought

Re: [amibroker] Re: Extracting last record from Text file

2010-06-04 Thread Ton Sieverding
Mike do you know if we can get the last record without a loop ? So with an instruction. Something like fgetlast(fh) ... I know there should be an instruction like that but I cannot find it ... Regards, Ton. - Original Message - From: Mike To: amibroker@yahoogroups.com Sent:

[amibroker] Volatility bands

2010-06-04 Thread infynhome
I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this formula to be converted into afl language. Can somebody help me with this. Input:

[amibroker] Re: Portfolio backtests are not valid?

2010-06-04 Thread Mike
Keith, I wouldn't put too much faith in 64 bit over 32 bit. http://finance.groups.yahoo.com/group/amibroker/message/125775 Better, perhaps, to look at a newer CPU with more cache. http://finance.groups.yahoo.com/group/amibroker/message/140718 Meanwhile, have a look at MCO in the Files section

[amibroker] Re: Extracting last record from Text file

2010-06-04 Thread Mike
Ton, I think that you are stuck with the loop. Other languages have functions for relocating the file position (e.g. fsetpos, fseek). But, I'm not aware of any equivalent in AFL. You could probably do it using COM or JScript embedded in your AFL.

[amibroker] How to draw one vertical line 90 bars from the last bar

2010-06-04 Thread Perumal
Hi I would like to draw only one vertical line 90 bars from the last bar. Can anybody suggest the code for drawing this vertical line. Your help is appreciated. Regards UMR Perumal

Re: [amibroker] How to draw one vertical line 90 bars from the last bar

2010-06-04 Thread reinsley
Hi, I don't remember the author. Best regards N = Param(Bars away from end, 90, 0, 100, 1); AtNBar = BarIndex() == LastValue(BarIndex() - N); // are we at Nth bar from the last? Plot(AtNBar,, colorRed, styleHistogram| styleOwnScale, Null, Null) ; // Plot vertical line, N bars to left of

[amibroker] AmiBroker User's Guide in PDF format

2010-06-04 Thread Paolo
Just wondering if and when the updated AmiBroker 5.30 PDF User's Guide will be released. Paolo

[amibroker] Re: Reinvesting 100% of present balance...

2010-06-04 Thread ramoncummins
try using SetOption(PositionSizeShrinking,True); This means you will still make trades even when your account drops below your desired trade size. This can help in situations where you specify trades of 100k with a 100k account, and the first couple of trades are losers such that the account

[amibroker] Re: Portfolio backtests are not valid?

2010-06-04 Thread Gonzaga
Keith, I feel happy seeing that there is one person around the world with the same problems as me! Although I don't want you to have problems, of course ;-) But I see you have worked on our problems. I think, same as you, that the real solution is buying many 1 minute data. I also use common

[amibroker] Re: Loop for MA calculation

2010-06-04 Thread ang_60
Great. Thanks to everybody.

Re: [amibroker] Re: Question about position size [1 Attachment]

2010-06-04 Thread Tony M
Thanks for your reply. But it does not work. Here's the key portion of the code: Buy=Cond1 OR Cond2 OR Cond3 OR Cond4; BuyPrice=Open; Sell=Cross(sig,Lowbar); SellPrice=Open; SetTradeDelays(1,1,0,0); SetPositionSize(100,spsPercentOfEquity); The trade summary is attached. It shows the trade size

[amibroker] Re: Question about position size

2010-06-04 Thread Gonzaga
Try: posQty=Param(Positions,1,1,30,1); //parameter until 30 SetOption (accountmargin,100); // if 100, we use 100% of the capital PositionSize = -100/(posqty);//-100/1=100% of the capital --- In amibroker@yahoogroups.com, Tony M pqj...@... wrote: Thanks for your reply. But

[amibroker] Looking for Quantitative Researchers

2010-06-04 Thread stocktrader1028
As the head of research for a growing investment markets research company, I am looking to expand the research department. We do most of our research using AmiBroker. The position is a full-time telecommute position. If you have a passion for trading research and love solving problems, then see

[amibroker] Re: Portfolio backtests are not valid?

2010-06-04 Thread Gonzaga
I have another idea And, if, instead of reducing randomly the database, before the trading day, we select the best 100 or 200 stocks that have obtained the best results using the system, in the last uhh.. 6 months? It is like buying the best stocks in any period, a classic technique to buy

[amibroker] eSignal

2010-06-04 Thread Ricardo Ribeiro Romero
Hi ALL. I'm trying to load data from eSignal using AMIBROKER ( I've account at eSignal already, ok ), but looks like, it´s not working. I've created a new database with 1 min. But still don't show the data, could someone help me on this issue, please. Tks. Ricardo

Re: [amibroker] Re: Question about position size [1 Attachment]

2010-06-04 Thread Tony M
Thanks for your reply. I tried that too. It does not work. I got the same results. See attached test summary. Anybody can help me solve this? Thanks. From: Gonzaga gonzag...@yahoo.es To: amibroker@yahoogroups.com Sent: Fri, June 4, 2010 7:46:34 AM Subject:

[amibroker] Advanced Amibroker book

2010-06-04 Thread Richard
Hello Howard, Could you please give us an update on the progress and availability of Advanced AmiBroker book which was expected to be ready in April or May 2010 (as stated on your website)? Regards Richard

[amibroker] Re: Advanced Amibroker book

2010-06-04 Thread Mike
http://finance.groups.yahoo.com/group/amibroker/message/149411 --- In amibroker@yahoogroups.com, Richard richpa...@... wrote: Hello Howard, Could you please give us an update on the progress and availability of Advanced AmiBroker book which was expected to be ready in April or May 2010

[amibroker] Publication mode

2010-06-04 Thread Leif P
Is there a way to get daily resolution (date for each day) in the price chart so I can publish using AB charts?

Re: [amibroker] Re: Question about position size

2010-06-04 Thread Tony M
Mike, Thank you very much. yes, that's the trick. I changed that setting from 10% to zero and then the problem went away. The symbol is XLI, it's volume is low in early years when this ETF was started. From: Mike sfclimb...@yahoo.com To:

[amibroker] Request Is there any afl greencolor for bullish zone and red for bearish

2010-06-04 Thread rvlv
Hi experts I remember having seen an afl the chartspace is showing green color while price is uptrend and the chart area gets red color if price becomes downtrend, and area gets ash or grey color if price bars have no trend I am talking of chart area from top to bottom thanks for help

Re: [amibroker] Volatility bands

2010-06-04 Thread Mubashar Virk
It should be easy provided you have custom atr formula. On 6/4/2010 12:47 PM, infynhome wrote: I am referring to the book Technical analysis for the trading professional by constance brown. She had mentioned about Volatility band formula written in tradestation language. I need this

[Komunitas AmiBroker] survey AFL yg paling mantap

2010-06-04 Thread sofialiauw
menurut saya AFL yang dari pak TIMUR sangat membantu , kita jadi praktis tradingnya tinggal lihat warna back ground nya dan dengar suaranya. selama ini saya belum pernah ketemu afl yang seperti ini . betul suatu terobosan baru ,karya yang luar biasa. semoga bapak diberkati TUHAN selalu . yang

RE: [Komunitas AmiBroker] survey AFL yg paling mantap

2010-06-04 Thread Timur Langit
Interactive Brokers, bisa untuk realtime data BEI juga?Ada delay? Berapa langganannya? From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-...@yahoogroups.com] On Behalf Of Christopher Tahir Sent: Friday, June 04, 2010 12:30 PM To: amibroker-4-bei@yahoogroups.com Subject: RE:

Re: [Komunitas AmiBroker] IHSG wz 3Rangers

2010-06-04 Thread Timur Langit
Menarik sekali. Boleh tau WAP itu apa sih? On Jun 4, 2010, at 12:17 PM, Liem Hok Hwan limh...@gmail.com wrote: Pas lagi iseng, saya lihat bagaimana kalau kita trading dng menggunakan WAP hi dan low menggunakan 3 periode? Karena metodenya pakai averages dengan menghitung volume, maka saya

Re: [Komunitas AmiBroker] survey AFL yg paling mantap

2010-06-04 Thread Timur Langit
Nanti week end saya coba usahakan ya! On Jun 4, 2010, at 12:59 PM, sofialiauw sofiali...@yahoo.co.id wrote: menurut saya AFL yang dari pak TIMUR sangat membantu , kita jadi praktis tradingnya tinggal lihat warna back ground nya dan dengar suaranya. selama ini saya belum pernah ketemu

Re: [Komunitas AmiBroker] IHSG wz 3Rangers

2010-06-04 Thread Liem Hok Hwan
WAP itu weighted averages prices. Cara menghitungnya adalah jumlahkan Harga dengan volume pada N period dan bagi dengan volume N period. 2010/6/4 Timur Langit timurlangit.is.h...@gmail.com Menarik sekali. Boleh tau WAP itu apa sih? On Jun 4, 2010, at 12:17 PM, Liem Hok Hwan

Re: [Komunitas AmiBroker] IHSG wz 3Rangers

2010-06-04 Thread Timur Langit
oh... volume weighted average, gotcha... Thank you so much 2010/6/4 Liem Hok Hwan limh...@gmail.com WAP itu weighted averages prices. Cara menghitungnya adalah jumlahkan Harga dengan volume pada N period dan bagi dengan volume N period. 2010/6/4 Timur Langit

[Komunitas AmiBroker] Re: survey AFL yg paling mantap

2010-06-04 Thread sofialiauw
iya pak TIMUR LANGIT AFL nya saya dapat dari milist ,cuma yang ini tidak pakai jaws ,teeth dan lips /tidak pakai ma hanya garis fractal atas dan bawah , yang saya ingini: jika candle hariini mendekati garis atas /fractal buy maka back ground berubah jadi kuning agar kita siap siap buy jika

Re: [Komunitas AmiBroker] IHSG wz 3Rangers

2010-06-04 Thread 5'2
Wah menarik tu Pak, tapi sayang gak bisa dipake di End Of Day y? Pak Hok di Kim Eng ada fasilitas stock screener untuk saham2 yg berada d bawah VWAP hari tsb ato berada d high kemaren ato d low kemaren gak? Tq With U absolutly can get it free, without U I'm Nothing -Original Message-

Re: [Komunitas AmiBroker] survey AFL yg paling mantap

2010-06-04 Thread Timur Langit
Garis atas, garis bawah ini maksudnya apa ya? kalau tembus fractal sell/garis atas =back ground tosca kalau tembus fractal sell/garis bawah =back ground merah 2010/6/4 sofialiauw sofiali...@yahoo.co.id menurut saya AFL yang dari pak TIMUR sangat membantu , kita jadi praktis tradingnya

Re: [Komunitas AmiBroker] AFL Buaya lucu-lucuan

2010-06-04 Thread FAUZI CHAIRANI
Pak Timur Langit, saya sudah bisa buat satu window yang difloating, tetapi bagaimana cara tampilkan (panggil) window -window lainnya, (karena tampilan chart pada layar di area sebelum difloatingkan jadi kosong tidak tersedia chart lagi untuk bahan yang akan difloatingkan)? Demikian pula 

Re: [Komunitas AmiBroker] IHSG wz 3Rangers

2010-06-04 Thread FAUZI CHAIRANI
Pak Timur, ada AFL Volume Weighted Average Price di AB Library dari Edward Pottasch. TQ From: Timur Langit timurlangit.is.h...@gmail.com To: amibroker-4-bei@yahoogroups.com Sent: Fri, June 4, 2010 1:47:06 PM Subject: Re: [Komunitas AmiBroker] IHSG wz 3Rangers