PureBytes Links
Trading Reference Links
|
Hi all
The code below is trying to buy if the open tomorrow is lower than todays
close minus 1 atr(5)....
Does the code do what I think it is doing...thanks in advance...
Trigger=Close < Ref(Close,-1) AND Ref(Close,-1) < Ref(Close,-2) AND
Ref(Close,-2) < Ref(Close,-3);
Cond1 = trigger;
Cond2=ATR(30)/C >.025; // atr>2.5%
cond3=MA(C,21)*MA(V,21)>500000; //turnover > 500000
Cond4=MA(C,200)>Ref(MA(C,200),-50) > - 2*ATR(200) ; //mov avg ang greater
than -2 atr200
Buysig = Cond1 AND Cond2 AND Cond3 AND Cond4;
Buy= (Ref(Buysig,-1)==1) AND (L<Ref(C,-1)-1*ATR(5));
BuyPrice = Ref(L,-1)-1*ATR(5);
Regards
Steve C
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|