[amibroker] Re: Writing the openpos.Handle value

2010-08-26 Thread whitneybroach
. --- In amibroker@yahoogroups.com, whitneybroach whitneybro...@... wrote: How do I write an openpos.Handle value to trace? Does the double format not convert in NumToStr? Code like this produces only zeros from inside the openpos loop: // for( openpos = bo.GetFirstOpenPos(); openpos

[amibroker] Re: MCO v1.7 Error Message

2010-08-20 Thread whitneybroach
My guess was accurate. Fred was traveling internationally. He replied today saying he was digging through his email backlog. Sounds like it will take him a few more days to catch up. --- In amibroker@yahoogroups.com, whitneybroach whitneybro...@... wrote: Not yet. Fred might be off

[amibroker] Re: MCO v1.7 Error Message

2010-08-14 Thread whitneybroach
--- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: Fred (or anyone else who knows), AB 5.30.1 on Vista x64, runs fine. AFL in AA runs fine Attempting MCO, first error message that appears is Error on line 303 Type mismatch: 'MoveWindow' During

[amibroker] Writing the openpos.Handle value

2010-08-14 Thread whitneybroach
How do I write an openpos.Handle value to trace? Does the double format not convert in NumToStr? Code like this produces only zeros from inside the openpos loop: // for( openpos = bo.GetFirstOpenPos(); openpos ; openpos = bo.GetNextOpenPos() ) { _trace( NumToStr(

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

2010-06-05 Thread whitneybroach
: Hello, For data mining ? You don't need to use backtest for that at all. Use exploration. It is designed for data mining. Best regards, Tomasz Janeczko amibroker.com On 2010-05-31 21:50, whitneybroach wrote: Tomasz, Thanks! Running 64x Vista, migrating to W7 later this year

[amibroker] Re: Different Applystops for long and short positions possible?

2010-05-31 Thread whitneybroach
Why Equity (both long and short, symbol and portfolio) is not exposed during Backtesting outside of CBT is a mystery to me Me, too. g It would save a lot of CBT code. The less code, the better. --- In amibroker@yahoogroups.com, j0etr4der j0etr4...@... wrote: Hello Markus (and the others who

[amibroker] Suggestion: ApplyStop to support variable stops in Rotational mode

2010-05-31 Thread whitneybroach
Your comments are welcome. g http://www.amibroker.com/feedback/view_bug.php?bug_id=1995

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

2010-05-31 Thread whitneybroach
Tomasz, Thanks! Running 64x Vista, migrating to W7 later this year. Interested, separately, in IB and in data mining with more RAM. To enable the data mining, the maximum number of open positions would need to be much larger than 1000 and, ideally, not architecturally limited. If an

[amibroker] Re: AmiBroker 5.30 Linux

2010-05-31 Thread whitneybroach
Sorry to go off-topic here Which Win emulation? How are response time and throughput for your needs? Best regards, --- In amibroker@yahoogroups.com, msc626 dalma...@... wrote: I've had issues migrating to version 5.30 from 5.20. The upgrade overwrote my Data folder leaving it empty

[amibroker] Re: Rotational exiting trades on holidays

2010-05-13 Thread whitneybroach
Well, pad and align helps! --- In amibroker@yahoogroups.com, whitneybroach whitneybro...@... wrote: A rotational system reports exit dates that are holidays. The exit price reported is actually the correct price from the prior trading day. Trade delays are all at zero, entries and exits

[amibroker] Re: Testing for IsEmpty in bar loop in CBT (another Backtest vs. Explore conundrum?)

2010-05-12 Thread whitneybroach
Thanks to everyone who helped off-list. :) --- In amibroker@yahoogroups.com, whitneybroach whitneybro...@... wrote: Here's an interesting tale of confusion. Aside from sleep, WTF am I missing? A rotational strategy opens new trades only on a certain day of the month, detected by rd_ok

[amibroker] Rotational exiting trades on holidays

2010-05-12 Thread whitneybroach
A rotational system reports exit dates that are holidays. The exit price reported is actually the correct price from the prior trading day. Trade delays are all at zero, entries and exits on Close. Detailed Log and _trace show no changes in PositionScore on any symbol prior to these holiday

