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

Re: [amibroker] False sell signals



PureBytes Links

Trading Reference Links

Suggestion, if youšre buying you probably want to buy when the Close crosses
up over the 9 day MA so reverse your cross statement.
Cross(Close,DEMA(Close,9))

The Sell is just a conditional. It doesnšt care about the current status of
the Buy signal (because you havenšt told it to). However, the backtester
Œknowsš if youšre on a Buy or Sell and operates correctly. If you just donšt
want to see the extra Sells add this line of code after the Sell = ...
Buy = ExRem(Buy,Sell); //Probably not needed in this example, but included
for completeness
Sell = ExRem(Sell,Buy);

Terry
--

> Hi,
> I am a newbie. I am trying to backtest with thefolowing conditions
> 
> Buy=(Volume >200000 ) AND (Open>.40) AND (Open< 3) AND Cross(DEMA
> (Close,9),Close) ;
> Sell=Open<Ref(Close,-1) ;
> 
> i get a lot of sell signals.
> 
> My question is because i am testing only longs, my sell signal should
> be only after the buy is triggered for a given stock. why do i get so
> many false sell signals?
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> 
> 
> Yahoo! Groups Sponsor
>  
>  ADVERTISEMENT
>  
> <http://us.ard.yahoo.com/SIG=129htlt86/M=295196.4901138.6071305.3001176/D=grou
> ps/S=1705632198:HM/EXP=1095016302/A=2128215/R=0/SIG=10se96mf6/*http://companio
> n.yahoo.com>  
> 
> 
> 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
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> *  
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/> .
> 


-- 
Terry



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/