PureBytes Links
Trading Reference Links
|
About a month ago there was some talk on the board about buying
on 'Breakouts'. You were to buy at a 10 day low and sell when the
price reached the 10MA.
Newlow = C<=Ref(LLV(C,10)-1);
MAavg = MA(C,10);
Buy = Newlow;
Sell = Cross(C,MAavg);
I was trying to write something that would tell me in
the 'Interpretation' section if it was in 'Buy' or 'Sell' mode.
Below is what I cam up with;
WriteIf(Buy,"NewLow Bullish"," ") +
WriteIf(Sell,"NewLow Bearish"," ");
This gives me correct info on the dates when there is a buy or sell
signal. On dates when there is no buy or sell signal it sometimes
gives me wrong info or most of the time no info at all.
Would appreciate it if someone could help me out with this.
Thanks, Joe
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/
|