[amibroker] Testing for IsEmpty in bar loop in CBT (another Backtest vs. Explore conundrum?)

2010-05-08 Thread whitneybroach
Here's an interesting tale of confusion. Aside from sleep, WTF am I missing? A rotational strategy opens new trades only on a certain day of the month, detected by rd_ok (rotation day ok). if rd_ok==1, it's ok to open a new rotational trade. The strategy also uses variable stop losses, so a

[amibroker] Commission in Detailed Log

2010-05-08 Thread whitneybroach
Seeing Commission: 1 in detailed log but AFL contains SetOption(CommissionAmount, 0 ); ?

[amibroker] Re: Commission in Detailed Log

2010-05-08 Thread whitneybroach
regards, Tomasz Janeczko amibroker.com On 2010-05-08 22:19, whitneybroach wrote: Seeing Commission: 1 in detailed log but AFL contains SetOption(CommissionAmount, 0 ); ? IMPORTANT PLEASE READ This group is for the discussion

[amibroker] Trade Arrows in Rotational Mode?

2010-05-08 Thread whitneybroach
Does it work? Haven't seen it yet. :)

[amibroker] Re: Commission in Detailed Log

2010-05-08 Thread whitneybroach
). If you want dynamic commission (changed on bar by bar basis) you need to modify buyprice/sellprice/shortprice/coverprice on bar by bar basis. Best regards, Tomasz Janeczko amibroker.com On 2010-05-09 00:49, whitneybroach wrote: Thanks. Did that. Is there any reason why

[amibroker] Re: Scaling to Achieve Target Value on Close (Custom Backtester)

2010-04-24 Thread whitneybroach
David, What answer did you receive for this? Best, Whitney --- In amibroker@yahoogroups.com, david.weilmuenster dweilmuenster95...@... wrote: I am testing a system in which one particular position is scaled in/out daily to achieve a given target value on the Close. The results of my

[amibroker] Re: ATR./Turtle Script

2010-04-13 Thread whitneybroach
What code change would cause this to exit a position intraday at a 30-bar low? --- In amibroker@yahoogroups.com, three_percent se...@... wrote: Robert, I haven't tried to optimize for CAR or RAR. I usually go for CAR/MDD instead when I run tests. Andy --- In

[amibroker] Re: In walk forward analysis, how do you concatenate all the OOS results and obtain overall sharpe?

2010-03-10 Thread whitneybroach
Similar concern here. I want to implement the technique in Colby's _Encyclopedia of Technical Market Indicators_, which requires a concatentation feature. --- In amibroker@yahoogroups.com, Michael comtech@... wrote: In walk forward analysis, how do you concatenate all the OOS results and

[amibroker] Re: Seen this? Error in line ,,,,,,,,,,,,, (ASCII Importer)

2009-10-26 Thread whitneybroach
Figured it out with help from Tomasz. Lesson learned: when troubleshooting a .csv file format, open it with something other than Excel. :) --- In amibroker@yahoogroups.com, whitneybroach whitneybro...@... wrote: Yes, only commas. The .csv file being imported has no blank lines and every

[amibroker] Seen this? Error in line ,,,,,,,,,,,,, (ASCII Importer)

2009-10-23 Thread whitneybroach
Yes, only commas. The .csv file being imported has no blank lines and every data field has visible characters. Got this message in the Import Log from the 5.29.0 5.29.2 betas, with and without the Wizard. Vista crashed recently, so I can't be sure if I have a corrupt AB file somewhere or if

[amibroker] Re: Detect ChartID

2009-10-10 Thread whitneybroach
GetChartID() appears to return the pane id, not the chart id -- at least in the sense that creating a new chart is a distinction operation from creating a new pane. Is there a chart-level identifier? This would be useful in cases where different panes need to refer to a vector that is

[amibroker] Re: Vector-based (variable) interest rate

2009-09-22 Thread whitneybroach
); }// if aaction /// --- In amibroker@yahoogroups.com, whitneybroach whitneybro...@... wrote: Fred / Tomasz, I'm not finding that to be the case, at least with the limited money market fund data that I have. My approach so far is to take a Sell signal from the system

[amibroker] Re: Tango5 without Fasttrack

