Re: [amibroker] Re: How to control delaying "some" new buys?

2009-03-09 Thread Edward Pottasch
yeah the way I solved it looks complicated but basicly the solution in words is: when the stoploss is hit you still need to sell at the sell defined by the cross. For the sellprice you use the stopprice. This is the only way to prevent the backtester from allocating funds right after the stop. T

[amibroker] AFL CODE HELP

2009-03-09 Thread bharath kumar
DEAR AMIBROKER BUDDIES, I AM PRETTY NEW TO AMIBROKER AFL CODING. CAN SOME BODY PLEASE WRITE A CODE FOR FOLLOWING CRITERIA. STOCKS WHICH OPEN ABOVE PREVIOUS DAYS CLOSE AND CLOSE BELOW PREVIOUS DAYS CLOSE AT END OF FIRST 5 MIN. EX: ABC STOCK PD CLOSE AT 400 NEXT OPENS AT 402 AND CLOSES AT 398 AT

[amibroker] AFL for Intraday

2009-03-09 Thread kingkongking9
Hi..I'm newbie in AB from Indonesia. I always try every AFL for intraday, but fail. Would u like to give me AFL for intraday for signal buy and sell? Thanks...

[amibroker] Re: AmiBroker 5.24.0 BETA released

2009-03-09 Thread Paolo Cavatore
Thanks Aron, sounds great. regards, paolo --- In amibroker@yahoogroups.com, Aron wrote: > > Thomas Ludwig wrote: > > On Saturday 07 March 2009 10:29:46 Tomasz Janeczko wrote: > > > > > >> Yes calculation of complex formula in one pane and passing to other panes > >> is the simplest applicati

Re: [amibroker] Re: Error 10. Subscript out of range. You must not access array elements outside 0..

2009-03-09 Thread Tomasz Janeczko
Actually b < BarCount should be used instead of for b < BarCount-1 since "less than" operator guarantees that b is never equal to BarCount. Alternativelly one could use b <= BarCount-1 (note less or equal operator used this time). Best regards, Tomasz Janeczko amibroker.com - Original Messa

Re: [amibroker] Re: www.aflwriting.com

2009-03-09 Thread Tomasz Janeczko
Graham is frequent poster and he has offered a lot of help on this list and I have heard nothing but praise about his service. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "mytakeismine" To: Sent: Monday, March 09, 2009 5:40 AM Subject: [amibroker] Re: www.aflw

[amibroker] Re: AmiBroker 5.24.0 BETA released

2009-03-09 Thread vlanschot
Tomasz, To clarify my understanding (and perhaps help others as well): 1) The upgrade of StaticVarSet/Get now allows arrays, previously only numbers and strings. 2) StaticVarSet allows one to store an array and then retrieve this via StaticVarGet similar to a) Foreign (ATC), EXCEPT that this w

Re: [amibroker] Re: Whats wrong with this formula for Average Price Composite

2009-03-09 Thread DStricek12
I also noticed that running Composite on All symbols ( Apply to ALL SYMBOLS checked on) vs ( Apply to USE FILTAR checked on / INCLUDE TAB empty/ EXCLUDE TAB indexes checked on ) yields different results. Thank you Brian for response. - Original Message - From: brian_z111 To: a

[amibroker] Re: www.aflwriting.com

2009-03-09 Thread WG
I have used Graham's (afl writing) service in the past (2006) and he did an excellent job for me as well. My impression is that he is overly busy so there is a few weeks of queue time but once he got around to it, he did an excellent job. On that point, it is quite obvious to me and others that

Re: [amibroker] Re: AmiBroker 5.24.0 BETA released

2009-03-09 Thread Tomasz Janeczko
It is not about global or local (i.e. scope), but about lifetime of variables. Static variables as far as scope is considered are global, however that is not the most important thing. The lifetime is where the main difference is. The lifetime of static variable is as long as program is running,

[amibroker] ProphetX DDE

2009-03-09 Thread jgholson
Happy Monday to All! wondered if anyone was using ProphetX with DDE to amibroker? i know you can get the IQFeed free if you have ProphetX but was trying to use through DDE to Amibroker without IQFeed. Here's what a DDE looks like when I drop it into Excel: =ProphetX|QUOTE!'msft[DTN:NASDAQ]?La

