[amibroker] ATR function & loops

2006-08-14 Thread PKJR
Can ATR function be used within loops? if (PriceAtBuy>0) { THigh=Max(High[i], THigh); ATRStop=THigh-ATR_Multiplier* ATR(ATR_Period)); } tks/Paul 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} ami

Re: [amibroker] Customizing Grid

2006-07-24 Thread PKJR
area of AB among other things so please vote!!   PKJR  On 7/24/06, John Nelson <[EMAIL PROTECTED]> wrote:  Well yes, but like the previous poster, I would like to remove all of those extraneous columns and still add my own at the same time. I wouldn't want a solution that isn't fl

Re: [amibroker] Customizing Grid

2006-07-24 Thread PKJR
his has become one of the banes of my life too I really need a > customized results grid which contains my own metrics or combination of > things such as # winners and # losers and my own sortable values. > > > -- John > > > > > > > On Jul 24, 2006, at 5:26 PM,

Re: [amibroker] Ehlers- Adaptive Momentum?

2006-07-24 Thread PKJR
ve you a start. > > -CS > > ----- Original Message - > From: "PKJR" <[EMAIL PROTECTED]> > To: > Sent: Sunday, July 23, 2006 3:19 PM > Subject: [amibroker] Ehlers- Adaptive Momentum? > > > > Hi All - before i dive into coding it - does anyone know i

[amibroker] Customizing Grid

2006-07-24 Thread PKJR
is there an easy way to remove columns from the result grid generated after backtester /optimizer run.. I have a lot of columns and half of them I do not need to see.. can I remove/add columns? Tks Please note that this group is for discussion between users only. To get support from AmiBroker p

[amibroker] Ehlers- Adaptive Momentum?

2006-07-23 Thread PKJR
Hi All - before i dive into coding it - does anyone know if there is AmiBroker source code to Ehlers - Smoothed Adaptive Momentum available anywhere on the net? tks Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to

Re: [amibroker] formatting columns?

2006-07-20 Thread PKJR
d > > > > > -Original Message- > > From: amibroker@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of PKJR > > Sent: Thursday, July 20, 2006 7:29 AM > > To: amibroker@yahoogroups.com > > Subject: Re: [amibroker] formatting columns? >

Re: [amibroker] formatting columns?

2006-07-20 Thread PKJR
> > > > > -Original Message- > > From: amibroker@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of PKJR > > Sent: Wednesday, July 19, 2006 9:08 PM > > To: amibroker@yahoogroups.com > > Subject: [amibroker] formatting columns? > >

[amibroker] formatting columns?

2006-07-19 Thread PKJR
H9i All: I have a problem with formatting columns in backtester. As you can see my contract names are in the format NG227.. and the TRACE shows the name correctly, however, when they are being added to the custom metrics in the backtester the values are being formatted for some reason. NG2,200

Re: [amibroker] Info on forthcoming book -- Quantitative Trading Systems

2006-07-07 Thread PKJR
d - where would I find some info on Fred's work? Tks On 7/6/06, dingo <[EMAIL PROTECTED]> wrote: > Howard, > > Have you looked into working with IO (Intellegent Optimizer) by Fred > Tonetti? > > d > > > -Original Message- > > From: amibroker@yahoogroups.com > > [mailto:[EMAIL PROTECTED] O

[amibroker] Trade.DateTime to DateNum

2006-07-06 Thread PKJR
here is the situation: in the backtester I need to compare DateNum (stored in memory) with trade.dateTime values to assign proper contracts.. what is the easy way to do it? what is the catch from going from trade.DateTimne to DateNum? Thank you Paul Yahoo! Groups Sponso

Re: [amibroker] Books on AmiBroker?

2006-06-26 Thread PKJR
thin couple of weeks with help of Marcin, help files and this group I was able to develop my own unique testing approach for futures contract based on AB. Did I mention Marcin and tech support? PKJR Yahoo! Groups Sponsor ~--> Great things are h

[amibroker] Removing newline character

2006-06-26 Thread PKJR
tion? Tks/PKJR Yahoo! Groups Sponsor ~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/GHeqlB/TM ~->

[amibroker] Re: Converting String to Dates

2006-06-23 Thread PKJR
problem solved On 6/23/06, Paul Raczynski <[EMAIL PROTECTED]> wrote: > problem solved > > On 6/22/06, PKJR <[EMAIL PROTECTED]> wrote: > > I am trying to convert string like '5/20/1990" to AB Date format so I > > can use with DateNum().. is there an easy

[amibroker] Converting String to Dates

2006-06-22 Thread PKJR
I am trying to convert string like '5/20/1990" to AB Date format so I can use with DateNum().. is there an easy way? StrToDateTime seems like it is not what I am looking for. .. am I missing something here? .I would think that there would be an internal function for that.. Tks for help Paul ---

[amibroker] SetForeign/RestorePrices

2006-06-21 Thread PKJR
I was reading a help files about SetForeign/RestorePrices and I see the difference, but I cannot envision a practical implementation of both (tradeprices) being setup to True. Could anyone give an example where you really have to have both setup to True? tks Paul Yahoo!

Re: [amibroker] Testing - # of contracts

2006-06-21 Thread PKJR
t; can only ever give you one contract per trade. -- Cheers GrahamAB-Write >< Professional AFL Writing ServiceYes, I write AFL code to your requirements http://e-wire.net.au/~eb_kavan/ab_write.htm On 21/06/06, PKJR <[EMAIL PROTECTED]> wrote: Graham - I know I am one unlucky guy..