2009-09-13 Thread whitneybroach
Thanks. --- In amibroker@yahoogroups.com, sdkingman markh...@... wrote: --- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: Tested tango5 without Fasttrack? I'd like to backtest tango5 before committing to a new data feed. :) I found a RUTVOL implementation here

[amibroker] Re: CBI: bo.InitialEquity to set value not working?

2009-09-10 Thread whitneybroach
That's the way I want it to work, too. :) It's behaving here as if it really is read-only, as documented in the Portfolio Backtester Interface Reference -- or my code is wrong. Here's some code. In the Equity pane, the equity value increases by 1 on each bar (correct) but never is set to

[amibroker] Detecting bar interval after SetForeign()

2009-09-10 Thread whitneybroach
Is there a way to detect the bar length of a new series after using SetForeign? (Not the bar interval selected in AA; the bar length of the price data itself.) Suppose the 1st series contains daily bars, the 2nd series contains weekly bars. I'm trying to prototype a vector-oriented interest

[amibroker] Re: BestRankHeld

2009-09-09 Thread whitneybroach
: whitneybroach whitneybro...@... To: amibroker@yahoogroups.com Sent: Monday, September 07, 2009 12:31 AM Subject: [amibroker] BestRankHeld Tomasz, Any problem implementing BestRankHeld in SetOption? When combined with WorstRankHeld, enables selection of a range of acceptable rank values

[amibroker] Tango5 without Fasttrack

2009-09-09 Thread whitneybroach
Tested tango5 without Fasttrack? I'd like to backtest tango5 before committing to a new data feed. :) I found a RUTVOL implementation here http://www.amibroker.com/library/detail.php?id=307 and am still just poking around. All helpful suggestions are appreciated. Best regards,

[amibroker] BestRankHeld

2009-09-06 Thread whitneybroach
Tomasz, Any problem implementing BestRankHeld in SetOption? When combined with WorstRankHeld, enables selection of a range of acceptable rank values. As an example, stocks could be selected from the 2nd quartile instead of the 1st quartile of a list. Fund managers who do this sometimes find

[amibroker] Re: Using equity curve for trading - looking for an example

2009-09-06 Thread whitneybroach
Switching the focus somewhat How about equity curve trading in Rotational mode? Rotational means no Buy or Sell vectors, so Equity() function does not work. Anyone got this without custom backtester code? Best regards, --- In amibroker@yahoogroups.com, ezbentley ezbent...@... wrote: Hi

[amibroker] Re: Correlation Scan

2009-07-09 Thread whitneybroach
herman, That page http://www.amibroker.org/userkb/2007/04/24/creating-a-correlation-table/ mentions that the code is under review. Is the review complete? Best regards,

[amibroker] Re: Date Axis Question

2009-06-19 Thread whitneybroach
Same concern here. :) I guess this was answered in another forum? --- In amibroker@yahoogroups.com, steve_almond ste...@... wrote: I'm using EOD data. The date (X) axis shows only the month value, no matter how much I zoom the scale in using 'daily view'. Can I make intermediate dates

[amibroker] No grid, please

2009-06-16 Thread whitneybroach
Sorry if I missed this in searching earlier How do I omit grid dots / grid lines while keeping the date axis labels and keeping the y axis labels? I want the axes, but want much less ink in the plot area. Best regards,

[amibroker] Re: No grid, please

2009-06-16 Thread whitneybroach
Thanks. :) -- In amibroker@yahoogroups.com, Tomasz Janeczko gro...@... wrote: Hello, Go to Tools-Preferences, Colors, and change Grid color to be the same as background color. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: whitneybroach whitneybro

[amibroker] Re: Trendlines to PNF

2009-06-16 Thread whitneybroach
Yes, and apparently no one uploaded to Files here or to the library on the amibroker site. Doh! --- In amibroker@yahoogroups.com, baudec bau...@... wrote: Grr. Yahoo kills the e-mail links. The PnF v2.afl is in message: 22174 by Mr. Valley, but all I see is HTML code.

[amibroker] Re: IS and OS Equity in single line

2009-04-10 Thread whitneybroach
On Tue, Apr 7, 2009 at 8:59 AM, whitneybroach whitneybro...@...wrote: Somehow I've missed code that combines IS and OS equity into a single line. I'm sure correct code is available somewhere, right? The following code does not do the job. It roughly rescales the start of OS

