[amibroker] fundamental datafeeds incorrect

2010-05-22 Thread Rene
Hello can anybody help me i use GetFnData to show fundamental data in my exploration for instance PEG ratio i use AddColumn( Close / GetFnData( "PEGRatio" ) , "PEGRatio" ); the problem is dat it does not show up the correct figure but it seems that the current prices of the stock is use

[amibroker] Rotational trading with separate rankings for each watchlist

2010-05-22 Thread Paolo
Is there a way to use rotational trading with 3 separate universes/watchlists? The issue is to get an independent ranking within each universe in order to get the top position from each of them rather than the top 3 positions overall. I believe it has to be handled outside rotational trading log

[amibroker] Re: How to use AUX1 and AUX2?

2010-05-22 Thread chaos_lover13
Greetings, I have read all posts but cannot figure out what I am doing wrong. Any assistance would be greatly appreciated as my issue seems pretty simple. Sorry for my naivety. What I am trying to do: Import weekly a cvs file using the Aux1 and Aux2 fields into my already existing Amibroker

[amibroker] is there any refined way?

2010-05-22 Thread Inquisitive Voyager
For EOD data, I want to calculate average of pivots(H+L+C)/3 or range (H-L)per year for each ticker. SO for I used raw coding- foe ex. a=0;//07-08 b=0;//08-09 * for*(i=0;i<249;i++) {a+=(*H*[i]-*L*[i]); } a/=248; * for*(j=249;j<494;j++) { b+=*H*[j]-*L*[j]; } b/=245; but this fails,f

Re: [amibroker] 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Keith McCombs
Personally, I don't see much of an advantage for having AB-64 for IB. I would be using it primarily for trading, and I need a relatively small database to do that. However, if one can acquire a very large data base with IQFeed, perhaps IQFeed should have preference over IB, for 64-bit impleme

Re: [amibroker] 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Tomasz Janeczko
Hello, Only those two are considered because only those two allow direct TCP/IP-only communication and this opens possibility of working around the fact that data vendors generally do not provide 64-bit APIs that are required to build 64-bit DLLs which in turn are required for native 64-bit a

[amibroker] InCategory()

2010-05-22 Thread Keith McCombs
I would like to be able to code, Filter = InCategory(2) OR InCategory(5); AB has an InWatchList(), but no InCategory() function. I know I can copy all symbols from category 2 and 5 into a watch list and then use InWatchList(), or even use separate watch lists for each category. Either option se

[amibroker] how to setbackgroundcolor

2010-05-22 Thread TimurLangit
Hi All,   I am trying to change background color if C>EMA200, but why background color is not changing as if the if condition is fail.   IIf(C>EMA(C,200),SetChartBkColor(colorViolet),SetChartBkColor(colorWhite)); This is my third question since I join this group. If I still can not get your hel

[amibroker] program float chart in Amibroker Object Model

2010-05-22 Thread Earthcitizen
I can us below codes program the chart in main window: AB=new ActiveXObject("Broker.Application"); AW = AB.ActiveWindow; is there any ways I can program the chart in floating windows? It seem activewindow property in Amibroker Object Model only work in main window... Thanks.

[amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Leif P
By now, everyone performing analytical work should have moved to a 64-bit OS and maybe 24GB of RAM. As BR mentioned, the cores (processors) are an issue since there are so many choices. As long as AB is compiled for "any processor" and can run in 64-bit Windows 7 with >20GB or RAM, your machin

[amibroker] Ichimoku (killing buy signals)

2010-05-22 Thread Leif P
I am trying to use the code below to zero out buys when the buy criterion is "Strong" and the signal is weak or medium, and also zero out the buys when the buy criterion is "Medium", and the signal is weak. for( i = 1; i < BarCount; i++ ) { IIf( MinBuySignal=="Strong" AND Buy[i]==1 AND within[

[amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Rob
Does IQFeed now have full 64 bit support via the API...? --- In amibroker@yahoogroups.com, Tomasz Janeczko wrote: > > Hello, > > Only those two are considered because only those two allow direct > TCP/IP-only communication > and this opens possibility of working around the fact that data vendor

RE: [amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread J Paul Buffon
Can I get a laptop with 16 gig of RAM? HP? JP From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Leif P Sent: 05/22/2010 1:43 PM To: amibroker@yahoogroups.com Subject: [amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins By now, everyone performi

[amibroker] How to instantiate amibroker in a c# wpf application

2010-05-22 Thread Rasheed M
Hello, I want to create a C# WPF Application which interacts with amibroker. Firstly, how can i reference amibroker in my C# WPF project? i have amibroker installed on my development PC. Secondly, i cant seem to instantiate amibroker using broker.application ab = new broker.application(); it

Re: [amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Tomasz Janeczko
Hello, It is easy to see what applications are 32-bit and what are not when running 64-bit Windows. Press Ctrl+Alt+Del to bring up Task Manager. All processes that have *32 suffix in the list are 32-bit processes running in 64-bit Windows. IQFeed generally speaking is still 32-bit (see IQConnect.

[amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Rob
Thanks TJ. I was just asking because, as you have probably seen, on their developer page IQ Feed now claim 64-bit support. What you described is what they mean I guess... http://www.iqfeed.net/index.cfm?displayaction=developer§ion=main --- In amibroker@yahoogroups.com, Tomasz Janeczko wrote:

Re: [amibroker] Re: AB/IQFeed #symbols Limit

2010-05-22 Thread Tomasz Janeczko
Hello, I would like to thank Jay for providing this explanation that should address all doubts previously expressed regarding symbol limits. I also would like to thank IQFeed for their constant improvements of the feed. I have been working with IQFeed API for several years and I can clearly se

[amibroker] Sell based on index

2010-05-22 Thread Bob Waits
I am trying to backtest a few stocks based on a simple concept -- selling a particular stock if S&P goes down for three days in a row? For instance, I buy and sell Google based on S&P going down by 3 days in a row. Any help on code is appreciated. Thanks.

Re: [amibroker] how to setbackgroundcolor

2010-05-22 Thread wavemechanic
Read the following regarding your coding mistake: http://www.amibroker.com/guide/a_mistakes.html#IIF - Original Message - From: TimurLangit To: AmiBroker Group Sent: May 22, 2010 12:48 PM Subject: [amibroker] how to setbackgroundcolor Hi All, I am trying to change ba

Re: [amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Tomasz Janeczko
Hello, One more word of explanation for tech-savvy: strictly speaking IQFeed offers so called COM (ActiveX) API and Socket API. The later is bit-independent (i.e. it does not matter if you are connecting with 32-bit or 64-bit application). In the past the problem was that in order to start/in

Re: [amibroker] Re: 64-bit IQFeed / Interactive Brokers plugins

2010-05-22 Thread Tomasz Janeczko
Hello, Yes I explained in my later post that the claim is true, because it is possible to use the feed with 64-bit applications (providing that you use sockets only and thanks to removed dependency with IQ32.DLL - in the past it was required to start the feed using 32-bit DLL, but now the same

[amibroker] forex daily bar time-compression problem [1 Attachment]

2010-05-22 Thread Yuki Taga
Amibrokerites: I'm having trouble getting my forex data compressed correctly into daily bars. The bars are, in fact, quite a mess. ^_^ Forex feed is from eSignal. Forex symbols are in Group 'Forex', which has its own Intraday Settings, which are as follows: Show 24 hours trading. Trading hour

[amibroker] CAN ANYBODY HELP IN CREATING BUY-SELL SIGNAL IN THIS AFL?

2010-05-22 Thread Santosh
ANY HELP FORM THE LEARNED MEMBER OF AMIBROKER IS APPRECIATABLE , IF YOU PUT BUY-SELL SIGNAL OR BACK-TESTING OR SCAN USING THIS FORMULA. _SECTION_BEGIN("Linear Regression"); P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 300, 1, 10 ); Plot( LinearReg( P, Periods ), _DEFAULT_NAM

[amibroker] Available cash and backtester order of processing signals?

2010-05-22 Thread hydrob...@rocketmail.com
In what order does the portfolio backtester execute the signals? The order affects the available cash for subsequent trades. For what it's worth, I want the signals executed in this order (for a long-only system): 1. Sell signals with the sell price < open 2. Buy signals with the buy price > op

[amibroker] OT: dividend data incl. relevant dates

2010-05-22 Thread treliff
Dear All, For years I have been collecting dividend data incl. relevant dates (all stocks traded on US exchanges): amount declaration date ex date record date payable date but have lost the December `09 and January `10 data. All subscription services I approached give limited access (only per-