Page 1 of 2

Two MA RSI ADX Strategy

PostPosted: Thu Jan 17, 2019 4:38 am
by Apprentice
1.png

2.png

Base on request.
viewtopic.php?f=27&t=67273
Open Long:
EMA 5 and EMA 10 Cross Over
RSI (10) > 50
ADX (14) > 25

Open Short:
EMA 5 and EMA 10 Cross Under
RSI (10) < 50
ADX (14) > 25

Two MA RSI ADX Strategys.lua
(33.35 KiB) Downloaded 729 times


MT4/MT5 versions
https://fxcodebase.com/code/viewtopic.php?f=38&t=71819

Re: Two MA RSI ADX Strategy

PostPosted: Thu Jan 24, 2019 6:28 am
by Apprentice
ADX_Level added.

Re: Two MA RSI ADX Strategy

PostPosted: Sat Mar 30, 2019 2:41 pm
by parisbruce
would it be possible to allow the adx to be below a value instead of it only being above a certain value

Re: Two MA RSI ADX Strategy

PostPosted: Mon Apr 01, 2019 10:06 am
by Apprentice
Use_ADX option added.

Re: Two MA RSI ADX Strategy

PostPosted: Sat Apr 06, 2019 3:22 am
by parisbruce
hi maybe i was not clear in my request i want to be able to have adx below 30 not an option to use adx.i want to trade when the adx is below 30 so there is no trend and if it is above 30 i want the stratergy to ignore that trade because its above 30 does that make sense?

Re: Two MA RSI ADX Strategy

PostPosted: Sun Jan 17, 2021 3:17 pm
by fortesan9
Can the structure and functions of this strategie be propped up with the ones in the example, i've been trying to code it but haven't succeded in doing so properly.

Kind Regards,
fortesan9

P.D: the actual "TMRAS'' Strategie proved excelent results in optimizations, backtests and in demo account, but whatching it perform i've observed that it generates much signals so probably the trading in % of equity account function can smooth the drawdown amongst other options.

Re: Two MA RSI ADX Strategy

PostPosted: Tue Jan 19, 2021 4:14 am
by Apprentice
Can you specify, what exactly needs to be done?

Re: Two MA RSI ADX Strategy

PostPosted: Wed Jan 20, 2021 1:05 pm
by fortesan9
I suggest the following functions to be added on the current logic:

"" EMA (5) and EMA (10) Cross Over
RSI (10) > ''((RSI_LEVEL)USE_RSI)''
ADX (14) > ''((ADX_LEVEL)USE_ADX)''

Open Short:
EMA (5) and EMA (10) Cross Under
RSI (10) < ((RSI LEVEL)USE_RSI)
ADX (14) > (ADX_LEVEL)USE_ADX) ""


and Apprentice's newest version of Algorithm Parameters structure:

trade_direction
use_mandatory_closing
use_position_limit
position_limit
use_trailing
trailing
AllowedSide
entry_execution_type
limit_pips
use_limit
use_stop
stop_pips
AllowTrade
Account
Amount
amount_type (lot,%ofEquity)
close_on_opposite

Re: Two MA RSI ADX Strategy

PostPosted: Thu Jan 21, 2021 3:10 pm
by Apprentice
Your request is added to the development list.
Development reference 108.

Re: Two MA RSI ADX Strategy

PostPosted: Sat Jan 30, 2021 10:16 am
by Apprentice
Two MA RSI ADX Strategys.lua
(25.81 KiB) Downloaded 359 times

Try this version.