I think this might help if I understand your question correctly

 

tradesperday=3;

newday=day()!=ref(day(),-1);

bsnd=barssince(newday);

 

tradesig1=.....

totaltradesigtoday=sum(tradesig1,bsnd);

 

buy=totaltradesigtoday<=tradersperday and ......
 


To: [email protected]
From: [email protected]
Date: Thu, 24 Sep 2009 10:37:03 +0000
Subject: [amibroker] Exact amount of transaction dayli

  



Hi,
I've got two signals conditions one for long and one for short positions.I'm 
using hourly bars.
Idon't know how to force backtester making max one (or other exactly number) 
trade for each day.
I need to consider long signals only if my position is short or short signals 
if my position is long (some kind of reverse but not always).
I know how to use flip to use only one signal for each day. But how to make one 
signal important and second not depend of current position. 








                                          
_________________________________________________________________
Microsoft brings you a new way to search the web.  Try  Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try 
bing_1x1

Reply via email to