Hello All,
I am trying to use exploration to find the stocks that have the FastK trending up on a 15min timeframe. However it seems during the exploration the TimeFrameSet(in15Minute) is being ignored and it uses the Daily timeframe to compute the results. Below is the afl:
Has anyone else come across this previously? Is there a way to resolve this?
Thanks and Regards,
~cygnus
I am trying to use exploration to find the stocks that have the FastK trending up on a 15min timeframe. However it seems during the exploration the TimeFrameSet(in15Minute) is being ignored and it uses the Daily timeframe to compute the results. Below is the afl:
Code:
Filter=1;
k=-1;
TimeFrameSet(in15Minute);
pds=8; //Periods
//FastK calculation
L8=LLV(L,pds);
H8=HHV(H,pds);
FastK15Minute = 100*((C-L8)/(H8-L8));
//Previous period FastK calculation
L8X=Ref(LLV(L,pds),k);
H8X=Ref(HHV(H,pds),k);
CX=Ref(C,k);
FastK15MinuteX = 100*((CX-L8X)/(H8X-L8X));
//Comparison and Results
FastKResult15Minute = FastK15Minute > FastK15MinuteX;
FastK15MinuteTrend=WriteIf(FastKResult15Minute==1, "Up","Down");
//Output
AddColumn(FastK15Minute,"FastK15Minute");
AddTextColumn(FastK15MinuteTrend,"FastK15MinuteTrend");
TimeFrameRestore();
Thanks and Regards,
~cygnus