Re: [amibroker] (unknown)

2010-06-11 Thread reinsley
Does it exist such a medicine applied to AFL coding brain part ? Le 10/06/2010 13:52, J Paul Buffon a écrit : Thomas peddling medecine? JP *From:* amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] *On Behalf Of *ohneclue *Sent:* 06/10/2010 10:25 AM *To:*

[amibroker] How to sell at +5 or -5

2010-06-11 Thread Prabu
Hi, I'm new to amibroker. Please help me with this.. I'm testing it with a simple Ema crossover system. It buy on ema-crossover and Sell if price goes above or below 5 points from the buy price. I'm able to write the Buy condition. But i'm not able to write the sell condition. I'm confused

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Inquisitive Voyager
Sell=(*Buy*+5) *OR* (*Buy*-5); ps: it is better touse % than points. On Fri, Jun 11, 2010 at 11:58 AM, Prabu prabui...@gmail.com wrote: Hi, I'm new to amibroker. Please help me with this.. I'm testing it with a simple Ema crossover system. It buy on ema-crossover and Sell if price goes

[amibroker]

2010-06-11 Thread SANDIP CHAKRABORTY
DEAR ALL MEMBER AND FR'S, HOW CAN I USE DDE PLUGEIN FOR WWW.NSEINDIA.COM... PLS GUIDE ME. THANKS SANDIP CHAKRABORTY

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Prabu
hi, I tried this.. e1 = EMA(C, 14); e2 = EMA(C, 5); Buy = Cross(e2, e1); Sell = (Buy+5) OR (Buy-5); But it is buying and selling on the same bar.. Prabu On Fri, Jun 11, 2010 at 12:36 PM, Inquisitive Voyager hedonist2...@gmail.com wrote: Sell=( *Buy*+5) *OR* (*Buy*-5);ps: it is better

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Inquisitive Voyager
(1) as 5 is small factor. This happens- replace it with- Sell = (Buy*1.1) OR (Buy*.9); this sells when price is 10 % above or 10% bellow the buy. btw: are u trying it on eod data? On Fri, Jun 11, 2010 at 12:55 PM, Prabu prabui...@gmail.com wrote: hi, I tried this.. e1 = EMA(C, 14);

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Prabu
Still the result is same. (selling on the same bar). I'm trying it with 5 Minute periodicity. I even tried Sell = (Buy+30) OR (Buy-30); no use; On Fri, Jun 11, 2010 at 1:11 PM, Inquisitive Voyager hedonist2...@gmail.com wrote: (1) as 5 is small factor. This happens- replace it with- Sell

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Prabu
I think this is not the right way of sell condition.. Sell = (Buy+6) OR (Buy-5); On Fri, Jun 11, 2010 at 1:28 PM, Prabu prabui...@gmail.com wrote: Still the result is same. (selling on the same bar). I'm trying it with 5 Minute periodicity. I even tried Sell = (Buy+30) OR (Buy-30); no

[amibroker] Re: How to sell at +5 or -5

2010-06-11 Thread Mike
That is definitely not the correct way to do it. Any non zero value means true. Your Sell logic is always going to be a non zero value the way you currently have it, therefore you will Sell on every bar. There are two approaches that you can try: - Use ApplyStop with trailing stop and profit

[amibroker] Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread Bobby R
Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the scrip tab which is Open,gives multiple sound alert repeatedly. Can someone help me to recode the same for : 1)

[amibroker] Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread Bobby R
Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the scrip tab which is Open,gives multiple sound alert repeatedly. Can someone help me to recode the same for : 1) Give

[amibroker] Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread Bobby R
Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the scrip tab which is Open,gives multiple sound alert repeatedly. Can someone help me to recode the same for : 1) Give

[amibroker] Re: Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread Rob
Easy Booby... you just need to post once! --- In amibroker@yahoogroups.com, Bobby R bobby6...@... wrote: Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the

[amibroker] Limiting Drawdown in a Backtest

2010-06-11 Thread ics4mer
Hi, Doing a bit of backtesting lately, and I was wondering how to limit the drawdown while using another metric for the objective function. Lets say that I want to optimize for Net Profit, but I won't accept parameter sets that result in a drawdown of more than 30% I know it can be done (AB

[amibroker] Need help in coding

