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

Re: [amibroker] Re: How To Limit Intraday Trades To One Per Day?



PureBytes Links

Trading Reference Links

Thanks to you!

This is a perfect solution.

Good trades
enzo



----- Original Message ----- 
From: hoolee0820 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Thursday, August 04, 2005 3:01 AM
Subject: [amibroker] Re: How To Limit Intraday Trades To One Per Day?


Here is my version:

Buy = your-buy-condition;
Lastbuyday = ValueWhen(Buy, DateNum(), 2);
Buy =  Buy AND DateNum() != Lastbuyday;


--- In amibroker@xxxxxxxxxxxxxxx, "enzo" <herrfrechdax@xxxx> wrote:
> hello usergroup,
> 
> I want to backtest a strategy that generates one trade per day 
after a 
> certain condition on the previous day became true:
> 
> Buy      = PrevDayBuyCond AND Cross(Close,BuyAtPrice);
> 
> How can I limit the number of trades that will be generated 
intraday 
> to a single one? 
> 
> Thank you guys in advance!
> 
> enzo




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





---------------------------------------------------------------------
-----------
YAHOO! GROUPS LINKS 

 Visit your group "amibroker" on the web.
  
 To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx
  
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 


---------------------------------------------------------------------
-----------






------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h8ls6t3/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123145363/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/