PureBytes Links
Trading Reference Links
|
Steve,
Thank you. This is very close to what I
want. The small problem is that it starts to buy on the 2nd event
and then sell on 3rd, etc. I would prefer buy on 1st and sell on
2nd. Other then that small problem, this is great.....
I am trying to learn and understand
Amibroker. I tried to look up what the % 2 is doing. Could not find
anything on this. Probably looking in the wrong place. Doesn't
seem to be in the help doc's.
Thanks again.
Stan
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Steve Dugas
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, October 01, 2003 11:42
AM
Subject: Re: [amibroker] SPX Buy and Sell
Signal
Hi Stan - how about something like
this?
fast=5;slow=6;
FstC=EMA(C,fast);SloC=EMA(C,slow);Cond1 =
Cross(FstC,SloC);
Buy= Cond1;Buys = Cum( Buy );Sell = Buy
AND Buys % 2 == 0;Buy = Buy AND NOT Sell;
Filter=
C>1;AddColumn(Buy,"Buy");AddColumn( Buys,
"buys");AddColumn(Sell,"sell");AddColumn(FstC,"Fast
C");AddColumn(SloC,"Slow C");AddColumn(Cond1,"C Gt Av");
Steve
Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT<img
src="" width=300 height=250 border=0>
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|