# The Ultimate RSI AND ADX Intraday Profit Generator Amibroker AFL [ Works GREAT in 2020 ]

13,349 views

## 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”

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

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.

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 #5: How to use 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

### 6 thoughts on “The Ultimate RSI AND ADX Intraday Profit Generator Amibroker AFL [ Works GREAT in 2020 ]”

1. michelglobal says:

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 ));

2. Gigs says:

Same issue I am too facing. Its throwing error.

• krT group says:

But we test it. Code is ok. For you recommended to use lower version like amibroker 5.60
Thanks.

3. Sepehr Ghz says:

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?

• krT group says:

Dear Sepehr Ghz,
We again test this afl code. But This afl amibroker code had no error.
Thanks.

• krT group says:

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.