[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Exact amount of transaction dayli



PureBytes Links

Trading Reference Links



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: amibroker@xxxxxxxxxxxxxxx
From: raskoks@xxxxxxxxx
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.




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___