| 
 PureBytes Links 
Trading Reference Links 
 | 
Query 1, only one buy for day
Buy = Cross( x, y );
Sell = Cross( y, x );
buy=exrem(buy,sell);
If you have a sell without first buying you would still get thge sell
signal but it would have no effect on any backtesting. However one way
to remove it
BuySig = Cross( x, y );
SellSig = Cross( y, x );
Intrade = flip(buysig,sellsig);
buy= buysig and ref(intrade,-1)==0;
sell= sellsig and ref(intrade,-1);
On Tue, 01 Feb 2005 22:34:52 -0000, mikelaurataylor
<mikelaurataylor@xxxxxxxxx> wrote:
> 
> 
> Two related questions I'm hoping someone can help me with:
> 
> 1. Assuming you have a minute by minute array and set up a buy
> signal on a crossover - but only want the buy signal on the first
> crossover of the day.    Can you do this w/o building a loop but
> rather via some function?
> 
> 2. Assuming you issue the buy signal and now have another crossover
> signal for a sell.   How do you tell it to issue a sell ONLY if you
> have previously bought - or does it do this automatically?
> 
> Thanks
> 
> MIke
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 
-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/
 
 |