[amibroker] IS and OS Equity in single line

2009-04-07 Thread whitneybroach
Somehow I've missed code that combines IS and OS equity into a single line. I'm sure correct code is available somewhere, right? The following code does not do the job. It roughly rescales the start of OS to the last value of IS, but it does not show IS values prior to OS. Can this be done

[amibroker] ValueWhen not updating correctly on first change?

2008-12-07 Thread whitneybroach
Looking at the following code, can you imagine on which bar ind_hhv changes and ind_hhv_bar does not change? The first bar where ind_hhv changes, but on on subsequent bar? Never? I've tried the code with occur = 0 and that is causing ValueWhen to look into the future (not desired in this case).

[amibroker] Re: Weekly from missing daily bars: a 9/11/2001 indicator problem (1010911)

2008-11-08 Thread whitneybroach
. There was dicussion on creating calendar day tickers - someone posted some code - it can be done in excel and then imported via ASCII. brian_z --- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: Hmmm, no ideas? --- In amibroker@yahoogroups.com, whitneybroach

[amibroker] Re: Weekly from missing daily bars: a 9/11/2001 indicator problem (1010911)

2008-11-08 Thread whitneybroach
in the same window then there might be a code solution. brian_z --- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: Thanks. Will try that. --- In amibroker@yahoogroups.com, brian_z111 brian_z111@ wrote: I seem to recall playing around with something along those

[amibroker] Re: Weekly from missing daily bars: a 9/11/2001 indicator problem (1010911)

2008-11-01 Thread whitneybroach
Hmmm, no ideas? --- In amibroker@yahoogroups.com, whitneybroach [EMAIL PROTECTED] wrote: Due to the 9/11 markets interruption, daily bars were missing several days in a row. 9/10 and then 9/17 appear consecutive in many series. Switching a chart from daily to weekly bars causes indicators

[amibroker] Weekly from missing daily bars: a 9/11/2001 indicator problem (1010911)

2008-10-27 Thread whitneybroach
Due to the 9/11 markets interruption, daily bars were missing several days in a row. 9/10 and then 9/17 appear consecutive in many series. Switching a chart from daily to weekly bars causes indicators to fail at that part of the chart. A version of the WilliamsAD, for example, goes to zero.

[amibroker] Exit Price at High with ApplyStop() profit target

2008-10-19 Thread whitneybroach
To AppyStop() veterans I'm sure this one seems easy. To this newbie it's somewhat puzzling. :) ApplyStop() is used for loss, profit and time exits in a long-only system that enters on a limit price. Exits are intraday. Backtest results in AA show buy prices are at the limit price as expected.

[amibroker] Re: Vector-based (variable) interest rate

2008-10-12 Thread whitneybroach
data which are available back at least as far as the 1800's. --- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: Your feedback is welcome about this suggestion for a vector-based interest rate feature in AFL: http://www.amibroker.com/feedback/view_bug.php?bug_id

[amibroker] InWatchListName Help (was Re: InWatchList help)

2008-09-06 Thread whitneybroach
= iif( InWatchListName( watchlistname ), 1, 0 ); This is equivalent to: inwl = InWatchListName(watchlistname); Regards, GP --- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: Here's a variation of the same idea. The way that results are being reported

[amibroker] InWatchListName Help (was Re: InWatchList help)

2008-09-01 Thread whitneybroach
Here's a variation of the same idea. The way that results are being reported in the chart window and in AA is not reassuring. I must be missing something obvious. I have watchlists named NDX_2002 and NDX_2003 etc. The year of the current bar is to identify the proper watchlist. If today is

[amibroker] Re: Code Help: Advanced PositionSizing

2008-02-17 Thread whitneybroach
Hmmm: with custom backtester interface, can position size be set as number of contracts based on a multiple of margin deposit? The Portfolio Backtester Interface Reference shows sig.PosSize as a float, positive as dollar value or negative for % of account. Doesn't look like it can be done, but

[amibroker] Mid-level backtester interface and redundant signal entries?

2008-02-17 Thread whitneybroach
Is the mid-level, or low-level, backtester interface the least complex required to open trades for redundant entry signals? Let's assume that the entry vector's True values are converted to sigScaleIn values prior to the custom backtest interface being enabled. Let's also assume trade exits are

