I can Create AFL but Need Strategy

Re: Prides's intraday strategy

Hi Rohan
Have you read the complete thread.
Just go through the thread and I hope you will get AFL
HI! i had went through the thread and found AFL for 30min Time frame. I wanted it with 5MIN time frame . If we could have an arrow pointing indicating entry and exit would be better.

I do not have much knowledge about AFL so asking for help.
 
Re: Prides's intraday strategy

ABHISHEK I HAVE TRIED GOOGLE AND HAD ALSO TRIED THE AFL GIVEN ON WISETOCKTRADE . COM. IT KEEPS GIVING SHORT TRADES EVEN IN BULLISH TRENDS -ITS FAULTY. HENCE I HAVE ASKED FOR HELP ON THIS THREAD AFTER TRYING ALL OPTIONS AVAILABLE.

Regards
Rohan

ok pm me ur mail id or chk ur messenger i think u want below afl



Uploaded with ImageShack.us
 
Last edited:
hmm lemme get some day watch to find correct tgt n sl

Dear Johnny sir,

Still i am waiting to your tgt and stoploss for the Adx afl


/*-Indicators: EMA9 and EMA26 and DMI (Directional Movement Indicator with ADX)

Conditions:

GO LONG WHEN:
- EMA9 has crossed over EMA26
- DI+ >= 25
- ADX >= should be 20 to 35
- ADX is in between DI+ and DI-

EXIT LONG WHEN:
- EMA26 has crossed EMA9 AND
- DI- is higher than DI+
Also Reentering position also need

GO SHORT WHEN:
- EMA26 has crossed EMA9
- DI- >= 25
- ADX >= should be 20 to 35
- ADX is in between DI- and DI+

EXIT SHORT WHEN:
- EMA9 has crossed EMA26 AND
- DI+ is higher than DI-
Reentering position also need

WHAT TO IGNORE:
- While in Long Position: DI+ and DI- Cross-overs while the EMA9 is still on top of EMA26
- While in Short Position: DI+ and DI- Cross-overs while the EMA26 is still on top of EMA9

Buy, Sell arrow need and different symbols need for exit positions, if possible add message board.

*/

_SECTION_BEGIN("Price");

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
AvgFast=EMA( Close, 9 );
AvgSlow=EMA( Close, 26 );

myPDI=PDI (14); //Plus Directional Movement Indicator

myMDI=MDI (14); //Minus Directional Movement Indicator

myADX=ADX (14);

Plot(AvgFast,"AvgFast",colorBlack, styleLine|styleDashed | styleThick);
Plot(AvgSlow,"AvgFast",colorGreen, styleLine|styleDashed | styleThick);
Plot(myPDI,"myPDI",colorBlue, styleLine|styleLine|styleOwnScale);
Plot(myMDI,"myMDI",colorRed, styleLine|styleLine|styleOwnScale);
Plot(myADX,"myADX",colorBlue, styleLine|styleDashed | styleThick|styleOwnScale);


//entry Criteria Long
//CrLo1=Cross( AvgFast, AvgSlow); //EMA9 has crossed over EMA26

CrLo1= AvgFast> AvgSlow; //EMA9 has crossed over EMA26
CrLo2=myPDI >= 25; //DI+ >= 25
CrLo3=myADX >= 20 AND myADX <=35; //ADX >= should be 20 to 35
CrLo4=myADX > myMDI AND myADX < myPDI; //ADX is in between DI+ and DI-

//ShortCriteria Long
//CrLo5=Cross( AvgSlow, AvgFast); //EMA26 has crossed over EMA9

CrLo5= AvgSlow> AvgFast; //EMA26 has crossed over EMA9
CrLo6=myMDI >= 25; //DI- >= 25
CrLo7=myADX >= 20 AND myADX <=35; //ADX >= should be 20 to 35
CrLo8=myADX > myPDI AND myADX < myMDI; //ADX is in between DI+ and DI-



Buy=CrLo1 AND CrLo2 AND CrLo3 AND CrLo4;
Sell=0;
Short=CrLo5 AND CrLo6 AND CrLo7 AND CrLo8;
Cover=0;

Buy=ExRem(Buy,Short);
Short=ExRem(Short,Buy);

PlotShapes( Buy * shapeUpTriangle, colorBrightGreen, 0);
PlotShapes( Short * shapeDownTriangle, colorRed, 0);
 
Yes Johnny Sir, Absolutely right for signals in the chart as well as short selling rules!

I forgot to add one filter in my rules. Is it possible to add the follg rule:

The PR bar low/NR bar high shd be the lowest low/ highest high when compared to the preceeding 6 bars.

Hope your code includes tgt, sl and filter part too.

Thanks a lot Johnny sir. Will never forget u in my life. You are helping to a person whom you have not personally known, that too without any expectations. Hats off to you.:clapping:

I do not know how to show my gratitude. Thanks to you once again
Johnny sir, waiting for your reply.
 
hello , i am professional intraday trader i have topnoch statergy for trading . i trading for few years but needed my criteria of AFL can anybody serves his service for making amibroker afl. or suggest any site or man who set individual criteria for afl. i will glad .i am ready for pay for upheld his services. thanks
 
Friends
As i have good knowledge of programming, So i can Create AFL for the given strategy but I dont know much about Technical Analysis.
So if you have a good technical strategy then share with me and i will code it for our benifit and we can discuss everything here
sushil ji i wanna send you private message but you discontinue your pm. so i cant you have no disappoint after know my strategy . what i want what i need it is great strategy.
 

Similar threads