Two MA RSI ADX Strategy

Strategies are published here.

Moderator: admin

Two MA RSI ADX Strategy

Postby Apprentice » Thu Jan 17, 2019 4:38 am

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 721 times


MT4/MT5 versions
https://fxcodebase.com/code/viewtopic.php?f=38&t=71819
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: Two MA RSI ADX Strategy

Postby parisbruce » Sat Mar 30, 2019 2:41 pm

would it be possible to allow the adx to be below a value instead of it only being above a certain value
parisbruce
 
Posts: 17
Joined: Sun Mar 03, 2019 4:22 pm


Re: Two MA RSI ADX Strategy

Postby parisbruce » Sat Apr 06, 2019 3:22 am

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?
parisbruce
 
Posts: 17
Joined: Sun Mar 03, 2019 4:22 pm

Re: Two MA RSI ADX Strategy

Postby fortesan9 » Sun Jan 17, 2021 3:17 pm

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.
Attachments
TMRAS0004.lua
TMRAS.lua Strategie
(25.05 KiB) Downloaded 308 times
fortesan9
 
Posts: 52
Joined: Tue May 05, 2020 10:15 pm

Re: Two MA RSI ADX Strategy

Postby Apprentice » Tue Jan 19, 2021 4:14 am

Can you specify, what exactly needs to be done?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Two MA RSI ADX Strategy

Postby fortesan9 » Wed Jan 20, 2021 1:05 pm

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
fortesan9
 
Posts: 52
Joined: Tue May 05, 2020 10:15 pm

Re: Two MA RSI ADX Strategy

Postby Apprentice » Thu Jan 21, 2021 3:10 pm

Your request is added to the development list.
Development reference 108.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Two MA RSI ADX Strategy

Postby Apprentice » Sat Jan 30, 2021 10:16 am

Two MA RSI ADX Strategys.lua
(25.81 KiB) Downloaded 355 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 19 guests