[Komunitas AmiBroker] Tantangan buat Analysis yg buat research bumi !!!!!

2008-10-09 Thread ki_4ever888
gila, analysis ML itu memang suka2 buat analisis aja..
 
di researchnya, dibilang total penjualan thn 2008 bisa 4,158 million USD.. 
pdhal kl lht lapkeu bumi yg ude direlease di www.idx.co.id. total penjualan 
sampe semester pertama 2008 baru 1,493 million...
 
emank bisa dikejar penjualan yg gitu gede??? 1,493 ke 4,158??? jauh amat tuh...
emank angka2 itu bisa turun dr langit???
 
selain itu asumsi net profit thn 2008 yg dibuat adl 879 million USD.. skrg 
sampe semester 2008, net profit bumi cuman 300 million aja.. jauh amat tuh..
 
ada lg 1 keanehan di research ML ini, masa investasi di Herald tdk dimasukkan?? 
aneh2 aja sih analysis ini
 
gw lht di akhir researchnya, tertulis inco outperform, sdgkan Antam 
underperform??
 
aneh2 aja, lht di www.lme.com dulu...
harga nickel turun trus.. gmn bisa outperform ??? dr mana angka2nya datang?? 
 
memang jgn percaya ama analysis deh
kl analysis 100% bnr, maka analysis yg bakalan jd org terkaya di indonesia 
deh...
 
tp memang buat analysis itu, boleh aja dibuat target yg tinggi2.. abisnya maybe 
analysis sendiri itu lg nyangkut di harga 8000an.. so dibuat research, spy org 
percaya  bisa diangkat ke level 8000an.. spy dia sendiri bisa keluar barang.. 
hahaha
 
selain itu jg, research itu boleh aja diganti.. hr ini bilang outperform, 
minggu dpn bilang underperform :))
 
lagipula ada kata sakti: DISLAIMER ON !!! utk analysist itu.. :P
 
btw, temen2 di milis ini.. pernah berpikir gak, seandainya analysis itu sendiri 
main saham.. kira2 apakah mereka bisa menang gak ya?? :))
 
note: tulisan ini tdk bermaksud utk menghina analysis.. 
hanya imbauan kpd analysis  yg ngaku nya prof trader jgn sembarang buat target 
harga deh...



  

[amibroker] Analyze all stock symbols at endof day

2008-10-09 Thread bhakta79
Hi,

My apologies if I have re-posted this but I couldn't find similar topics.

After I get EOD data for all the symbols (about 1000 symbols), I want
to run a AFL script on all these symbols and give a consolidate output.

My AFL scripts gives a buy indication if price crosses 10-day EMA.

I want a single output that lists all symbols that gave a Buy signal.
Is this possible?

thanks
-bhakta



[amibroker] MIDAS from TASC

2008-10-09 Thread Carl Vanhaes
Thomasz, 
Thank you for providing this useful code in TASC. It works well but 
however I had a question: in using the indicator on intraday charts (1 
minute) I noticed that when you enter a date in the pameter it is 
actually taking the date - 1. Example: if I enter Oct 8, 2008, 18:26:00 
it will actually plot the line starting at Oct 7, 2008, 18:26:00.
How it that? I ask because I am not to competent in AFL and could not 
understand this by opening your formula in the editor.
Thank you for any help,
Carl




 IMPORTANT 
This group is for the discussion between users only.
This is *NOT* technical support channel.

*
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/

* Your email settings:
Individual Email | Traditional

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

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread Tomasz Janeczko
Use dedicated plugin
http://www.amibroker.com/ib.html

Using DDE makes no sense when there is dedicated plugin.

