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

[amibroker] Re: AB using intraday data to display daily bars



PureBytes Links

Trading Reference Links

Thanks to both of you for your help


--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> The condition
> Cond=RSI(n)<30;
> will be true for some bars.This is your Wait function.
> Wait=RSI(n)<30;
> If you want to buy at the last <30 bar, then you should use
> Buy=Cross(RSI(n),30);
> It is equivalent to
> Not(Wait) and Ref(Wait,-1).
> You can not, of course, know the last <30 bar before the first 
>30 !!
> Dimitris Tsokakis
> --- In amibroker@xxxxxxxxxxxxxxx, "allenfwtx" <allenfwtx@xxxx> 
wrote:
> > Using Cross(), I know how to trigger a Buy when an indicator 
> exceeds 
> > some value; however I don't know how to wait until the indicator 
> dips 
> > to some predetermined value, then rises back above that 
threshold.  
> > For example, if I want to trigger a Buy once the RSI(n) falls 
below 
> > 30, but not until it then rises above 32, how would I program 
that?
> > 
> > thanks to all for your time and help.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/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/