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

[amibroker] Re: Exrem



PureBytes Links

Trading Reference Links


Hello Mike,

Use:

Buy=ExRem(Buy, Day()!=Ref(Day(),-1));
Short=ExRem(Short,Day()!=Ref(Day(),-1));

This will give you only the first buy and first short of the day. 

Sam

> 
> --- In amibroker@xxxxxxxxxxxxxxx, "mikelaurataylor" 
> <mikelaurataylor@xxxx> 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





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/