[amibroker] Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Gordon
Hi All, I just posted a new suggestion at www.Amibroker.com/feedback. It occurred to me that most AB users don't know about or use the feedback area. So, I wanted to take a second to highlight the value of using the site to add suggestions and provide feedback for existing ones. If you haven't

[amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread sidhartha70
Gordon, I'm pretty sure you can code for this type of stuff already in AFL. You can simply set up your on checks to see if an event has occurred, and if it has, execute any code you want... For example, OnBar() that you are talking about could be achieved by looking for a change in DateTime()

[amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread sidhartha70
'own checks' that should read... --- In amibroker@yahoogroups.com, "sidhartha70" wrote: > > Gordon, > > I'm pretty sure you can code for this type of stuff already in AFL. You can > simply set up your on checks to see if an event has occurred, and if it has, > execute any code you want... > >

Re: [amibroker] Re: how to exclude certain results in smart optimization

2009-03-09 Thread Richard
Mike wrote: > You would do that by defining your own "fitness function" and exposing ... > bo.addCustomMetric("tMult", tMult); excellent! thanks

[amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Gordon
Hi sidhartha70, Thanks for your thoughts. I actually did try something like that, but seemed to find some sensitive timing issues. My objective was, as soon as I detected a new bar (this was using one minute bars), to access information about the just completed bar. At least in my experience, i

[amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread sidhartha70
I'm sure TJ will comment on this. But you may need to use static variables. I'm not sure. But I'm pretty sure all this event stuff can already be achieved in AFL. --- In amibroker@yahoogroups.com, "Gordon" wrote: > > Hi sidhartha70, > > Thanks for your thoughts. I actually did try something lik

Re: [amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Dennis Brown
Gordon, AFL is event driven. Some event causes your AFL program to execute. You can check to see which event caused it to run and run all or a portion of your program depending on the event. Check back on your suggestion again for an example of bar closed. You can suggest a new event type

Re: [amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Yofa
Hi All, to clarify what event driven programming model means read this article http://en.wikipedia.org/wiki/Event-driven_programming To make it short and simple: the whole AFL code executes as a "single batch" when some event (new tick, time refresh etc.) occures in AB. And then AFL code has t

Re: Re[2]: [amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Dennis Brown
Herman, What I said is that I have to exit AFL between passes. That is to let operations take place that will not run while I am inside the AFL loop. For instance, recompiling the Parameters window (after poking the Reset all button with my DLL) takes a whole new AFL pass from the start

Re: [amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Tomasz Janeczko
Sorry, but clearly your knowledge about computers is very limited. In Windows OS, all programs execute strictly sequentially. And all this "event driven" processing in Windows is actually single big loop that calls non-stop GetMessage function and that processes the message through sequence of co

[amibroker] TC2007 data

2009-03-09 Thread H L
Hi: I am trying to generate statistics using stock data from TC2007, but find AB treats both stocks and funds (e.g., , DXO) as stocks. Is there a way to filter out non-stock symbols? Thanks. HL

[amibroker] Re: www.aflwriting.com

2009-03-09 Thread brian_z111
> This website is a sham. I've got taken. I asked for a system to >trade > ETF's and I got back my own script that I posted a month ago on >this Yahoo > Group. What a waste of time... > I don't understand. I thought aflwriting.com was a code writing service and not a seller of 'systems'

[amibroker] Re: www.aflwriting.com

2009-03-09 Thread Andy
Forget it. Waiting for his replies takes forever... --- In amibroker@yahoogroups.com, "Mike" wrote: > > Hi, > > I've never dealt with the company. But, Graham has a long history of helpful > and constructive contributions to this forum. > > If you haven't already, you might try contacting him

[amibroker] Re: www.aflwriting.com

2009-03-09 Thread Andy
He did not write my code to specifications. He wasn't even close. It takes forever for him to reply to emails and quite frankly, I don't think he even read my emails to full extent. I wanted to call him to verify the specifications before he started the job but he didn't want any of that.

[amibroker] Re: www.aflwriting.com

2009-03-09 Thread brian_z111
Andy, In my time in the forum I have tried to be fair to others and stick up for fairness (didn't always succeed). That is why I asked you to clarify further. It seems that there is more to it than your original post and it involves matters that can only be clarified by discussion between your

[amibroker] Re: www.aflwriting.com

2009-03-09 Thread ozzyapeman
If you've been a 'computer scientist all your life', you wouldn't need someone to write an AFL for you, especially since you have already written AFL trading system. Something doesn't quite add up, especially your insistence on not wanting to contact Graham to resolve this matter vs slamming hi

Re: [amibroker] Re: www.aflwriting.com

2009-03-09 Thread Andrew Senft
Actually, I'm writing it myself now. I'm just not up to speed on the various indicators in what I should be using in my own system. I've bought quite a few technical books so I'm deep into that right now. I feel if I have one more indicator that works, it's going to be a robust system...

Re: [amibroker] Re: www.aflwriting.com

2009-03-09 Thread Tomasz Janeczko
As I wrote before, in the past I have heard nothing but praise for Graham expressed on this list many times. I consider this thread as closed. The original poster should resolve the issue in private. Best regards, Tomasz Janeczko amibroker.com - Original Message - From: "ozzyapeman" To

[amibroker] Re:FT Monitor/AB Conference

2009-03-09 Thread richardlboroff
Wow! You don't have a conference and you get more conversation about it than if you do have one. Seriously, Thank you to everyone who made comments about the conference, and especially to Tomasz, Bruce Robinson and Howard Bandy. Also to Bill Barack who did not contribute to this discussion.

Re: [amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Yofa
Yes. I'm a computer illiterate. There is no doubt about that :) And you are beautiful and always right :))) And yes! I wrote my message loop in AFL... I enjoyed it! 15 years old memories flashed back :) Still, AB is not even close to what is called event driven programming modell. I didn't eve

Re: [amibroker] Re:FT Monitor/AB Conference

2009-03-09 Thread David Fitch
Richard, I'd be there in a heart beat. But of course, you know that:) Dave - Original Message - From: richardlboroff To: amibroker@yahoogroups.com Sent: Monday, March 09, 2009 5:11 PM Subject: [amibroker] Re:FT Monitor/AB Conference Wow! You don't have a conference and you

Re: [amibroker] Re:FT Monitor/AB Conference

2009-03-09 Thread Joe Landry
Hey Richard, sorry I missed the last meeting, only I didn't know it might be the last. You know the circumstances. Wish we could find a conference center with lower up front commitments but one that would be attractive enough to draw a good attendance. One that one make it profitable for you, t

[amibroker] automated trading with AB

2009-03-09 Thread bigitop
I considering automating the execution of a strategy that is working for me. Can anyone point to reference material on automation with AB/IB? My strategy needs to actively scan a lot of symbols and check if the data meets the criteria to buy/short/sell. also, one basic question: can Amibroker

[amibroker] Re: automated trading with AB

2009-03-09 Thread brian_z111
Bigitop #2 and #6 on this list. http://www.amibroker.org/userkb/2008/03/23/amibroker-supported-sites/ Hermans' your man ... Heart of Gold (Neil Young). --- In amibroker@yahoogroups.com, "bigitop" wrote: > > I considering automating the execution of a strategy that is working for me. > Can

[amibroker] probable bug in afl execution

2009-03-09 Thread redberryys
Hi all, I hope this is the right place to post this - apologies otherwise & please redirect me to the right place. I'm trying to filter some signals using a for loop. I print the variables in the loop and I 'plotShapes' the same variables. Results are erratic and inconsistent. If I move the sel

Re: Re[4]: [amibroker] Re: Events in AB/AFL - use of www.Amibroker.com/feedback

2009-03-09 Thread Dennis Brown
Herman, Your solution is clever, but does not apply to me. I already have realtime event handling in my general includes for my chart -- and I really only have one realtime chart that I use, so that is not my problem. However, your other statement is interesting: "You could also write a

[amibroker] Re: AmiBroker 5.24.0 BETA released

2009-03-09 Thread brian_z111
Tomasz, Re: 'nosync' arrays Please be gentle with me ... you know I only conduct computing thought experiments and have never opened the bonnet on my computer, or read the OS manual. Also, I am not teaching you how to suck eggs ... I don't know what is in your mind ... I can only make an appr