The Ultimate RSI AND ADX Intraday Profit Generator Amibroker AFL [ Works GREAT in 2020 ]
Meet Intraday Amibroker AFL
THE ULTIMATE RSI AND ADX
Today we are going to show you exactly how to make intraday Profit by using RSI AND ADX Intraday amibroker afl.
In fact, this is the same process that’s helped me grow my trading profit over the year.
And I should point something out:
This is a non-technical site audit.
So if you’re not super technical (like me), you’ll love the simple steps in this guide.
Let’s get started.
- Step #1: Know about “RSI”
- Step #2: Know about “ADX”
- Step #3: Buy-Sell Signal
- Step #4: RSI and ADX Intraday-AFL Code
- Step #5: How to use Amibroker AFL
Step #1: Know about “RSI”
RSI – Relative Strength Indicator is developed by J. Welles Wilder and introduced in his book, New Concepts in Technical Trading Systems, the Relative Strength Index (RSI) is an extremely popular momentum oscillator.
The RSI compares the magnitude of a stock’s recent gains to the magnitude of its recent losses and turns that information into a number that ranges from 0 to 100. It takes a single parameter, the number of time periods to use in the calculation. Wilder recommends using 14 periods.
you may also read: Relative Strength Index (RSI) only use 14 periods why
Step #2: Know about “ADX”
ADX is used to quantify trend strength. ADX calculations are based on a moving average of price range expansion over a given period of time. The default setting is 14 bars, although other time periods can be used.
ADX is plotted as a single line with values ranging from a low of zero to a high of 100. ADX is non-directional; it registers trend strength whether price is trending up or down.
Step #3: Buy-Sell Signal
RSI AND ADX Intraday afl is a combined two indicator name Rsi and ADX. Already you know about this in upper. To get buy and sell signal watch the image.
Image show that when Blue line (RSI Line) crosses Red line (ADX) from below than its show you a buy signal. On the opposite when Blue line crosses Red line from upper than it makes Sell signal.
Some times this Indicator goes to retrenchment or pullback. When blue line fail to cross red line than its gives you a pullback signal.
Step #4: RSI and ADX Intraday-AFL Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | //------------------------------------------------------------------------------ // Formula Name : INTRADAY PROFIT RSI AND ADX FOR AFL by pipschart // Author : KrT group // Uploader : www.pipschart.com // E-mail : info@pipschart.com // Amibroker Blog : www.pipschart.com/amibroker // Origin : Modified & Collected from different sources. //------------------------------------------------------------------------------ _SECTION_BEGIN("KrT group"); GfxSetBkMode(1); X=750; Y=1; Font=10; GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorRed);GfxTextOut ("KrT group",x,y); GfxSelectFont("Impact",Font*2.2, 550);GfxSetTextColor(colorGreen);GfxTextOut ("RESEARCH",x+120,Y); _SECTION_END(); //------------------------------------------------------------------------------ //------------------------------------------------------ // // Formula Name: Intraday Strategy using RSI and ADX //------------------------------------------------------ _SECTION_BEGIN("Intraday Strategy"); SetTradeDelays( 1, 1, 1, 1 ); SetOption( "InitialEquity", 200000); SetOption("FuturesMode" ,True); SetOption("MinShares",1); SetOption("CommissionMode",2); SetOption("CommissionAmount",50); SetOption("AccountMargin",10); SetOption("RefreshWhenCompleted",True); SetPositionSize(150,spsShares); //Use this for fixed position size //SetPositionSize(80,spsPercentOfEquity); //Use this for position size as a //percent of Equity SetOption( "AllowPositionShrinking", True ); BuyPrice=Open; SellPrice=Open; ShortPrice=Open; CoverPrice=Open; SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C )); Plot( Close, "Price", colorWhite, styleCandle ); RSIPeriods=17; ADXPeriods=14; Buy=RSI(RSIPeriods)>=75 AND ADX(ADXPeriods)>25; Short=RSI(RSIPeriods)<=25 AND ADX(ADXPeriods)>25 ; Buy=ExRem(Buy,Short); Short=ExRem(Short,Buy); Sell=Short OR TimeNum()==151500; Cover=Buy OR TimeNum()==151500; StopLoss=0.5; ApplyStop(Type=0,Mode=1,Amount=StopLoss); Plot( RSI(RSIPeriods), "RSI", color=colorBlue, ParamStyle( "Style", styleOwnScale) ); Plot( ADX(ADXPeriods), "ADX", color=colorRed, ParamStyle( "Style", styleOwnScale) ); /* Plot Buy and Sell Signal Arrows */ PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40); PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50); PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45); PlotShapes(IIf(Cover, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40); PlotShapes(IIf(Cover, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50); PlotShapes(IIf(Cover, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45); PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40); PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50); PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45); PlotShapes(IIf(Short, shapeSquare, shapeNone),colorRed, 0, H, Offset=40); PlotShapes(IIf(Short, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50); PlotShapes(IIf(Short, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45); _SECTION_END(); |
Download AFL
Step #5: How to use Amibroker AFL
- Download the Valid Supply-Demand Zone for Amibroker AFL.
- Now copy the afl file and paste it to \Program Files\AmiBroker\Formulas\Custom. [For 32 bit]
- If You have 64 bit operating system than paste it to \Program Files(x86)\AmiBroker\Formulas\Custom.
- Go to formula section of Amibroker and you will get the afl in Custom folder.
Tags amibroker afl
- Previous Valid Auto Support Resistance Amibroker Afl That Work (PERFECTLY!)
- Next Actionable Swing Support and Resistance AFL Techniques That Work GREAT
Starting with Amibroker v6.10, printf/StrFormat implements a check for correct string formatting, as sometimes users passed strings with % which is a special marker for formatting string, instead of %% to print actual percent sign.
So, to get this working, simply change Line 53 to:
Close %g (%%.1f%%) {{VALUES}}”, O, H, L, C ));
But we test it. Code is ok. For you recommended to use lower version like amibroker 5.60
Thanks.
Hello sir/madam
it seems there is error in this formula in line 53.
(Error 61. The number of format specifier(s) (%) does not match the number of arguments passed)
would you please correct it and put it here?
Dear Sepehr Ghz,
We again test this afl code. But This afl amibroker code had no error.
Thanks.
Some of your names or fullnames seem to have “%” sign included.
From AB 6.07 development version:
AFL: printf/StrFormat now implements a check for a correct formatting string as sometimes users passed strings with % that is a special marker for formatting string instead of %% to print actual percent sign.
Solution: Use the lower version of Amibroker 5.40 to 6.00 or write the below code instead of %.
—————————–
Some of your FullNames contain “%” characters (percent sign). “%” is also used in format specifiers (i.e. “%g”, “%s”, “%1.2f” etc.). Your formula contains printf function. printf uses format specifiers. So if you want to print the percent sign instead of using it for format specifiers you need to add another “%” character in front of the existing “%” character of your tname substring (in your case Fullname() ).
==============================================
So
==============================================
nm = Name();
fnm = StrReplace(FullName(), “%”, “%%”);
tname = nm + “(” + fnm + “)”;
printf( tname );
==============================
or for example
===============================
nm = Name();
fnm = StrReplace(FullName(), “%”, “%%”);
tname = StrFormat( “%s(%s)”, nm, fnm );
printf( tname );
===================================================
or just
===================================================
nm = Name();
fnm = StrReplace(FullName(), “%”, “%%”);
printf( “%s(%s)”, nm, fnm );
—————————————————–
The latter two examples require AmiBroker 6.20 because of the new “%s” format specifier.