Best regards,
Tomasz Janeczko
amibroker.com
- Original Message - 
From: Andrew Z [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Thursday, October 09, 2008 2:26 PM
Subject: [amibroker] IBFX and AB DDE


 G'day all,
 
 At the risk of acronym overload, is anyone successfully using the AB's
 built-in DDE plugin with IBFX for forex data?
 
 I know that my IBFX DDE is working because I can set it up fine in
 excel. In AB, however, it doesn't get past the yellow WAIT status.
 
 I have read the previous emails but they haven't really shed any light
 on this.
 
 Any suggestions would be most welcome.
 
 Cheers,
 Andrew.
 
 
 
 
  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.
 
 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
 SUPPORT {at} amibroker.com
 *
 
 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/
 
 For other support material please check also:
 http://www.amibroker.com/support.html
 
 *
 Yahoo! Groups Links
 
 
 


Re: [amibroker] i need MACD signal when it is in overbouht/oversold zone not cross over

2008-10-09 Thread Rakesh Sahgal
define overbought oversold  with ref to the MACD first.



On Tue, Oct 7, 2008 at 7:54 PM, VenkatRamanan
[EMAIL PROTECTED]wrote:




 

  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.

 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
 SUPPORT {at} amibroker.com
 *

 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html

 *
 Yahoo! Groups Links






Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread Andrew Z
IBFX is InterBank FX not Interactive Brokers.

Tomasz Janeczko wrote:
 Use dedicated plugin
 http://www.amibroker.com/ib.html
 
 Using DDE makes no sense when there is dedicated plugin.
 
 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message - 
 From: Andrew Z [EMAIL PROTECTED]
 To: amibroker@yahoogroups.com
 Sent: Thursday, October 09, 2008 2:26 PM
 Subject: [amibroker] IBFX and AB DDE
 
 
 G'day all,

 At the risk of acronym overload, is anyone successfully using the AB's
 built-in DDE plugin with IBFX for forex data?

 I know that my IBFX DDE is working because I can set it up fine in
 excel. In AB, however, it doesn't get past the yellow WAIT status.

 I have read the previous emails but they haven't really shed any light
 on this.

 Any suggestions would be most welcome.

 Cheers,
 Andrew.


Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread Andrew Z
Ok, I know there is some comms established because when I close my IBFX
platform, the yellow WAIT status turns to a red ERR.


Andrew Z wrote:
 IBFX is InterBank FX not Interactive Brokers.
 
 Tomasz Janeczko wrote:
 Use dedicated plugin
 http://www.amibroker.com/ib.html

 Using DDE makes no sense when there is dedicated plugin.

 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message - 
 From: Andrew Z [EMAIL PROTECTED]
 To: amibroker@yahoogroups.com
 Sent: Thursday, October 09, 2008 2:26 PM
 Subject: [amibroker] IBFX and AB DDE


 G'day all,

 At the risk of acronym overload, is anyone successfully using the AB's
 built-in DDE plugin with IBFX for forex data?

 I know that my IBFX DDE is working because I can set it up fine in
 excel. In AB, however, it doesn't get past the yellow WAIT status.

 I have read the previous emails but they haven't really shed any light
 on this.

 Any suggestions would be most welcome.

 Cheers,
 Andrew.
 
 
 
  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.
 
 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
 SUPPORT {at} amibroker.com
 *
 
 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/
 
 For other support material please check also:
 http://www.amibroker.com/support.html
 
 *
 Yahoo! Groups Links
 
 
 
 


[amibroker] Re: Analyze all stock symbols at endof day

2008-10-09 Thread Mohammed
Hi bhakta79,

If you want some assistance let me know.

Regards


--- In amibroker@yahoogroups.com, Prashanth [EMAIL PROTECTED] wrote:

 Hello,
 
 Use AddtoWatchlist() syntax to move all the Buy Signal symbols to a 
seperate
 Watchlist.
 
 Cheers
 
 Prashanth
 
 - Original Message - 
 From: bhakta79 [EMAIL PROTECTED]
 To: amibroker@yahoogroups.com
 Sent: Thursday, October 09, 2008 12:44
 Subject: [amibroker] Analyze all stock symbols at endof day
 
 
  Hi,
 
  My apologies if I have re-posted this but I couldn't find similar 
topics.
 
  After I get EOD data for all the symbols (about 1000 symbols), I 
want
  to run a AFL script on all these symbols and give a consolidate 
output.
 
  My AFL scripts gives a buy indication if price crosses 10-day EMA.
 
  I want a single output that lists all symbols that gave a Buy 
signal.
  Is this possible?
 
  thanks
  -bhakta
 
 
  
 
   IMPORTANT 
  This group is for the discussion between users only.
  This is *NOT* technical support channel.
 
  *
  TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail 
directly to
  SUPPORT {at} amibroker.com
  *
 
  For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/
 
  For other support material please check also:
  http://www.amibroker.com/support.html
 
  *
  Yahoo! Groups Links
 
 
 





Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread reinsley
Tomasz,

  Using DDE makes no sense when there is dedicated plugin.

It could makes sense if one PC works in RT with ibc and with the plugin 
and a second PC is used for formula testing.
It will be an easy way to dupplicate historical data nearly in RT on a 
second PC.

Am I on the wrong track ?

Best regards

Tomasz Janeczko a écrit :

 Use dedicated plugin
 http://www.amibroker.com/ib.html http://www.amibroker.com/ib.html

 Using DDE makes no sense when there is dedicated plugin.

 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message -
 From: Andrew Z [EMAIL PROTECTED] 
 mailto:wizard%40netspace.net.au
 To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com
 Sent: Thursday, October 09, 2008 2:26 PM
 Subject: [amibroker] IBFX and AB DDE

  G'day all,
 
  At the risk of acronym overload, is anyone successfully using the AB's
  built-in DDE plugin with IBFX for forex data?
 
  I know that my IBFX DDE is working because I can set it up fine in
  excel. In AB, however, it doesn't get past the yellow WAIT status.
 
  I have read the previous emails but they haven't really shed any light
  on this.
 
  Any suggestions would be most welcome.
 
  Cheers,
  Andrew.
 
 
  
 
   IMPORTANT 
  This group is for the discussion between users only.
  This is *NOT* technical support channel.
 
  *
  TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail 
 directly to
  SUPPORT {at} amibroker.com
  *
 
  For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/ http://www.amibroker.com/devlog/
 
  For other support material please check also:
  http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
 
  *
  Yahoo! Groups Links
 
 
 

  




Re: [amibroker] Analyze all stock symbols at endof day

2008-10-09 Thread Prashanth
Hello,

Use AddtoWatchlist() syntax to move all the Buy Signal symbols to a seperate
Watchlist.

Cheers

Prashanth

- Original Message - 
From: bhakta79 [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Thursday, October 09, 2008 12:44
Subject: [amibroker] Analyze all stock symbols at endof day


 Hi,

 My apologies if I have re-posted this but I couldn't find similar topics.

 After I get EOD data for all the symbols (about 1000 symbols), I want
 to run a AFL script on all these symbols and give a consolidate output.

 My AFL scripts gives a buy indication if price crosses 10-day EMA.

 I want a single output that lists all symbols that gave a Buy signal.
 Is this possible?

 thanks
 -bhakta


 

  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.

 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
 SUPPORT {at} amibroker.com
 *

 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html

 *
 Yahoo! Groups Links






[amibroker] Re: AmiBroker 5.19.0 BETA released

2008-10-09 Thread Elizabeth Kennedy
Tomasz,

In your list of changes has an entry
math functions (sin,cos,log, …) added to profiler reporting (array 
versions only) 

What does array versions only means? I only knew one version of 
Amibroker.

Regards

Liz


--- In amibroker@yahoogroups.com, Tomasz Janeczko [EMAIL PROTECTED] 
wrote:

 Hello,
 
 AmiBroker 5.19.0 BETA is released now:
 
 http://www.amibroker.com/devlog/2008/10/03/amibroker-5190-beta-
released/
 
 Best regards,
 Tomasz Janeczko
 amibroker.com





[amibroker] Which email account to use ?

2008-10-09 Thread umrperumal

Dear members

I have email account with gmail.com.

I am not able to get email alerts function to work with gmail.   I 
understand it is not possible with gmail account due to SSL(secure) 
problem.

I am prepared to open email account with any other service provider if 
I can get email alerts through this account.   Can any of you suggest 
list of email providers which are compatible with email alert function 
of AB.

With kind regards

perumal





[amibroker] Re: Which email account to use ?

2008-10-09 Thread umrperumal
Hi members

Do not bother.   I got the problem solved.   thanks.   

perumal


--- In amibroker@yahoogroups.com, umrperumal [EMAIL PROTECTED] 
wrote:

 
 Dear members
 
 I have email account with gmail.com.
 
 I am not able to get email alerts function to work with gmail.   I 
 understand it is not possible with gmail account due to SSL
(secure) 
 problem.
 
 I am prepared to open email account with any other service 
provider if 
 I can get email alerts through this account.   Can any of you 
suggest 
 list of email providers which are compatible with email alert 
function 
 of AB.
 
 With kind regards
 
 perumal





[amibroker] My amibroker face trouble shooting

2008-10-09 Thread VenkatRamanan
When we are using auto analyser for signal generation, buy and sell 
signal appear properly but in live stream updatation we faced a 
problem that is signal arrow appeared but it is suddenly 
disappeared.How do i solve this problem?



Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread Tomasz Janeczko
Hello,

DDE does not work across computers so that won't work with DDE.

It will however work with dedicated plugin, if you just go to
File-Database Settings, Configure and specify different IP number there.

So again dedicated is better than DDE.

Best regards,
Tomasz Janeczko
amibroker.com
- Original Message - 
From: reinsley [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Thursday, October 09, 2008 4:31 PM
Subject: Re: [amibroker] IBFX and AB DDE


 Tomasz,

  Using DDE makes no sense when there is dedicated plugin.

 It could makes sense if one PC works in RT with ibc and with the plugin
 and a second PC is used for formula testing.
 It will be an easy way to dupplicate historical data nearly in RT on a
 second PC.

 Am I on the wrong track ?

 Best regards

 Tomasz Janeczko a écrit :

 Use dedicated plugin
 http://www.amibroker.com/ib.html http://www.amibroker.com/ib.html

 Using DDE makes no sense when there is dedicated plugin.

 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message -
 From: Andrew Z [EMAIL PROTECTED]
 mailto:wizard%40netspace.net.au
 To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com
 Sent: Thursday, October 09, 2008 2:26 PM
 Subject: [amibroker] IBFX and AB DDE

  G'day all,
 
  At the risk of acronym overload, is anyone successfully using the AB's
  built-in DDE plugin with IBFX for forex data?
 
  I know that my IBFX DDE is working because I can set it up fine in
  excel. In AB, however, it doesn't get past the yellow WAIT status.
 
  I have read the previous emails but they haven't really shed any light
  on this.
 
  Any suggestions would be most welcome.
 
  Cheers,
  Andrew.
 
 
  
 
   IMPORTANT 
  This group is for the discussion between users only.
  This is *NOT* technical support channel.
 
  *
  TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail
 directly to
  SUPPORT {at} amibroker.com
  *
 
  For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/ http://www.amibroker.com/devlog/
 
  For other support material please check also:
  http://www.amibroker.com/support.html
 http://www.amibroker.com/support.html
 
  *
  Yahoo! Groups Links
 
 
 





 

  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.

 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
 SUPPORT {at} amibroker.com
 *

 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html

 *
 Yahoo! Groups Links






[amibroker] How to synchronize 2 different databases

2008-10-09 Thread mohany1



I have 2 different databases - yahoo  Quotes plus. I would like to have 
the same layouts in both of the databases. Looks like , I cant just copy 
*.awl files from one another. or the layouts folders. Is there any way 
to do this


Thanks

Mohan


Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread reinsley
Thank you Thomasz


Tomasz Janeczko a écrit :

 Hello,

 DDE does not work across computers so that won't work with DDE.

 It will however work with dedicated plugin, if you just go to
 File-Database Settings, Configure and specify different IP number there.

 So again dedicated is better than DDE.

 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message -
 From: reinsley [EMAIL PROTECTED] mailto:reinsley%40yahoo.fr
 To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com
 Sent: Thursday, October 09, 2008 4:31 PM
 Subject: Re: [amibroker] IBFX and AB DDE

  Tomasz,
 
   Using DDE makes no sense when there is dedicated plugin.
 
  It could makes sense if one PC works in RT with ibc and with the plugin
  and a second PC is used for formula testing.
  It will be an easy way to dupplicate historical data nearly in RT on a
  second PC.
 
  Am I on the wrong track ?
 
  Best regards
 
  Tomasz Janeczko a écrit :
 
  Use dedicated plugin
  http://www.amibroker.com/ib.html http://www.amibroker.com/ib.html 
 http://www.amibroker.com/ib.html http://www.amibroker.com/ib.html
 
  Using DDE makes no sense when there is dedicated plugin.
 
  Best regards,
  Tomasz Janeczko
  amibroker.com
  - Original Message -
  From: Andrew Z [EMAIL PROTECTED] 
 mailto:wizard%40netspace.net.au
  mailto:wizard%40netspace.net.au
  To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com 
 mailto:amibroker%40yahoogroups.com
  Sent: Thursday, October 09, 2008 2:26 PM
  Subject: [amibroker] IBFX and AB DDE
 
   G'day all,
  
   At the risk of acronym overload, is anyone successfully using the 
 AB's
   built-in DDE plugin with IBFX for forex data?
  
   I know that my IBFX DDE is working because I can set it up fine in
   excel. In AB, however, it doesn't get past the yellow WAIT status.
  
   I have read the previous emails but they haven't really shed any 
 light
   on this.
  
   Any suggestions would be most welcome.
  
   Cheers,
   Andrew.
  
  
   
  
    IMPORTANT 
   This group is for the discussion between users only.
   This is *NOT* technical support channel.
  
   *
   TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail
  directly to
   SUPPORT {at} amibroker.com
   *
  
   For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
   http://www.amibroker.com/devlog/ 
 http://www.amibroker.com/devlog/ http://www.amibroker.com/devlog/ 
 http://www.amibroker.com/devlog/
  
   For other support material please check also:
   http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
  http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
  
   *
   Yahoo! Groups Links
  
  
  
 
 
 
 
 
  
 
   IMPORTANT 
  This group is for the discussion between users only.
  This is *NOT* technical support channel.
 
  *
  TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail 
 directly to
  SUPPORT {at} amibroker.com
  *
 
  For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
  http://www.amibroker.com/devlog/ http://www.amibroker.com/devlog/
 
  For other support material please check also:
  http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
 
  *
  Yahoo! Groups Links
 
 
 

  




[amibroker] Custom Composite Index Problem

2008-10-09 Thread toddk63
I have created a custom Index using AddToComposite. Here is the
code that runs in Exploration:
-
Counter = IIf(IsNull(Close),0,1);

AddToComposite( Counter * ROC(Close,1), ~MyIndex, C, 1+2+8+16 );
AddToComposite( Counter, ~MyIndex, I, 1+2+8+16 ); 

Index = 100 + Cum(Foreign( ~MyIndex, C ) / Foreign( ~MyIndex,
I ));

Multiplier = (100 + Foreign( ~MyIndex, C )/Foreign( ~MyIndex,
I ))/100;

Filter=1;   

AddColumn (Close,Close);
AddColumn (Index,Index);
AddColumn (Multiplier*100,Multiplier x 100);
--
The problem is using the CUM function adds the daily percent change
to calculate the Index.  I wish to use the Multiplier to calculate
an index where the previous days index value is multiplied by the
Multiplier.  The index should initialize as Index = 100 to start
with the first bar. Its probably simple fix, but I can't get there.

Frustrated,

Todd K.



[amibroker] Re: Custom Composite Index Problem

2008-10-09 Thread Mike
Hi,

You may find the following document useful for some ideas (thanks to 
Herman):

  http://www.amibroker.org/3rdparty/IntroToAtc.pdf

Additionally, be sure to study page 17 to ensure that your immediate 
Foreign usage of ~MyIndex within a single exploration is behaving as 
you expect.

Mike

--- In amibroker@yahoogroups.com, toddk63 [EMAIL PROTECTED] wrote:

 I have created a custom Index using AddToComposite. Here is the
 code that runs in Exploration:
 -
 Counter = IIf(IsNull(Close),0,1);
 
 AddToComposite( Counter * ROC(Close,1), ~MyIndex, C, 1+2+8+16 );
 AddToComposite( Counter, ~MyIndex, I, 1+2+8+16 ); 
 
 Index = 100 + Cum(Foreign( ~MyIndex, C ) / Foreign( ~MyIndex,
 I ));
 
 Multiplier = (100 + Foreign( ~MyIndex, C )/Foreign( ~MyIndex,
 I ))/100;
 
 Filter=1; 
 
 AddColumn (Close,Close);
 AddColumn (Index,Index);
 AddColumn (Multiplier*100,Multiplier x 100);
 --
 The problem is using the CUM function adds the daily percent 
change
 to calculate the Index.  I wish to use the Multiplier to 
calculate
 an index where the previous days index value is multiplied by the
 Multiplier.  The index should initialize as Index = 100 to start
 with the first bar. Its probably simple fix, but I can't get there.
 
 Frustrated,
 
 Todd K.






[amibroker] Trouble with Equity function

2008-10-09 Thread markus.witzler
Hello,

i would like to use another definition of equity (as is being provided
by AmiBroker) to use for position-sizing.

Instead of total portfolio equity (cash plus value of open positions),
I intend to use raimining cash balance PLUS value of all open
positions but only with their respective sell stop levels (in the case
of long positions,  otherwhise: buy stops in case of shorts).

For instance, if the remaining cash balance is 80.000,-- USD and I
have a long position with a value of 20.000,-- USD on which I have a
sell stop at 10.000,-- USD, then I would like to USE 90.000,-- USD for
equity to use for my position size algorithm, for instance 2 percent.

I find this more logic than using the day by day values of open
positions. 

Has anybody out there modified AB´s equity function to achieve
something similar?

By AB support, I was directed to
http://www.amibroker.com/guide/a_custombacktest.html but i have not
enough expertise to write a code myself for this  - I´m struggling
enough with regular AFL.

Thanks for any help on this!

Markus



Re: [amibroker] IBFX and AB DDE

2008-10-09 Thread Andrew Z
And back to the topic at hand seeing as a dedicated plugin is not
available for IBFX...anyone else using InterBank FX with DDE plugin?

Cheers,
Andrew.

reinsley wrote:
 Thank you Thomasz
 
 
 Tomasz Janeczko a écrit :
 Hello,

 DDE does not work across computers so that won't work with DDE.

 It will however work with dedicated plugin, if you just go to
 File-Database Settings, Configure and specify different IP number there.

 So again dedicated is better than DDE.

 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message -
 From: reinsley [EMAIL PROTECTED] mailto:reinsley%40yahoo.fr
 To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com
 Sent: Thursday, October 09, 2008 4:31 PM
 Subject: Re: [amibroker] IBFX and AB DDE

 Tomasz,

  Using DDE makes no sense when there is dedicated plugin.
 It could makes sense if one PC works in RT with ibc and with the plugin
 and a second PC is used for formula testing.
 It will be an easy way to dupplicate historical data nearly in RT on a
 second PC.

 Am I on the wrong track ?

 Best regards

 Tomasz Janeczko a écrit :
 Use dedicated plugin
 http://www.amibroker.com/ib.html http://www.amibroker.com/ib.html 
 http://www.amibroker.com/ib.html http://www.amibroker.com/ib.html
 Using DDE makes no sense when there is dedicated plugin.

 Best regards,
 Tomasz Janeczko
 amibroker.com
 - Original Message -
 From: Andrew Z [EMAIL PROTECTED] 
 mailto:wizard%40netspace.net.au
 mailto:wizard%40netspace.net.au
 To: amibroker@yahoogroups.com mailto:amibroker%40yahoogroups.com 
 mailto:amibroker%40yahoogroups.com
 Sent: Thursday, October 09, 2008 2:26 PM
 Subject: [amibroker] IBFX and AB DDE

 G'day all,

 At the risk of acronym overload, is anyone successfully using the 
 AB's
 built-in DDE plugin with IBFX for forex data?

 I know that my IBFX DDE is working because I can set it up fine in
 excel. In AB, however, it doesn't get past the yellow WAIT status.

 I have read the previous emails but they haven't really shed any 
 light
 on this.

 Any suggestions would be most welcome.

 Cheers,
 Andrew.


 

  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.

 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail
 directly to
 SUPPORT {at} amibroker.com
 *

 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/ 
 http://www.amibroker.com/devlog/ http://www.amibroker.com/devlog/ 
 http://www.amibroker.com/devlog/
 For other support material please check also:
 http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
 http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
 *
 Yahoo! Groups Links






 

  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.

 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail 
 directly to
 SUPPORT {at} amibroker.com
 *

 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/ http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html 
 http://www.amibroker.com/support.html
 *
 Yahoo! Groups Links



  
 
 
 
 
 
  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.
 
 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
 SUPPORT {at} amibroker.com
 *
 
 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/
 
 For other support material please check also:
 http://www.amibroker.com/support.html
 
 *
 Yahoo! Groups Links
 
 
 
 


[amibroker] Re: Custom Composite Index Problem

2008-10-09 Thread toddk63
Thanks Mike.  I had read that doc.  And I did notice I had to run
Explore a couple of times to get things to converge properly.

My basic problem is I cannot use yesterdays Index times the
Multiplier to get todays Index.  Something like:

Index = Ref(Index,1) * Multiplier

This doesn't work and gives an error.  Something about using an
un-initialized variable.

Todd K. 

--- In amibroker@yahoogroups.com, Mike [EMAIL PROTECTED] wrote:

 Hi,
 
 You may find the following document useful for some ideas (thanks to 
 Herman):
 
   http://www.amibroker.org/3rdparty/IntroToAtc.pdf
 
 Additionally, be sure to study page 17 to ensure that your immediate 
 Foreign usage of ~MyIndex within a single exploration is behaving as 
 you expect.
 
 Mike
 
 --- In amibroker@yahoogroups.com, toddk63 toddk63@ wrote:
 
  I have created a custom Index using AddToComposite. Here is the
  code that runs in Exploration:
  -
  Counter = IIf(IsNull(Close),0,1);
  
  AddToComposite( Counter * ROC(Close,1), ~MyIndex, C, 1+2+8+16 );
  AddToComposite( Counter, ~MyIndex, I, 1+2+8+16 ); 
  
  Index = 100 + Cum(Foreign( ~MyIndex, C ) / Foreign( ~MyIndex,
  I ));
  
  Multiplier = (100 + Foreign( ~MyIndex, C )/Foreign( ~MyIndex,
  I ))/100;
  
  Filter=1;   
  
  AddColumn (Close,Close);
  AddColumn (Index,Index);
  AddColumn (Multiplier*100,Multiplier x 100);
  --
  The problem is using the CUM function adds the daily percent 
 change
  to calculate the Index.  I wish to use the Multiplier to 
 calculate
  an index where the previous days index value is multiplied by the
  Multiplier.  The index should initialize as Index = 100 to start
  with the first bar. Its probably simple fix, but I can't get there.
  
  Frustrated,
  
  Todd K.
 





[amibroker] Re: Custom Composite Index Problem

2008-10-09 Thread Mike
Todd,

 Index = Ref(Index,1) * Multiplier

A few observations:

1. You should use Ref(..., -1) if you want the previous bar's value.

2. Uninitialized variable errors come from trying to use a variable 
that has not yet been assigned a value. In your example, if this is 
the first time you are assigning a value to Index, then the problem 
may be that you are trying to use a value (i.e. Index) that has not 
yet been defined (i.e. what do you expect to be in Ref(Index, ...) 
when Index itself has not yet been set to anything?).

3. Note that the values for an array are all set at the same time, not 
sequentially bar by bar:

http://www.amibroker.com/guide/h_understandafl.html 

When trying to calculate current array values based on earlier values 
from that same array (e.g. current value is a multiple of the previous 
value), you will usually have to use looping code. Though, you may be 
able to use AMA or AMA2 to do the job for you.

http://www.amibroker.com/guide/afl/afl_view.php?id=18
http://www.amibroker.com/guide/afl/afl_view.php?id=19

Mike

-- In amibroker@yahoogroups.com, toddk63 [EMAIL PROTECTED] wrote:

 Thanks Mike.  I had read that doc.  And I did notice I had to run
 Explore a couple of times to get things to converge properly.
 
 My basic problem is I cannot use yesterdays Index times the
 Multiplier to get todays Index.  Something like:
 
 Index = Ref(Index,1) * Multiplier
 
 This doesn't work and gives an error.  Something about using an
 un-initialized variable.
 
 Todd K. 
 
 --- In amibroker@yahoogroups.com, Mike sfclimbers@ wrote:
 
  Hi,
  
  You may find the following document useful for some ideas (thanks 
to 
  Herman):
  
http://www.amibroker.org/3rdparty/IntroToAtc.pdf
  
  Additionally, be sure to study page 17 to ensure that your 
immediate 
  Foreign usage of ~MyIndex within a single exploration is behaving 
as 
  you expect.
  
  Mike
  
  --- In amibroker@yahoogroups.com, toddk63 toddk63@ wrote:
  
   I have created a custom Index using AddToComposite. Here is 
the
   code that runs in Exploration:
   -
   Counter = IIf(IsNull(Close),0,1);
   
   AddToComposite( Counter * ROC(Close,1), ~MyIndex, C, 
1+2+8+16 );
   AddToComposite( Counter, ~MyIndex, I, 1+2+8+16 ); 
   
   Index = 100 + Cum(Foreign( ~MyIndex, C ) / Foreign( 
~MyIndex,
   I ));
   
   Multiplier = (100 + Foreign( ~MyIndex, C )/Foreign( 
~MyIndex,
   I ))/100;
   
   Filter=1; 
   
   AddColumn (Close,Close);
   AddColumn (Index,Index);
   AddColumn (Multiplier*100,Multiplier x 100);
   --
   The problem is using the CUM function adds the daily percent 
  change
   to calculate the Index.  I wish to use the Multiplier to 
  calculate
   an index where the previous days index value is multiplied by 
the
   Multiplier.  The index should initialize as Index = 100 to 
start
   with the first bar. Its probably simple fix, but I can't get 
there.
   
   Frustrated,
   
   Todd K.
  
 






[amibroker] Re: Custom Composite Index Problem

2008-10-09 Thread toddk63
Ref(C,-1)...Oh yeah.  Forgot.  I meant what I knew to say.

Thanks!  These are exactly the hints I need.  I'll give it another shot.

Todd K.

--- In amibroker@yahoogroups.com, Mike [EMAIL PROTECTED] wrote:

 Todd,
 
  Index = Ref(Index,1) * Multiplier
 
 A few observations:
 
 1. You should use Ref(..., -1) if you want the previous bar's value.
 
 2. Uninitialized variable errors come from trying to use a variable 
 that has not yet been assigned a value. In your example, if this is 
 the first time you are assigning a value to Index, then the problem 
 may be that you are trying to use a value (i.e. Index) that has not 
 yet been defined (i.e. what do you expect to be in Ref(Index, ...) 
 when Index itself has not yet been set to anything?).
 
 3. Note that the values for an array are all set at the same time, not 
 sequentially bar by bar:
 
 http://www.amibroker.com/guide/h_understandafl.html 
 
 When trying to calculate current array values based on earlier values 
 from that same array (e.g. current value is a multiple of the previous 
 value), you will usually have to use looping code. Though, you may be 
 able to use AMA or AMA2 to do the job for you.
 
 http://www.amibroker.com/guide/afl/afl_view.php?id=18
 http://www.amibroker.com/guide/afl/afl_view.php?id=19
 
 Mike
 
 -- In amibroker@yahoogroups.com, toddk63 toddk63@ wrote:
 
  Thanks Mike.  I had read that doc.  And I did notice I had to run
  Explore a couple of times to get things to converge properly.
  
  My basic problem is I cannot use yesterdays Index times the
  Multiplier to get todays Index.  Something like:
  
  Index = Ref(Index,1) * Multiplier
  
  This doesn't work and gives an error.  Something about using an
  un-initialized variable.
  
  Todd K. 
  
  --- In amibroker@yahoogroups.com, Mike sfclimbers@ wrote:
  
   Hi,
   
   You may find the following document useful for some ideas (thanks 
 to 
   Herman):
   
 http://www.amibroker.org/3rdparty/IntroToAtc.pdf
   
   Additionally, be sure to study page 17 to ensure that your 
 immediate 
   Foreign usage of ~MyIndex within a single exploration is behaving 
 as 
   you expect.
   
   Mike
   
   --- In amibroker@yahoogroups.com, toddk63 toddk63@ wrote:
   
I have created a custom Index using AddToComposite. Here is 
 the
code that runs in Exploration:
-
Counter = IIf(IsNull(Close),0,1);

AddToComposite( Counter * ROC(Close,1), ~MyIndex, C, 
 1+2+8+16 );
AddToComposite( Counter, ~MyIndex, I, 1+2+8+16 ); 

Index = 100 + Cum(Foreign( ~MyIndex, C ) / Foreign( 
 ~MyIndex,
I ));

Multiplier = (100 + Foreign( ~MyIndex, C )/Foreign( 
 ~MyIndex,
I ))/100;

Filter=1;   

AddColumn (Close,Close);
AddColumn (Index,Index);
AddColumn (Multiplier*100,Multiplier x 100);
--
The problem is using the CUM function adds the daily percent 
   change
to calculate the Index.  I wish to use the Multiplier to 
   calculate
an index where the previous days index value is multiplied by 
 the
Multiplier.  The index should initialize as Index = 100 to 
 start
with the first bar. Its probably simple fix, but I can't get 
 there.

Frustrated,

Todd K.
   
  
 





Re: [amibroker] My amibroker face trouble shooting

2008-10-09 Thread Prashanth
Use Code Check  Profile function in Formula Editor to check whether your
formula looks into the future.

Cheers

Prashanth

- Original Message - 
From: VenkatRamanan [EMAIL PROTECTED]
To: amibroker@yahoogroups.com
Sent: Thursday, October 09, 2008 21:34
Subject: [amibroker] My amibroker face trouble shooting


 When we are using auto analyser for signal generation, buy and sell
 signal appear properly but in live stream updatation we faced a
 problem that is signal arrow appeared but it is suddenly
 disappeared.How do i solve this problem?


 

  IMPORTANT 
 This group is for the discussion between users only.
 This is *NOT* technical support channel.

 *
 TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
 SUPPORT {at} amibroker.com
 *

 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/

 For other support material please check also:
 http://www.amibroker.com/support.html

 *
 Yahoo! Groups Links






[amibroker] CBI - Trade Duration

2008-10-09 Thread Ara Kaloustian
I am trying to code custom backtester to create a chart of trade duration, from 
the info available from:

for( trade = bo.GetFirstTrade(); trade ; trade = bo.GetNextTrade() )

{ ...

... }

I have not found a concept that works ... yet.

Any suggestion / code is welcome



TIA

Ara