Graham, I have a set of systems for going long and short on an instrument which have been developed independently of each other. So what it means is that on an instrument I can be long with a holding period of 20 bars but also short with holding period of 5 bars. Now before I get to auto trade them, I want run explore at a specific time interval. These systems are present in different AFL files and each have their own stops. Ideally I dont want to mix them all in one AFL file. Rather I want some wrapper script which runs these AFL files and produces output in automatic analysis window. To the best of my understanding I think its possible through OLE automation. This is where I dont have experience and Amibroker is a new platform to me. If you have experience in OLE automation, pls do let me know.
--- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote: > > Try adding a time condition to your trade conditions > You can have them both in the same AFL, and have the trade conditions like > Buy = Condition1 OR Condition2; > > > > -- > Cheers > Graham Kav > AFL Writing Service > http://www.aflwriting.com > > > On 25/02/2008, vishy_sharma <[EMAIL PROTECTED]> wrote: > > I have got hourly bars in my real time chart. Since bars occur at an > > interval of 60 mins, I want my exploration to work once for that new > > bar and as quickly as possible after that bar is finished. > > I have got the code which shows the buy and sell signal in the > > automatic analysis window but the problem is that at present I run > > exploration every 1 min. So there are spurious signals which get > > generated before the actual close of the hourly bar. > > pls suggest some code which can help me overcome this problem. > > > > Also I have 2 uncorelated strategies for the real time chart. I want to > > run both of them at the same time and get the real time signals > > displayed in the AA window. I have been told that this is possible > > through OLE automation? Never done that before. Any help from some one > > who has done it before will be very much appreciated. >