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.