[amibroker] Re: Mid-level backtester interface and redundant signal entries?

2008-02-17 Thread whitneybroach
( backtestRegularRaw ) http://www.amibroker.com/guide/afl/afl_view.php?setbacktestmode Best regards, Tomasz Janeczko amibroker.com - Original Message - From: whitneybroach [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Sunday, February 17, 2008 6:24 PM Subject: [amibroker

[amibroker] First Profitable Close, Long and Short (was Re: Exit on first profitable open )

2008-02-03 Thread whitneybroach
Hmmm, shall we extend the idea somewhat, to long and short trades? Does this look sane for an exit on the first profitable close? What am I missing? // Buy = conditions; Short = conditions; Sell = Cover = 0; inBullTrade = inBearTrade = 0;

[amibroker] Multiple string constants in switch() case statement

2008-01-28 Thread whitneybroach
Can it be done? Formula Editor doesn't like this, but I wonder something similar is even possible? symcurrency = StrToUpper( StrLeft( sym, 6 ) ); switch ( symcurrency ) { case AUDUSD ,CADUSD ,CHFUSD ,EURUSD ,GBPUSD

[amibroker] Re: Detecting data mining bias with modified Monte Carlo procedure

2007-12-12 Thread whitneybroach
Drew, Just thought I would check in. How are things going? Best, Whitney --- In amibroker@yahoogroups.com, thomasdrewyallop [EMAIL PROTECTED] wrote: Hello all, I have been working on the MCP technique described in Aronson's book for some time now. I have just completed conversion of the

[amibroker] Re: Identical PositionScores in Rotational Trading

2007-09-17 Thread whitneybroach
David, What answer did you receive on this? Best, Whitney --- In amibroker@yahoogroups.com, dweilmuenster95125 [EMAIL PROTECTED] wrote: If all stocks have the same, non-zero PositionScore on a given bar, does rotational trading leave all positions unchanged? Thanks, David Weilmuenster

[amibroker] Re: Indicator Evaluation

2007-09-04 Thread whitneybroach
On 9/3/07, whitneybroach [EMAIL PROTECTED] wrote: How can AB be most easily used to get analytical outputs like this: http://tinyurl.com/3aptvc ? (Function Profile graph is the key output.) Or like that: http://tinyurl.com/39vz89? (See the CMO Filter Analysis screen shot about

[amibroker] Indicator Evaluation

2007-09-03 Thread whitneybroach
How can AB be most easily used to get analytical outputs like this: http://tinyurl.com/3aptvc ? (Function Profile graph is the key output.) Or like that: http://tinyurl.com/39vz89? (See the CMO Filter Analysis screen shot about halfway down the page.) I imagine this could use AA Optimize output

[amibroker] Re: Foreign or SetForeign in 4.92+

2007-05-08 Thread whitneybroach
--- In amibroker@yahoogroups.com, Tomasz Janeczko [EMAIL PROTECTED] wrote: Hello, SetForeign/Foreign were not changed for quite long time. Best regards, Tomasz Janeczko amibroker.com I've discovered that SetForeign works in one db but not another. What db settings or attributes should

[amibroker] Foreign or SetForeign in 4.92+

