Help To Develop Exploration AFL

pkgmtnl

Well-Known Member
#1
I want to develop an exploration AFL, which would run/ explore previous day to tabulate the scripts, which are:-
RSI(14) are above 60 for 10min, 15min, 30min, 60min and Daily Time Frame;
RSI(14) are below 0 for 10min, 15min, 30min, 60min and Daily Time Frame;

Plz help to correct, if it is to run on 10min time frame.


TimeFrameSet( 2*in5Minute);
r10=RSI(14);

TimeFrameRestore();

TimeFrameSet( 3*in5Minute);
r15=RSI(14);

TimeFrameRestore();

TimeFrameSet( 6*in5Minute);
r30=RSI(14);

//Plot( r4, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
TimeFrameRestore();

TimeFrameSet(4*in15Minute);
r60=RSI(14);
//Plot( rD, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
TimeFrameRestore();

TimeFrameSet(inDaily);
rD=RSI(14);
//Plot( rD, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

TimeFrameRestore();

Buy = r10>60 AND r15>60 AND r30>60 AND r60>60 AND rD>60 ;//AND rr10B AND rr30B;
sell = r10<40 AND r15<40 AND r30<40 AND r60<40 AND rD<40 ;//AND rr10S AND rr30S;
Short = Sell;
Cover = Buy;
Filter = (Buy) OR (Sell);
BG = IIf(Buy, colorPaleGreen, IIf(Short, colorPink, colorDefault));
FG = IIf(Cover, colorBlack, IIf(Sell, colorBlack, colorWhite));
//Filter = Buy OR Sell ;
SetOption("NoDefaultColumns", True);
SetTradeDelays(1,1,1,1);
AddTextColumn(Name(), "Symbol",85, FG, BG, 100);
AddColumn(DateTime(), "Date", formatDateTime, FG, BG, 1);
AddColumn(TimeNum() ,"Time",1.2,FG, BG,50);
AddColumn(C,"ENTRY",1.2,FG,BG,65);
AddColumn(r10, "r10min",1.2,FG,BG,50);
AddColumn(r15, "r15min",1.2,FG,BG,50);
AddColumn(r30, "r30min",1.2,FG,BG,50);
AddColumn(r60, "r60min",1.2,FG,BG,50);
AddColumn(rD, "rDmin",1.2,FG,BG,50);
SetSortColumns( -3) ;
 

LOVEENAJYOTHI

Well-Known Member
#2
TimeFrameSet( 6*in5Minute);
r30=RSI(14);
Plot( r4, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
TimeFrameRestore();
Plot() after TimeFrame Restored, if you opt to uncomment 'em.
And use TimeFrameExpand().
You wl figure out other errors too (if any), u r a veteran in most of the traders' Forums including wisestocktradersDOTcom.
 

Similar threads