Re: [amibroker] problem: 5.24.0 BETA working in 64-bit Vista with TWS + eSignal

2009-03-16 Thread Tomasz Janeczko
DBCAPI is esignal component that should be present in the current running directory. If it says Library C:\Jts\dbcapi.dll cannot be loaded it means that you are running AmiBroker in wrong location (not where it was installed). You need to run AB from the shortcut that is created during setup proc

Re: [amibroker] help to convert this into AFL

2009-03-16 Thread Steve Wong
(I don't understand what the purpose of the 10bar to 200 bar parameter is ? ...Below partial code...)     Percentage = Param("Percentage", 0..5, 0.5, 5, 0.1); n_bars = Param("Bars", 10,200,10); ThirdBreakPointPrice = ValueWhen(Cum (Cross (High, Study("DN", GetChartID( == 3, High , 1); Buy

[amibroker] Re: indicator- % of vol that is negative

2009-03-16 Thread triangle702000
I think OBV would give me the trend of pos. to neg. volume, but I'm looking for the % of negative vol. I read a study which found a connection between days where 90%+ of the vol. and pts. on the Dow were neg., followed closely by days where 80%+ of vol. and pts were positive could indicate a ch

[amibroker] simultaneous open and short positions in backtester

2009-03-16 Thread bigitop
In certain situations I use an exit strategy that involves hedging by having simultaneous open and short positions. This I do to minimize my losses in a trade in which I think I may loose. Below is an example of the generated signals: The problem is that I can't get my low-level custom backtes

Re: [amibroker] Help w/ CSI data loading

2009-03-16 Thread Nick Willemse
Hi Did you buy AmiBroker or are you using the eval version? The eval version doesn't save the database after the import. However, after I've imported the data using CSI, the prices don't seem to be correct. So I abandoned that method and now I use export to txt files from CSI and import

[amibroker] Re: intraday charts

2009-03-16 Thread ganamide
I too am looking for an answer to why my intraday charts in AB are not updating when using QuoteTracker with TDAmeritrade data feed. The real time quotes update, but the charts in AB don't. Your post offers a hint when combined with the following information from AB website that seems to indicate

[amibroker] Re: simultaneous open and short positions in backtester

2009-03-16 Thread ozzyapeman
SetBacktestMode( backtestRegularRawMulti ); --- In amibroker@yahoogroups.com, "bigitop" wrote: > > In certain situations I use an exit strategy that involves hedging by > having simultaneous open and short positions. This I do to minimize my > losses in a trade in which I think I may loose. B

[amibroker] PositionScore Calculation and different buy date

2009-03-16 Thread slipthruthecracks
Since Positionscores are done on buy/sell dates, is it possible to calculate the position score on a given day each month but not make the trade until a given date in the next month. For instance, how would one tell the AA that you want to calculate the positonscore on the 25th of the month and

[amibroker] yesterday prices

2009-03-16 Thread Martin Simek
Hallo, I would like to have yesterday High and Low based on Trading Hours 05:00 PM - 04:00 PM (Futures for JPY at GLOBEX) I tried to use yHigh = TimeFrameGetPrice( "H", inDaily, -1 ); yLow = TimeFrameGetPrice( "L", inDaily, -1 ); Bud it work on 24 hour base, starting exactly at 0:00 and ending at

[amibroker] Re: PositionScore Calculation and different buy date

2009-03-16 Thread Mike
Hi, I believe that you can accomplish what you are seeking via the ValueWhen function. However, you will need to add better error checking to your "25th of each month" to account for that day falling on a weekend or holliday. Here is an untested simplistic example (to illustrate the concept) ig

[amibroker] Re: simultaneous open and short positions in backtester

2009-03-16 Thread bigitop
thanks. it worked!! --- In amibroker@yahoogroups.com, "ozzyapeman" wrote: > > > > SetBacktestMode( backtestRegularRawMulti ); > > > --- In amibroker@yahoogroups.com, "bigitop" wrote: > > > > In certain situations I use an exit strategy that involves hedging by > > having simultaneous open an

[amibroker] Re: indicator- % of vol that is negative

2009-03-16 Thread triangle702000
I've been playing around with this for a while and for some reason, when I cut the list down to just the first 6 or 8 symbols,it works. If I try to run it with all 30, I get zero for the value of the indicator. I know that AB only recognizes up to 2,147,483,648 (in the version that I have ,at le

[amibroker] Testing for new bar using string manipulation and quotation time

2009-03-16 Thread ozzyapeman
Hello, hoping someone can help out with this string conversion problem. In live trading, I am pulling quotation time using TimeNum(), and want to test for the start of a new bar. So my thinking is to simply convert the time to a number, extract the last two characters, convert back to a number and

[amibroker] Re: Testing for new bar using string manipulation and quotation time

2009-03-16 Thread Mike
Without commenting on the validity of the approach (I am not a real time trader), I can suggest that your problem is coming from a formatting incompatibility. Add a format clause indicating zero decimal places and it will work fine. Note too that your switching back to a number again is redunda

[amibroker] Re: Testing for new bar using string manipulation and quotation time

2009-03-16 Thread Mike
Again, assuming that your approach is sound, better still would be to use the modulo operator. barTime = 103731; if (barTime % 100 == 0) _TRACE( "New bar found" ); Mike --- In amibroker@yahoogroups.com, "Mike" wrote: > > Without commenting on the validity of the approach (I am not a real ti

[amibroker] Re: Testing for new bar using string manipulation and quotation time

2009-03-16 Thread ozzyapeman
Thanks a bunch, Mike. Modulo's so much simpler! --- In amibroker@yahoogroups.com, "Mike" wrote: > > Again, assuming that your approach is sound, better still would be to use the > modulo operator. > > barTime = 103731; > > if (barTime % 100 == 0) > _TRACE( "New bar found" ); > > Mike > >

[amibroker] Re: Testing for new bar using string manipulation and quotation time

2009-03-16 Thread Mike
If you have any concerns about rounding, you could use AlmostEqual instead of "==". http://www.amibroker.com/guide/afl/afl_view.php?id=301 Mike --- In amibroker@yahoogroups.com, "ozzyapeman" wrote: > > Thanks a bunch, Mike. Modulo's so much simpler! > > > --- In amibroker@yahoogroups.com, "M

[amibroker] Range in Equity(flag, range)?

2009-03-16 Thread Keith McCombs
I notice that the Equity() function is often used in sample code with the range set to -2 as in: | Equity( 0, -2 )| However the help for the Equity() function only describes ranges from -1 to 3. Can someone explain what -2 does? Any other non-documented values for range? While we're at it, an

Re: [amibroker] Re: OT: Computer recommendation for AB optimizing

2009-03-16 Thread Keith McCombs
Dingo -- Please read http://www.infoworld.com/article/09/01/22/03TC-windows-multicore_3.html for some comparisons between Vista64 and XP64. -- Keith dingo wrote: 50% longer for AB to run - hardly believable. d On Thu, Mar 12, 2009 at 3:51 PM, Keith McCombs > wro

[amibroker] Re: OT: Computer recommendation for AB optimizing

2009-03-16 Thread ozzyapeman
Whoa. Just read that article. Seems that WinXP 64 makes better sense by far to drive my new Intel i7 PC. The speed difference is quite significant. I might have just wasted money shelling out on a Vista 64-bit installation disk. Is Amibroker 32-bit pretty stable on WinXP 64? I only have experien