2007-05-07 Thread whitneybroach
Got anomalies with Foreign or SetForeign in 4.92 or higher? (It's probably my AFL, but maybe not.)

[amibroker] Re: Monte Carlo Simulations

2007-05-02 Thread whitneybroach
--- In amibroker@yahoogroups.com, David Piatek [EMAIL PROTECTED] wrote: I've been happily using Amibroker for years and decided to develop an application to make running Monte Carlo style simulations easier. The .csv tradelist that Amibroker's Automatic Analysis creates can be imported in.

[amibroker] Re: The code for the book Quantitative Trading Systems can be downloaded

2007-04-20 Thread whitneybroach
--- In amibroker@yahoogroups.com, Grant Noble [EMAIL PROTECTED] wrote: That's great Howard! Thanks so much, GRANT Most definitely

[amibroker] Re: Detecting barcount = 0

2007-04-16 Thread whitneybroach
--- In amibroker@yahoogroups.com, brian_z321 [EMAIL PROTECTED] wrote: --- In amibroker@yahoogroups.com, whitneybroach WhitneyBroach@ wrote: While creating watchlists from external files, I encounter the problem of a symbol having zero bars in the current database. Can AFL report

[amibroker] Re: protecting the code

2007-04-16 Thread whitneybroach
Howard wrote The books have arrived from the printer and are available for immediate shipment. Thanks, Howard www.quantitativetradingsystems.com - Great news!

[amibroker] Integrated data into an IB db

2007-04-16 Thread whitneybroach
I have many bars of 1-minute IB data captured with WealthLab. I'd like to populate a new AB IB database with this so the first AB IB backfill does not have to go back very far. I'm so new that I'm unsure whether this can be done. Should I be looking at ASCII import? Before I activate the new

[amibroker] Detecting barcount = 0

2007-04-07 Thread whitneybroach
While creating watchlists from external files, I encounter the problem of a symbol having zero bars in the current database. I intend to export required bars from another program into the db to fix these. Detecting all of the zero-bar symbols is the task. Can AFL report a zero-bar symbol? So

[amibroker] Re: AmiBroker and Pinnacle Data

2007-03-24 Thread whitneybroach
Thanks.

[amibroker] Re: AmiBroker and Pinnacle Data

2007-03-24 Thread whitneybroach
Using the weekly data series (e.g. W1, W2...) ? Those appear as Daily bars in AB from MS format. Is there no way to define an external ASCII db to AB? If I Import ASCII, it's not automatically maintained by AB, is it? Best,

[amibroker] Re: Fasttrack vs QuotesPlus

2007-03-17 Thread whitneybroach
Thanks to Joe and Re_Rowland :)

[amibroker] Re: Detecting data mining bias with modified Monte Carlo procedure

2007-03-17 Thread whitneybroach
Drew, I look forward to your follow-up. Meantime, I'm surfing over to the suggestions. Best, Whitney

[amibroker] Re: AmiBroker and Pinnacle Data

2007-03-17 Thread whitneybroach
Which format are you using? I understand at least two exist, Metastock and ASCII, maybe more?

[amibroker] Fasttrack vs QuotesPlus

2007-03-15 Thread whitneybroach
I am currently using QuotesPlus for stock data and am wondering if I would be better served (in AmiBroker) by switching to Fasttrack? A key need of mine is the ability to maintain breadth measures (with AddToComposite) on the type of issue involved -- such as ETF, bond fund, Optionable -- as well

[amibroker] Detecting data mining bias with modified Monte Carlo procedure

2007-03-15 Thread whitneybroach
While reading David Aronson's book _Evidence-based Technical Analysis_, I stumbled across a modified Monte Carlo permutation (MCP) procedure that compensates for data mining bias, assuming that the best permutation of rules was not selected with a directed search. From Aronson's perspective, this

[amibroker] Re: 4 places of decimals

2007-01-21 Thread whitneybroach
--- In amibroker@yahoogroups.com, Tomasz Janeczko [EMAIL PROTECTED] wrote: Keith, The setting Trade list with prices (4 dec dig) affects only Trade list. Other figures (like Net profit) are not affected and currently there is no way to change it. Sorry. Best regards, Tomasz Janeczko

[amibroker] Re: Max simultaneous open positions

2007-01-21 Thread whitneybroach
--- In amibroker@yahoogroups.com, whitneybroach [EMAIL PROTECTED] wrote: This appears to work better and faster But faster is relative. A check with GetPerformanceCounter() suggests that tallying sot requires as much time as, maybe more than, the other parts of the CBT, effectively doubling

[amibroker] Re: Max simultaneous open positions

2007-01-18 Thread whitneybroach
A DateTime version, which theoretically could work for intraday bars // finish backtester up here // CALCULATE CUSTOM METRICS dt = DateTime(); // simultaneous open trades // intensive, takes more time than the backtest and postprocess sot = 0; for( trade = bo.GetFirstTrade();

[amibroker] Re: Max simultaneous open positions

2007-01-18 Thread whitneybroach
This appears to work better and faster /// for( trade = bo.GetFirstTrade(); trade; trade = bo.GetNextTrade() ) { teb = ValueWhen( dt == trade.EntryDateTime, bi, 1 ); txb = ValueWhen( dt == trade.ExitDateTime, bi, 1 ); endbar =

