Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 02-28-2006, 04:18 PM
Nicholishen's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
Quote:
Originally Posted by nohills
Hi Nic,

Appreciate your work.



I think there is 1 error in this script:

for (int i=0;i<=PeriodsBack;i++)

must be:

for (int i=0;i<PeriodsBack;i++)

In your example it will go 11 times through the for loop
Thanks for the catch nohills. What i meant to do was:

for (int i=1;i<=PeriodsBack;i++)

I didn't want to take the current bar into calculation. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #12 (permalink)  
Old 06-08-2009, 05:36 PM
Junior Member
 
Join Date: Jun 2009
Posts: 1
yitz182003 is on a distinguished road
#MTF_Average Range.mq4

how do i open this file???

thank you in advance.

isaac
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #13 (permalink)  
Old 06-08-2009, 06:33 PM
Junior Member
 
Join Date: Mar 2009
Posts: 11
hechtd is on a distinguished road
Quote:
Originally Posted by yitz182003 View Post
how do i open this file???

thank you in advance.

isaac

Don't you just attach it to a chart in Meta Trader 4?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #14 (permalink)  
Old 06-21-2009, 09:05 PM
zeinoun's Avatar
Junior Member
 
Join Date: Jul 2008
Posts: 5
zeinoun is on a distinguished road
Igor daily average

Hi all

Somewhere in this forum, IGOR wrote this definition of the daily range:
Ok first how does this indicator work?: the indicator calculates the previous daily range. It takes the High minus the Low (Yesterday High - Yesterday Low). Then it does the very same for the last 5 previous days. It does that for each seperate day and then makes an average of those 5 days. Then it does the same for the last 10 previous days. And as last it does the same for the last 20 previous days. Of those 4 results it makes a new average. It calculates the averages as a exponential moving average ....
Attached please find an indicator giving this definition. But, the problem is it gives only the data for the last day. If somebody can help to modify it to produce historical data in order to use it for historical testing.

Zeinoun
Attached Files
File Type: mq4 (T_S_R)-DATA WINDOW.mq4 (18.8 KB, 76 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #15 (permalink)  
Old 06-26-2009, 11:42 PM
Senior Member
 
Join Date: Sep 2007
Posts: 116
Ms_Mel is on a distinguished road
Hi,

I just posted something similar in another thread.

Quote:
Originally Posted by trading801
so for just a simple indicator of average daily range,

the average true range will do ya?
Hi there,

As you can see in the pic below, the ATR reads 135 for today (this is eurusd) but for the daily average, the indic reads 156. You can see, however, that the "high to low" also indicates 135. So if you're looking for the "high to low", ATR will do the trick. Just remember it's isn't the same as the Daily Average.



Hope this helps,

Ms_Mel
__________________
Profitable trading starts here:
http://forexleader-forexleader.blogspot.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #16 (permalink)  
Old 06-29-2009, 07:45 AM
Junior Member
 
Join Date: Nov 2008
Posts: 9
cameofx is on a distinguished road
just what i've been looking for!

Hi,
Is the Igor zeinoun meant is Igrok's Igor? the one who uses average daily range in his system & famous book Beating the Odds... I've been re-reading his book for the n-th times & I can't find the formula for his average daily range!

So thank you guys!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #17 (permalink)  
Old 06-30-2009, 05:50 AM
zeinoun's Avatar
Junior Member
 
Join Date: Jul 2008
Posts: 5
zeinoun is on a distinguished road
Quote:
Originally Posted by cameofx View Post
Hi,
Is the Igor zeinoun meant is Igrok's Igor? the one who uses average daily range in his system & famous book Beating the Odds... I've been re-reading his book for the n-th times & I can't find the formula for his average daily range!

So thank you guys!
you r welcome. I really do nt know if he is the same Igor. I read also his book. The important is that mq4 posted above give u an Idea what is the expected performance of any given currency any day. Many setups could be built upon. what is missing is the historical data. I will maybe use spreadsheet to do so or if anybodu could help modifying the above mq4.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #18 (permalink)  
Old 06-30-2009, 01:55 PM
Junior Member
 
Join Date: Mar 2009
Posts: 11
hechtd is on a distinguished road
Quote:
Originally Posted by cameofx View Post
Hi,
Is the Igor zeinoun meant is Igrok's Igor? the one who uses average daily range in his system & famous book Beating the Odds... I've been re-reading his book for the n-th times & I can't find the formula for his average daily range!

So thank you guys!
Quote:
Originally Posted by zeinoun View Post
you r welcome. I really do nt know if he is the same Igor. I read also his book. The important is that mq4 posted above give u an Idea what is the expected performance of any given currency any day. Many setups could be built upon. what is missing is the historical data. I will maybe use spreadsheet to do so or if anybodu could help modifying the above mq4.

I don't know if this will assist you any, (I'm still attempting to wrap my brain around a lot of this stuff ) but, try "http://forex-indicators.net/mt4-indicators".

This page gives alot of good MT4 indicators and shows you the MT4 code for them. Perhaps you can find the code that you are looking for to add to the EA.

I certainly hope this help's...

Last edited by hechtd; 06-30-2009 at 02:02 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #19 (permalink)  
Old 07-22-2009, 01:55 PM
Junior Member
 
Join Date: Jun 2009
Posts: 2
apparelink is on a distinguished road
Average Daily Range (ADR) Indicator

Quote:
Originally Posted by zeinoun View Post
Hi all
Attached please find an indicator giving this definition. But, the problem is it gives only the data for the last day. If somebody can help to modify it to produce historical data in order to use it for historical testing.

Zeinoun
Here is the Average Range indicator that allows you to enter a fast and slow period. You need to put all three files in the correct locations and compile both mq4 files in that order:

HelpFunctions.mqh must be put in the include folder
HelpFunctions.mq4 must be put in the libraries folder and compiled
Average Range.mq4 must be put in the indicators folder and compiled

It calculates the average range (AR) in pips using the past N trading days. AR is the same as ADR (Average Daily Range) when the timeframe is set to PERIOD_D1. This function is written for code reusability so it can also be used for other timeframes as well.



You may also want to set the OptimizePerformance option to true. This limits the number of bars used for calculation to 400 by default (you can change this number to suit). Otherwise it would take a very long time to calculate the AR for all bars downloaded from the History Center.




My test results are consistent with the findings on this site: Most Volatile Active Traded Currency Pairs

In return please share your experience in using Average Range in your trading strategy.

Scott
Attached Files
File Type: mq4 Average Range.mq4 (6.3 KB, 39 views)
File Type: mqh HelperFunctions.mqh (1.4 KB, 34 views)
File Type: mq4 HelperFunctions.mq4 (13.5 KB, 37 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #20 (permalink)  
Old 07-30-2009, 02:19 PM
Junior Member
 
Join Date: Aug 2008
Posts: 11
vs1972 is on a distinguished road
I am missing StringArraySort.mqh

Apparelink can you post it here please?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
daily range, AVERAGE DAILY RANGE, calculate true range, calculate average range, calculate average daily range, average true range, how to calculate Average daily range


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FXiGoR DYNAMIC Breakout system on Daily Average Range iGoR Suggestions for Trading Systems 276 11-14-2009 06:31 AM
Average Daily Range KJB General Discussion 12 07-03-2009 10:30 PM
Average Daily Range fxid10t Indicators - Metatrader 4 4 07-28-2008 08:51 PM
Average daily range indicator, help !! Pepinillo Metatrader 4 3 03-04-2007 07:53 PM


All times are GMT. The time now is 12:02 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.