Re: [amibroker] Has anybody made any money???

2006-06-20 Thread PKJR
Could you elaborate more on the your statement about WL and AB?   quote:" AB's backtester treats signals differently than WL which I think is the right way. TJ has agreed to add a switch to make them behave the same in future release."   tks Paul   On 6/20/06, Mark H <[EMAIL PROTECTED]> wrote:

Re: [amibroker] Testing - # of contracts

2006-06-20 Thread PKJR
g is checked the position is entered with size shinked to available cash if it is unchecked the position is not entered. -- Terry   -Original Message-From: amibroker@yahoogroups.com [mailto: amibroker@yahoogroups.com] On Behalf Of PKJR Sent: Tuesday, June 20, 2006 14:39 To: amibroker@yahoog

Re: [amibroker] Testing - # of contracts

2006-06-20 Thread PKJR
Tks for your help but the Point value is not up to me.. this Natural Gas contract - specs here: http://www.nymex.com/NG_spec.aspx I used PositionSize=1 (shown on my pic) - before but that did not work either.. the funny thing is that it works on just on underlying contract..but not on composite cr

[amibroker] Re: Testing - # of contracts

2006-06-20 Thread PKJR
future contract the above line is not limiting me to one contract.. does anyone know solution to this problem? Paul On 6/20/06, PKJR <[EMAIL PROTECTED]> wrote: > Hi All: > > I am still in the learning mode here but I'm trying to get through > the learning curve asap I tri

[amibroker] Testing - # of contracts

2006-06-20 Thread PKJR
Hi All: I am still in the learning mode here but I'm trying to get through the learning curve asap I tried almost everything to get the testing results based on 1 contract basis (futures mode). I tried the following in my code (one or all): //PositionSize = MarginDeposit = 1; SetOption("MaxO

Re: [amibroker] Multi-dimension arrays?

2006-06-18 Thread PKJR
ps.yahoo.com/group/amibroker-dll/files/ > > Or you can really get gnarly and use dynamic variables.. > > d > > > -Original Message- > > From: amibroker@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of PKJR > > Sent: Friday, June 16, 2006 8:

Re: [amibroker] Adding Column to Backtester

2006-06-18 Thread PKJR
--- > > > From: amibroker@yahoogroups.com > > > [mailto:[EMAIL PROTECTED] On Behalf Of PKJR > > > Sent: Sunday, June 18, 2006 11:11 AM > > > To: amibroker@yahoogroups.com > > > Subject: Re: [amibroker] Adding Column to Backtester > > > > >

Re: [amibroker] Adding Column to Backtester

2006-06-18 Thread PKJR
first > for( trade = bo.GetFirstTrade(); trade; trade = bo.GetNextTrade() ) > { > // ADDED LINE > EquityAtEntry = FindEquityAtDateTime( eq, dt, trade.EntryDateTime ); > } > } > > > > -- > Cheers > Graham > AB-Write >< Professional AFL Writi

[amibroker] AmiBroker Newsletter

2006-06-18 Thread PKJR
Is the 1/2005 the last newsletter ever produced? Paul Yahoo! Groups Sponsor ~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/ulNZQC/lOaOAA/cosFAA/GHeqlB/TM --

[amibroker] Adding Column to Backtester

2006-06-17 Thread PKJR
Hi All - small dilemma here.. I would like to add a column to the backtester results..I know I can us a custom metric that is derived from backtester results and add a column this way but how about adding a column that contains data not derived from backtester object but rather from an array in you

Re: [amibroker] Multi-dimension arrays?

2006-06-17 Thread PKJR
n 17/06/06, dingo <[EMAIL PROTECTED]> wrote: > > Not using AFL. But you can do it via the Osaka Plug In. > > http://finance.groups.yahoo.com/group/amibroker-dll/files/ > > > > Or you can really get gnarly and use dynamic variables.. > > > > d > > > >

[amibroker] Multi-dimension arrays?

2006-06-16 Thread PKJR
Hi All: Can I use multi-dimension arrays? like A[m, n] in AmiBroker? example: I want to read a data from a text file for a series of ticker names and each ticker will have some additional settings: XYZ, v11, v12, v13 ABC, v21, v222, v23 I want to store this info in an array and re-use this in AF

[amibroker] SetForegn Issue

2006-06-13 Thread PKJR
Hi All; I am not sure what could be wrong here but I use the following code to set to different contract.. I use the high/low/close from the foreign contract to run through a formula and calculate buy/sell signals and restore values.. however, the values between SetForeign/restore are not generat

Re: [amibroker] Custom Rollover Dates & Testing

2006-06-11 Thread PKJR
Thnaks Terry for your answer.. I would prefer to do it hard way ( second approach) but what I am not able to understand is this: since I roll/change contracts every month I use less than 30 day data windows for any given contract and I am going to have 120 contracts for a ten year window and my in

[amibroker] Custom Rollover Dates & Testing

2006-06-09 Thread PKJR
Hi All Being new to AmiBroker I am looking for options to test futures my own way e.g.,I would like to use custom rollover dates in testing and use individual contract data vs. continuous charts .. what are my options besides Merge function.? Tks Yahoo! Groups Sponsor -