2010-06-11 Thread Vinay Gakkhar.
I use the following to get price bars in red, green or yellow color; red for downtrend, green for uptrend and yellow for unclear trend.PlotOHLC( Open, High, Low, Close, "Price", color, styleLine );How should my PlotShapes statement be so that I can get up down arrows also in the same 3

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Inquisitive Voyager
@prabhu: try this. e1 = MA(*C*, 14); e2 = MA(*C*, 5); *Buy* = Cross(e2, e1); pb= ValueWhen(Cross(e2, e1),*C*); * Sell*=IIf(*C*pb+5,*True*,IIf(*C*pb-5,*True*,*False*)); @mike: without IIF sell condition shall always be true. BTW,thanks for your input. On Fri, Jun 11, 2010 at 1:28 PM,

[amibroker] Divergence Indicator

2010-06-11 Thread Vishvesh
Hello Friends, I was wondering is there AFL available which highlights the price bar when there is divergence in momentum (RSI,MACD) etc. Any help highly appreciated, Thanks Regards Vishvesh

[amibroker] Re: Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread jollypollyanna
--- In amibroker@yahoogroups.com, Bobby R bobby6...@... wrote: Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the scrip tab which is Open,gives multiple sound

Re: [amibroker] Divergence Indicator

2010-06-11 Thread Howard B
Hi Vishvesh -- If you can define divergence in an unambiguous way, it can be programmed. What is your definition? Thanks, Howard On Fri, Jun 11, 2010 at 10:11 AM, Vishvesh vishvesh.chau...@gmail.comwrote: Hello Friends, I was wondering is there AFL available which highlights the price bar

[amibroker] Re: Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread jollypollyanna
--- In amibroker@yahoogroups.com ../../../../post?postID=tZS8P7EA9OVTrt5y32-kyiN7i6wuKNGiYOztue0QWMCWCTN\ nv_Vn_eyk-Yp6ywBujjYTfRtp-fBaFvSfcKPd , Bobby R bobby6...@... wrote: Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5

[amibroker] Re: Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread jollypollyanna
--- In amibroker@yahoogroups.com, Bobby R bobby6...@... wrote: Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the scrip tab which is Open,gives multiple sound

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Prabu
My sincere thanks to voyager Mike. On Fri, Jun 11, 2010 at 8:22 PM, Inquisitive Voyager hedonist2...@gmail.com wrote: @prabhu: try this. e1 = MA(*C*, 14); e2 = MA(*C*, 5); *Buy* = Cross(e2, e1); pb= ValueWhen(Cross(e2, e1),*C*); * Sell

[amibroker] Re: Need help in suppressing multiple sound alarms and scanning ALL Scrips for MA

2010-06-11 Thread jollypollyanna
--- In amibroker@yahoogroups.com, Bobby R bobby6...@... wrote: Hello, Can someone please help me with the following scrip. I have a problem, wherein thru' AA, with timeframe 5 min,when I scan, I get the scrips in the Alert Outputwindow. But the scrip tab which is Open,gives multiple sound

Re: [amibroker] Divergence Indicator [1 Attachment]

2010-06-11 Thread Vishvesh
When i say divergence it mean prices(low/high/close) have made newer reading but the RSI or MACD failed to do so. I have attached chart for ur perusal. Regards Vishvesh On Fri, Jun 11, 2010 at 10:12 PM, Howard B howardba...@gmail.com wrote: Hi Vishvesh -- If you can define divergence in

[amibroker] Re: Limiting Drawdown in a Backtest

2010-06-11 Thread re_rowland
One approach would be to look at risk-adjusted net-profit, and in your case you are defining risk to be drawdown. There are then 3 approaches you could take (actually there are more than 3). In psuedo code, the three would be something like: // step function penalty for MDD 30% (the

[amibroker] Re: How to sell at +5 or -5

2010-06-11 Thread Mike
Voyager, What I published earlier is logically equivalent to IIF and works fine. In both cases, you just need to use a large enough offset to actually see the position get held for a few bars. Prabhu, An important detail is that in both examples, you should be setting the BuyPrice to Close

[amibroker] Re: Limiting Drawdown in a Backtest

