Moving Averages filter for RSI zone

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Moving Averages filter for RSI zone

Postby 7510109079 » Thu Jan 25, 2018 8:40 am

re: the RSI_PK indicator at viewtopic.php?f=17&t=3080

Hi Apprentice,

Would it be possible to integrate the 'Averages' indicator into the RSI_PK so that the user could specify a moving average e.g. EMA50 to act as a filter

The RSI OB/OS zones would only be highlighted if they are signalling a reversal back into the same trend of the specified moving average

e.g.
- when MA trend is UP, only oversold RSI zones are highlighted
- when MA trend is DOWN, only overbought RSI zones are highlighted

thx in advance
Attachments
Averages.lua
(19.16 KiB) Downloaded 86 times
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Re: Moving Averages filter for RSI zone

Postby Apprentice » Thu Jan 25, 2018 2:19 pm

User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18706
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Moving Averages filter for RSI zone

Postby 7510109079 » Thu Jan 25, 2018 4:07 pm

Many thx Apprentice

Can the user be able to specify the MA period and the RSI period independently please

e.g use an RSI of 14 but an EMA of 50

Also can the signal arrows draw on the exit of the OS/OB zone (rather than the entry) pointing in the direction of the exit (i.e. up arrow for exiting the OS zone and down arrows exiting the OB zone)

great job!
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Re: Moving Averages filter for RSI zone

Postby 7510109079 » Fri Jan 26, 2018 9:23 am

clarification: i am referring to moving averages with respect to price action. I do not mean a moving average of the RSI oscillator
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Re: Moving Averages filter for RSI zone

Postby Apprentice » Fri Jan 26, 2018 12:08 pm

Can the user be able to specify the MA period and the RSI period independently please
NOT for RSI_PK Averages.
MA used is the core of RSI calculations.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18706
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Moving Averages filter for RSI zone

Postby 7510109079 » Fri Jan 26, 2018 2:20 pm

EDITED There is some misunderstanding. Maybe this was my fault for talking about RSI_PK and zones. Its much simpler. Let me try to clarify.

When normal RSI enters OB/OS the averages line on the price chart is checked

Two separate conditions must exist for either an UP or DOWN RSI_MA_Alert to be given:-


For UP RSI_MA_Alert
1. RSI has crossed into lower OS zone
AND
2 . Chart price is ABOVE Averages indicator line on price chart

For DOWN RSI_MA_Alert
1. RSI has crossed into upper OB zone
AND
2 . Chart price is Below Averages indicator line on price chart


User specifies:
MA type
MA period
RSI period
RSI OB level
RSI OS level
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Re: Moving Averages filter for RSI zone

Postby Apprentice » Mon Jan 29, 2018 6:36 am

Try RSI_PK with Averages Filter
viewtopic.php?f=17&t=3080&p=7179#p7179
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18706
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Moving Averages filter for RSI zone

Postby 7510109079 » Mon Jan 29, 2018 12:36 pm

My apologies Apprentice. I corrected an error in my text above but i dont think you saw in in time before you made the revision.

Indicator is great but my error means its giving reversed signals.

For UP RSI_MA_Alert
1. RSI has exited lower OS zone
AND
2 . Chart price is ABOVE Averages indicator line on price chart

For DOWN RSI_MA_Alert
1. RSI has exited upper OB zone
AND
2 . Chart price is BELOW Averages indicator line on price chart

Arrows are the exits calculated by existing code.
Vertical lines show where exit signals would be issued. Basically it would indicate reverals BACK INTO TREND

thx
Image
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Re: Moving Averages filter for RSI zone

Postby 7510109079 » Wed Jan 31, 2018 6:23 am

here's a better visualisation in the attachment. White circles are where arrows/alerts should appear. Currently arrows are triggering on opposite OB/OS levels
Attachments
2018-01-31 09 12 08.jpg
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Re: Moving Averages filter for RSI zone

Postby 7510109079 » Fri Feb 02, 2018 6:34 am

Hi Apprentice, any possibility of making the adjustment before the weekend, thx in advance
7510109079
FXCodeBase: Graduate
 
Posts: 353
Joined: Wed May 18, 2011 7:23 am

Next

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 3 guests