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

[amibroker] Re: Bars since Buy signal - how to code in AFL ?



PureBytes Links

Trading Reference Links


--- In amibroker@xxxxxxxxxxxxxxx, "vb_MCSE" <av_inon@xxxx> wrote:
> 
> Hi:
> Caught this Trend Change system from an old Tradestation video from
Omega.
>  
> Hi:
> Caught the following on an old Tradestation video from Omega:
>  
> Buy signal when:
>  Today's Low is lower than the lowest Low of past 6 days
>  AND
>  Today's Close is Greater Than Yesterday's Close.
>  
> Sell signal when:
>  If Bars Since Entry = 7 then Sell on Close.
>  

Just tried another variation and now I get tons of buy signals and a
few sell signals.
 
Buy = Low = LLV(Low, 6) AND Close > Ref(Close, -1);
Sell = BarsSince (Buy) == 7;
 
The Sell signal should occur 7 bars after each buy signal. I think I'm
getting closer. Any suggestions would be most appreciated.
 
vb





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/