• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:09pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:09pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Jedit as standard editor for Mql4 9 replies

RSI cross indicator when rsi=50 19 replies

Help - any tools that can easily convert MQL4 code to Easy Language code? 7 replies

MQL4 Language Most Recent Version is it updated beyond the tutorial on the mql4 websi 6 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: RSI standard indicator code in MQL4... Where is it?
Exit Attachments

RSI standard indicator code in MQL4... Where is it?

  • Post #1
  • Quote
  • First Post: Feb 4, 2015 1:32pm Feb 4, 2015 1:32pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
I mean that RSI which has options like-> Previous Indicator`s Data & First Indicator`s Data

Just want to see, how it is done.

Can`t find it, help me!
  • Post #2
  • Quote
  • Feb 4, 2015 6:07pm Feb 4, 2015 6:07pm
  •  xcheffo
  • | Joined Apr 2008 | Status: Member | 4 Posts
The source of the standard RSI indicator can be found in the MetaEditor. In MetaTrader, press F4 to open MetaEditor, then in the Navigator tab, folder Indicators find RSI.mql.

The standard RSI has only Period parameter. If you have some different version of RSI, before putting it on the MetatTrader chart, right-click it and select Modify in the popup menu that opens.
  • Post #3
  • Quote
  • Feb 4, 2015 7:01pm Feb 4, 2015 7:01pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
Thanks xcheffo for reply, but...

In MT4 there is 2 RSI indicators, I want to see that RSI code which is in Oscillators-files, because it has more options, like -> Previous Indicator`s Data & First Indicator`s Data

I want to see that code, not that Rsi which has only Period parameter.

Thanks.
  • Post #4
  • Quote
  • Feb 4, 2015 7:12pm Feb 4, 2015 7:12pm
  •  xcheffo
  • | Joined Apr 2008 | Status: Member | 4 Posts
I see. Then this should be some custom indicator. Right click on the thing you use to put the indicator on the chart and locate the Modify menu entry in the context menu that will open; then click it. If you have the code, then this is the way you will find it.

Hope this helps.
  • Post #5
  • Quote
  • Feb 4, 2015 7:16pm Feb 4, 2015 7:16pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
Thanks again for your reply xcheffo, but...

There is no option to modify it.
I would not ask here, if there was option for that.

But it must be somewhere, or what?
  • Post #6
  • Quote
  • Feb 4, 2015 7:34pm Feb 4, 2015 7:34pm
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,795 Posts
Quoting juhanimi
Disliked
I mean that RSI which has options like-> Previous Indicator`s Data & First Indicator`s Data Just want to see, how it is done. Can`t find it, help me!
Ignored
The "Previous Indicator`s Data & First Indicator`s Data" option is only available when you drag and drop the RSI standard indicator on another indicator in an existing sub-window.
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #7
  • Quote
  • Feb 4, 2015 7:43pm Feb 4, 2015 7:43pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
Quoting FerruFx
Disliked
{quote} The "Previous Indicator`s Data & First Indicator`s Data" option is only available when you drag and drop the RSI standard indicator on another indicator in an existing sub-window.
Ignored
Yes, but that must be in source code or how it is done?
  • Post #8
  • Quote
  • Feb 4, 2015 7:45pm Feb 4, 2015 7:45pm
  •  xcheffo
  • | Joined Apr 2008 | Status: Member | 4 Posts
Uff

That was embarrassing. Nice one, FerruFx!
  • Post #9
  • Quote
  • Feb 4, 2015 7:51pm Feb 4, 2015 7:51pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
and it is not only on sub-window, it can be on main window too
I don`t mean that this good idea or something, just want to know, how this is done, in code

Attached Image (click to enlarge)
Click to Enlarge

Name: XAUUSDH1.png
Size: 42 KB
  • Post #10
  • Quote
  • Feb 4, 2015 8:00pm Feb 4, 2015 8:00pm
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,795 Posts
Quoting juhanimi
Disliked
{quote} Yes, but that must be in source code or how it is done?
Ignored
If you want to apply a RSI on another indicator by coding, both indicators must be included in the code. The first must be "prepared" then the RSI applied to the first.
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #11
  • Quote
  • Feb 4, 2015 8:14pm Feb 4, 2015 8:14pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
Quoting FerruFx
Disliked
{quote} If you want to apply a RSI on another indicator by coding, both indicators must be included in the code. The first must be "prepared" then the RSI applied to the first.
Ignored
Thanks Ferru.

Do you know if that RSI code is somewhere? <so < i could see what is included in it.
  • Post #12
  • Quote
  • Feb 4, 2015 8:35pm Feb 4, 2015 8:35pm
  •  Motiram
  • Joined Nov 2014 | Status: Member | 560 Posts
Quoting juhanimi
Disliked
{quote} Thanks Ferru. Do you know if that RSI code is somewhere? <so < i could see what is included in it.
Ignored
Hello juhanimi please try under following link you will find some
http://www.forexfactory.com/search.p...rchid=14039799
Regards,
moti
  • Post #13
  • Quote
  • Feb 4, 2015 11:13pm Feb 4, 2015 11:13pm
  •  FerruFx
  • Joined May 2007 | Status: MT4/MT5 EAs/Indicators/Alerts coder | 6,795 Posts
Quoting juhanimi
Disliked
{quote} Thanks Ferru. Do you know if that RSI code is somewhere? <so < i could see what is included in it.
Ignored
The code must use the iRSIOnArray() function with the first indicator set in an array.
MT4/MT5 EAs/Indicators/Alerts coder
  • Post #14
  • Quote
  • Feb 8, 2015 6:25pm Feb 8, 2015 6:25pm
  •  juhanimi
  • Joined Feb 2009 | Status: Member | 2,108 Posts
Thanks Ferru, always helping.
Anyways, I tried to modify another existing indi, and here is daily volume 50 line (or zero line) on M1 chart

Attached Image (click to enlarge)
Click to Enlarge

Name: AUDJPYM1.png
Size: 40 KB
  • Post #15
  • Quote
  • Last Post: Apr 20, 2020 5:41am Apr 20, 2020 5:41am
  •  newhope
  • | Joined Mar 2018 | Status: Member | 72 Posts
Quoting juhanimi
Disliked
Thanks Ferru, always helping. Anyways, I tried to modify another existing indi, and here is daily volume 50 line (or zero line) on M1 chart {image}
Ignored
Hi Juhanimi,
Could you explain more about this ? Lets say we want to calculate the last 10 bars, and we calculate the Price Volume (Note: Close price is taken here...) as example be low' :

Inserted Code
for (i=10; i>=0; i--) {
sumVol += iVolume(Null,0,i);
}
 
for (i=10; i>=0; i--) {
sumClose += ( Close[i]*iVolume(Null,0,i) );
}
 
Result = sumClose/sumVol;

is it right ?? So to say ... we can add something similar like Donchian Channel to it (to compare it with the High/Low/Medium lines) ??
Note: Close price can be used too here ...

Thanks in advance
  • Platform Tech
  • /
  • RSI standard indicator code in MQL4... Where is it?
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021