[amibroker] Re: Code help - checking intervals within a range

2009-01-10 Thread sidhartha70
Good idea Mike. Should work. I need something that includes every bar in the 8 not just picks the highest or lowest. many Thanks --- In amibroker@yahoogroups.com, Mike sfclimb...@... wrote: What about something like this (untested): upper = Ref(High, -10); lower = Ref(Low, -10); cond1 =

[amibroker] Re: Code help - checking intervals within a range

2009-01-09 Thread sidhartha70
Sorry Dan, I should have made it clearer... I want to make sure that all the 8 following intervals have at least one tick within the price range of the interval 10 back. i.e. it's not that the whole range of the 8 intervals has to be within the range of the one 10 back... simply each of the 8

[amibroker] Re: Code Help

2008-07-10 Thread tipequity
Thanks Graham for your reply. I still get an error message when I click on the chart or change the dates. TIA --- In amibroker@yahoogroups.com, Graham [EMAIL PROTECTED] wrote: You might be choosing dates that do not appear in the symbol data StartDateBar = LastValue(ValueWhen ( DateNum () =

[amibroker] Re: Code Help

2008-07-10 Thread tipequity
The trace statement gives the following error message that I get: [2392] Bar: 2890 StartDateBar {EMPTY} C[Bar] {EMPTY} I don't understand why it works on loadup then it fails upon changes to paramdate. --- In amibroker@yahoogroups.com, tipequity [EMAIL PROTECTED] wrote: Thanks Graham for

Re: [amibroker] Re: Code Help

2008-07-10 Thread Graham
You have this DateNum () == StartDate But should be dt == StartDate You might also find you need to add this line SetBarsRequired(1,1); -- Cheers Graham Kav AFL Writing Service http://www.aflwriting.com 2008/7/11 tipequity [EMAIL PROTECTED]: The trace statement gives the

Re: [amibroker] Re: Code Help

2008-07-10 Thread Graham
Sorry ignore previous response as I made mistake, tried to stop it sending but was too slow I had a quick look at your total code and made some mods to help. here is one way to do it SetBarsRequired(1,1); da = Date(); dn = DateNum(); bi = BarIndex(); StartDate = ParamDate ( Start Date

[amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread bruce1r
Dennis - I don't post here much, but was about to post something else and saw this. Sometimes I can't resist a challenge. It looks like you want to experiment with CMAE as a general purpose function optimizer. First, I concur with others - the best way is to write a DLL. But, if you just want

Re: [amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread Tomasz Janeczko
Nice :-) Best regards, Tomasz Janeczko amibroker.com - Original Message - From: bruce1r [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Monday, July 07, 2008 5:51 PM Subject: [amibroker] Re: Code help please... Optimize with CMAE Dennis - I don't post here much, but was about

Re: [amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread Dennis Brown
Bruce, Thanks for the out-of-the-box thinking. That is a clever way to approach the problem. I will study it. Best regards, Dennis On Jul 7, 2008, at 11:51 AM, bruce1r wrote: Dennis - I don't post here much, but was about to post something else and saw this. Sometimes I can't resist a

Re: [amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread Chris DePuy
/Backtester settings/Walk-Forward/Optimization Target. Thanks - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.com Sent: Monday, July 07, 2008 9:00 AM Subject: Re: [amibroker] Re: Code help please... Optimize with CMAE Nice :-) Best regards, Tomasz

Re: [amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread Tomasz Janeczko
Hello, AA, Settings, Walk-Forward : type-in manually into Optimization Target field. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: Chris DePuy To: amibroker@yahoogroups.com Sent: Monday, July 07, 2008 8:38 PM Subject: Re: [amibroker] Re: Code help

Re: [amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread Chris DePuy
Tomasz, thank you. I was typing Objective, not objective. This is case sensitive, apparently. Chris - Original Message - From: Tomasz Janeczko To: amibroker@yahoogroups.com Sent: Monday, July 07, 2008 1:00 PM Subject: Re: [amibroker] Re: Code help please... Optimize

[amibroker] Re: Code help please... Optimize with CMAE

2008-07-07 Thread bruce1r
into Optimization Target field. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: Chris DePuy To: amibroker@yahoogroups.com Sent: Monday, July 07, 2008 8:38 PM Subject: Re: [amibroker] Re: Code help please... Optimize with CMAE Bruce or Tomasz

[amibroker] re: code help

2008-05-08 Thread Tim
Hello, I have a chart code that was developed for me with specific colors based on the Ergodic indicator. I would like to change one of the colors from a blue to a pale blue but can't find that part of the code which would allow me to do so. Would someone who is very knowledgeable with AFL please

[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] Re: code help request

2008-01-10 Thread bilbo0211
I don't think that will work because MD just crossed above zero so BarsSince(MD==0); will be 1. I think you need something like bsZeroCross=BarsSince(MD==0); bsPrevZeroCross=BarsSince(Ref(MD,-bsZeroCross)==0) LowPrice = LLV(Low,bsZeroCross+bsPrevZeroCross); Bill --- In

Re: [amibroker] Re: code help request

2008-01-10 Thread Ara Kaloiustian
Sorry, the line MACD_Bars = BarsSince(0,MD); should be MACD_Bars = BarsSince(Cross(0,MD)); - Original Message - From: bilbo0211 [EMAIL PROTECTED] To: amibroker@yahoogroups.com Sent: Thursday, January 10, 2008 6:45 AM Subject: [amibroker] Re: code help request I don't think

[amibroker] Re: Code help requested

2006-03-16 Thread Brian
Rakesh, I ran into a similar problem and have decided to use INCLUDES to minimize the extra work that will go into maintaining separate exploration AFLs. So, I will have separate explorations for each timeframe (in my case, EOD and Weekly) and both explorations will share many of the same