[amibroker] Re: AFL : from date to barindex

2007-01-17 Thread whitneybroach
Graham, How about a more general case? Try this in Explore with the To date as 6/30/2006 on Alcoa Aluminum (AA). I must be missing something (maybe my brain). Best, Whitney /// Buy=Sell=Short=Cover=0; Filter = 1; bi = BarIndex(); dn =

[amibroker] Re: AFL : from date to barindex

2007-01-17 Thread whitneybroach
Darned indexing! Thanks

[amibroker] Re: Max simultaneous open positions

2007-01-17 Thread whitneybroach
We upgrade to 4.88 and then go from there // Finalize backtester up here // CALCULATE CUSTOM METRICS // simultaneous open trades sot = 0; for( trade = bo.GetFirstTrade(); trade; trade = bo.GetNextTrade() ) { ted =

[amibroker] Re: Max simultaneous open positions

2007-01-16 Thread whitneybroach
This seems to work. I could probably get a more efficient version for EOD stats if I could compare year, month and day from DateTime() to DateNum(). By building tedt and txdt with only yyymmdd, the bar loop could be from tedt to txdt rather than from 0 to BarCount - 1. How do we decode

[amibroker] Re: Trade.DateTime to DateNum

2007-01-10 Thread whitneybroach
Are you referring to trade.EntryDateTime as from the custom backtester object? More generally, how does one extract the date from DateTime() so as to compare with DateNum() ?

[amibroker] Max simultaneous open positions

2006-12-31 Thread whitneybroach
How do we know the greatest number of simultaneously open positions during a backtest? (Perhaps the MaxOpenPositions is never approached during the test?) Does this code make sense? Is a low-level CBT truly required for 100% accuracy? Happy New Year, Whitney

[amibroker] Learning VarSet/VarGet ( was Re: Learning Composites )

2006-10-31 Thread whitneybroach
--- In amibroker@yahoogroups.com, Graham [EMAIL PROTECTED] wrote: Strformat allows for the formatting of array values when converting them to text outputs, it does not set up any value for itself, it is not a variable Aaahh, so it automatically chooses the last value

[amibroker] Learning VarSet/VarGet ( was Re: Learning Composites )

2006-10-29 Thread whitneybroach
--- In amibroker@yahoogroups.com, Joe Landry [EMAIL PROTECTED] wrote: There are persistent numbers and text store AFL functions... VarSet VarGet for numbers and text. These I understand will persist from routine to routine unless you close Amibroker. ---

[amibroker] Learning VarSet/VarGet ( was Re: Learning Composites )

2006-10-29 Thread whitneybroach
--- In amibroker@yahoogroups.com, Steve Dugas [EMAIL PROTECTED] wrote: Hi - I think you want StaticVarSet() / StaticVarGet(). More info on these in the users guide. Steve --- Yes, that looks like it ! Please note that this group is for discussion between users only.

[amibroker] Re: No db changes saving in 4.80

2006-10-27 Thread whitneybroach
Thanks. That did it. :) Please note that this group is for discussion between users only. To get 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

[amibroker] Optimizer extra loop? (4.80 pro)

2006-10-27 Thread whitneybroach
New to AB. When running this formula... tm_analyze=1; tm_report=2; tm_step=1; testmode= Optimize( TestMode, tm_analyze, tm_analyze, tm_report, tm_step ); trace=True; if ( Trace ) { _TRACE( Test mode=, + StrFormat( %1.0f, testmode ) ); } Buy=Sell=0;

[amibroker] Learning Composites

2006-10-27 Thread whitneybroach
New to AB, trying to learn Composites. This code attempts to write an array to a composite, read it back from the composite, and then display the results from the composite. I'm sure the answer to this is painfully obvious to community members with experience: why am I seeing only zeros from

[amibroker] Multi-category Composite (New to AB)

2006-07-20 Thread whitneybroach
New to AB, QuotesPlus subscriber, have been using WealthLab for years (and its IndexLab more recently) and am now starting the AB learning curve. Looking forward to it; this looks like a great product and community. Computer science major from 20 years ago (my C is rust encrusted), all recent