2010-06-11 Thread Mike
Also, Be sure to set the Optimization target field to FilteredNetProfit (the custom metric added in Howard's code) in the Walk Forward tab of the AA Settings. This applies to any optimization, not just Walk Forward. I believe that the entry must exactly match the way that it appears in the

Re: [amibroker] Divergence Indicator

2010-06-11 Thread Anthony Faragasso
there is a rsi divergence formula in the library...written by Dimitris - Original Message - From: Vishvesh To: amibroker@yahoogroups.com Sent: Friday, June 11, 2010 1:43 PM Subject: Re: [amibroker] Divergence Indicator [1 Attachment] [Attachment(s) from Vishvesh

Re: [amibroker] Limiting Drawdown in a Backtest

2010-06-11 Thread i cs
Thank you Howard, re_Rowland and Mike Was trying to avoid the CBT but it looks like I gotta dive in. BTW Howard, which of your books would best cover this level of experience? Thanks for your help again RZ From: Howard B howardba...@gmail.com To:

[amibroker] How Do You Handle Plotting Huge Max/Min Values In An Indicator?

2010-06-11 Thread jorgen_wallgren
Hi there! I have a problem I am hoping someone on the list can help me to solve. I have an Indicator (in it's own pane) which gives me a relative percentage value. At the market opening, this value can sometimes be very big or very small- for example oscillate between +245% and -450%. So at

[amibroker] impenetrable AFL

2010-06-11 Thread Yuki Taga
Impenetrable! (At least to me.) xcolor = IIf(TSI = SigLine, SetChartBkGradientFill( ParamColor(BgTop, ColorRGB( 172,172,172 )), ParamColor(BgBottom, ColorRGB( 172,172,172 ))), SetChartBkGradientFill( ParamColor(BgTop, ColorRGB(140,140,140)), ParamColor(BgBottom, ColorRGB(140,140,140;

Re: [amibroker] How Do You Handle Plotting Huge Max/Min Values In An Indicator?

2010-06-11 Thread Steve Dugas
Hi - How about something like this... RelPct = YourCalc; RelPct = Max( Min( RelPct, 50 ), -50 ); - Original Message - From: jorgen_wallgren jorgen.wallg...@gmail.com To: amibroker@yahoogroups.com Sent: Friday, June 11, 2010 10:59 PM Subject: [amibroker] How Do You Handle Plotting Huge

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Eco Syariah
Nice coding... seperti kata mas Eko... pokoke beres kalau dgn mas Liem... Untuk disesuaikan dgn saham BEI... mungkin perlu adjust parameter melalui optimasi kali ya ? On Fri, Jun 11, 2010 at 11:38 AM, Liem Hok Hwan limh...@gmail.com wrote: //All, ini draftnya spt ini. Nanti tinggal dipermak

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Liem Hok Hwan
Hua ha ha, itu khan draft kasar banget, biasanya saya kalau membuat indicator ya spt itu, dibikin coret2nya, ditempelin dulu. Cari semua kekurangan2nya, kalau memang bisa dioptimasi, ya dioptimasi, kalau kelihatan banget nggak prospek, ya ditinggal, cari yang lain. Tapi ngomong2 apakah benar

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Timur Langit
Codes yg sangat effektifsalut On Fri, Jun 11, 2010 at 1:47 PM, Liem Hok Hwan limh...@gmail.com wrote: Hua ha ha, itu khan draft kasar banget, biasanya saya kalau membuat indicator ya spt itu, dibikin coret2nya, ditempelin dulu. Cari semua kekurangan2nya, kalau memang bisa dioptimasi, ya

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread isfandi2001
Pak... usul nih, gimana kalo BB tsb kita ganti pake RSI yg sdh kolaborasi menjadi RSIBands, dicoba aja barangkali cocok regards, isfandi // RSI Bands use a variation of the RSI calculations to figure // out what price level a stock should be at to be considered // overbought/oversold. // //

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread isfandi2001
Pak.. ini saya udh dapet, bar color sdh terakumulasi oleh MACD jd gak perlu kebanyakan fractal yg tampil, semoga mengakomodir kebutuhan yg dimaksud. Monggo dicobain regards, isfandi _SECTION_BEGIN(MACD);

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Eco Syariah
Mas Isfandi... mudah2an ada yg combine dan dibikin simpel... yg penting bisa dipakai ambil keputusan untuk trading. Thanks, ES On Fri, Jun 11, 2010 at 4:40 PM, isfandi2...@yahoo.com wrote: Pak.. ini saya udh dapet, bar color sdh terakumulasi oleh MACD jd gak perlu kebanyakan fractal yg

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread nyoman_ardana
Terimakasih pak Isfandi, saya coba copas afl Bapak ini , namun masih ada kesalahan pada filter=Buy OR Sell kebawah dan error 31 (syntax error) . Bisa dibantu untuk koreksinya, maklum saya nggak ngerti buat afl . Thanks berat pak Is. Salam (ardana) Powered by Telkomsel BlackBerry®

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread greenhorn
mas isfandi...mantap sekali mas...MACD-nya ngasih signal lebih cepat dari yang biasa... thanks, On Fri, Jun 11, 2010 at 10:40 AM, isfandi2...@yahoo.com wrote: Pak.. ini saya udh dapet, bar color sdh terakumulasi oleh MACD jd gak perlu kebanyakan fractal yg tampil, semoga mengakomodir

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread isfandi2001
Pak Nyoman... itu biasa cuma masalah spasi aja, mohon dicermati dgn melakukan verify syntax stlh di copas. cursor akan memberitahukan dimana posisi spasi yg msh error, tinggal di rapatkan saja. good luck From: nyoman_ard...@yahoo.com nyoman_ard...@yahoo.com

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread isfandi2001
Pak Timur, ini afl canggih silahkan bpk buka parameter aktifkan off to on, nanti akan tapil MACD bersama chart price nya, warnanya keren kan pak..? met mencoba... regards, From: Timur Langit timurlangit.is.h...@gmail.com To: amibroker-4-bei@yahoogroups.com

RE: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Hermanto H.
Copas ke formula editornya , lalu bisa di test akan dikasih tahu salah di line brp dan akan di kasih juga kenapa salahnya. From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-...@yahoogroups.com] On Behalf Of isfandi2...@yahoo.com Sent: Friday, June 11, 2010 6:42 PM To:

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread nyoman_ardana
Saya akan coba Pak. Thanks berat pak Is , mau berbagi..sukses ya Pak. Salam Powered by Telkomsel BlackBerry® -Original Message- From: isfandi2...@yahoo.com Sender: amibroker-4-bei@yahoogroups.com Date: Fri, 11 Jun 2010 04:41:35 To: amibroker-4-bei@yahoogroups.com Reply-To:

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread isfandi2001
Mas Greenhorn..., dan buat rekan2 lain yg udh copas jgn lupa di ON kan yg ada di parameters trading by safety deh.. From: greenhorn gre3nh...@gmail.com To: amibroker-4-bei@yahoogroups.com Sent: Fri, June 11, 2010 6:34:29 PM Subject: Re: [Komunitas AmiBroker]

Bls: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread David Novian
Pak Isfandi bagaimana cara meng ON kannya? Maaf saya masih baru. Terima kasih. David Novian Dari: isfandi2...@yahoo.com isfandi2...@yahoo.com Kepada: amibroker-4-bei@yahoogroups.com Terkirim: Jum, 11 Juni, 2010 19:01:39 Judul: Re: [Komunitas AmiBroker] A

RE: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Timur Langit
Iya, keren abis... BTW, kalau ingin tambah tulisan copet dibawah arrow gimana ya? Timur From: amibroker-4-bei@yahoogroups.com [mailto:amibroker-4-...@yahoogroups.com] On Behalf Of greenhorn Sent: Friday, June 11, 2010 7:18 PM To: amibroker-4-bei@yahoogroups.com Subject: Re: [Komunitas

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread greenhorn
Klik kanan --parameter---pilih ON...:D On Sat, Jun 12, 2010 at 8:08 AM, David Novian davidnov...@yahoo.co.idwrote: Pak Isfandi bagaimana cara meng ON kannya? Maaf saya masih baru. Terima kasih. David Novian -- *Dari:* isfandi2...@yahoo.com

Re: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread greenhorn
Usul nih Pak David... Manual Amibroker sekali2 dibaca,pak... Saya juga sering begitu, beli TV langsung dinyalain kirain sama semua...gak baca pernah manual...:D On Sat, Jun 12, 2010 at 8:08 AM, David Novian davidnov...@yahoo.co.idwrote: Pak Isfandi bagaimana cara meng ON kannya? Maaf saya

Re: Bls: [Komunitas AmiBroker] A Simple Strategy for Day Trading

2010-06-11 Thread Timur Langit
Arahkan cursor ke chart lalu [right button] pilih parameters baru cari yg OFF dan tinggal di ON kan Timur On Jun 12, 2010, at 7:08 AM, David Novian davidnov...@yahoo.co.id wrote: Pak Isfandi bagaimana cara meng ON kannya? Maaf saya masih baru. Terima kasih. David Novian Dari: