PureBytes Links
Trading Reference Links
|
Hello,
I found this AFL in the library but it doesn't work. Would someone
please take a look at this and see where it goes wrong? Thank you for
any and all help.
Kindest regards,
Tim
function rectBaseBreakout() {
hhv9d = HHV(H, 9);
llv9d = LLV(L, 9);
hhv1m = HHV(H, 20);
llv1m = LLV(L, 20);
hhv2m = HHV(H, 40);
llv2m = LLV(L, 40);
hhv50d = HHV(H, 50);
llv50d = LLV(L, 50);
vhhv60d = HHV(V, 60);
cav50d = MA(C, 50);
vav20d = MA(V, 20);
C1 = H > Ref(hhv9d, -1);
C2 = L > Ref(llv9d, -1);
C3 = C > Ref(hhv50d, -1);
C4 = C > cav50d;
C5 = V > (vav20d * 2);
C6 = vav20d > minAvgVolume;
C7 = cav50d > 0;
C8 = (llv1m < (llv2m * 1.05)) OR (llv1m <= (llv2m + 1));
C9 = (hhv1m > (hhv2m * 0.95)) OR (hhv1m >= (hhv2m - 1));
return( C1 AND C2 AND C3 AND C4 AND C5 AND C6 AND C7 AND C8 AND C9 );
}
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL 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/
|