PureBytes Links
Trading Reference Links
|
> > Hi jolly, > > > > So what language was the original code written in? > > > > Hard to do any translation when one doesn't know what to convert from. > AVG has a particular definition in AFL (check the help file). Telechart > PCF's use a convention like AVGH3.5 to mean the a 3 day average of the > high 5 days ago. In AFL that would be REF(MA(H,3),-5) . > > > > > Peace and Justice --- Patrick
This is my second attempt with no syntax error but returns nothing on an exploration over 10 years.
"J-Hook Pattern" ; J1 = (L1 = Min(L,4) OR L2 = Min(L,4) OR L3 = Min(L,4)) && Max(C,3) < Ref(Max(C,4), -3) && (H3 = Ref(Max(H1, 5), -4) OR H4 = Ref(Max(H1, 5), -4) OR H5 = Ref(Max(H1, 5), -4) OR H6 = Ref(Max(H1, 5), -4) OR H7 = Ref(Max(H1, 5), -4)) && (Ref(Max(H,4), -3) - Min(L,4) / Ref(Max(H,4), -3) - Ref(Min(L2, 1), -3) > 0.23) && (Ref(Max(H,4), -3) - Min(L,4) / Ref(Max(H,4), -3) - Ref(Min(L2,1), -3) < 0.62) && Ref(MA(H, 3), -5) > Ref(MA(H, 3), -8) && Ref(MA(H, 3), -8) > Ref(MA(H, 3), -13) && Ref(MA(H, 3), -13) > Ref(MA(H, 3), -18);
/* ; ((L1 = MINL4) OR (L2 = MINL4) OR (L3 = MINL4) ) AND ( (MAXC3 < MAXC4.3)) AND( (H3 = MAXH15.4) OR (H4 = MAXH15.4) OR (H5 = MAXH15.4) OR (H6 = MAXH15.4) OR (H7 = MAXH15.4) ) AND (((MAXH4.3 - MINL4) / (MAXH4.3 - MINL21.3) > .23) AND ((MAXH4.3 - MINL4) / (MAXH4.3 - MINL21.3) < .62) ) AND ((AVGH3.5) > (AVGH3.8 ) AND (AVGH3.8 ) > (AVGH3.13) AND (AVGH3.13) > (AVGH3.18 )) */
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|