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

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



PureBytes Links

Trading Reference Links

proabably a simple answer available, but you could use something like this

BuySig = YourBuyConditions;
EndOfDay = datenum()!=ref(datenum(),1);
HadOneTradeAlready = Flip( BuySig, EndOfDay );
Buy = BuySig and ref(HadOneTradeAlready,-1)==0;


On 8/4/05, enzo <herrfrechdax@xxxxxxxx> 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
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hp7gg12/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123114309/A=2894352/R=0/SIG=11fdoufgv/*http://www.globalgiving.com/cb/cidi/tsun.html";>Help tsunami villages rebuild at GlobalGiving. The real work starts now</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/