Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course > Questions
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
  #1 (permalink)  
Old 10-10-2006, 06:22 PM
Junior Member
 
Join Date: Oct 2006
Posts: 25
pooshkin is on a distinguished road
get high price in specific times

hello
I want to get the highest and lowest price in the first 10 candels in the 30 min chart(00:00 - 4:30).
can someone please post a code? i messed up with Highest() and Lowest()

Thanks in advance
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
  #2 (permalink)  
Old 10-11-2006, 01:18 AM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
if you have other related questions after this, the best place to make sure you get an answer is in the navigator search of metaeditor, but here's the answer to your current question.

the funticons that allows you to find the high or low are the "iHigh" or "iLow". here's how to set them up.

PHP Code:
//Global Variables
extern double LowShift 30;
extern double HighShift 30;

//variable begin

      
double 10H High[Highest (NULL0MODE_HIGHHighShift1)]; 
      
double 10L Low[Lowest (NULL0MODE_LOWLowShift1)]; 

"NULL" and the "0", just mean current pair/timeframe, if you insist on making it the 30 minute timeframe, change "0" to 20
the "1" makes it start it's info at the first completed bar back, i ALWAYS have this as at least 1 because the current high changes too frequently, it messes up your data.
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
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
  #3 (permalink)  
Old 10-11-2006, 01:22 AM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Quote:
Originally Posted by Eaglehawk
if you have other related questions after this, the best place to make sure you get an answer is in the navigator search of metaeditor, but here's the answer to your current question.

the funticons that allows you to find the high or low are the "iHigh" or "iLow". here's how to set them up.

PHP Code:
//Global Variables
extern double LowShift 30;
extern double HighShift 30;

//variable begin

      
double 10H High[Highest (NULL0MODE_HIGHHighShift1)]; 
      
double 10L Low[Lowest (NULL0MODE_LOWLowShift1)]; 
"NULL" and the "0", just mean current pair/timeframe, if you insist on making it the 30 minute timeframe, change "0" to 20
the "1" makes it start it's info at the first completed bar back, i ALWAYS have this as at least 1 because the current high changes too frequently, it messes up your data.
excuse me, i forgot to specify where in the navigator, when you open the window, normally there's an example at the bottom, that's what i usually look at, not the format on the top.
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
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
  #4 (permalink)  
Old 10-12-2006, 01:49 PM
Junior Member
 
Join Date: Oct 2006
Posts: 25
pooshkin is on a distinguished road
thank you very much :-)
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
  #5 (permalink)  
Old 10-12-2006, 04:56 PM
Junior Member
 
Join Date: Oct 2006
Posts: 25
pooshkin is on a distinguished road
Hello again
i have this code :
PHP Code:
   double highp High[Highest (NULL30MODE_HIGH301)]; 
  Print(
highp); 
and this is example of the output i get
Code:
2006.10.12 17:52:46	2006.10.06 19:59  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46	2006.10.06 19:55  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46	2006.10.06 19:52  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46	2006.10.06 19:47  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46	2006.10.06 19:44  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46	2006.10.06 19:40  2pip EURUSD,M30: 1.2713
i only want the high of the first 10 bars on each day and the i get the output every 5 min' ,why is that?
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
  #6 (permalink)  
Old 10-12-2006, 05:17 PM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
from the looks of things, you have your code set to look back "30" bars, try changing that to "10",

(second to last number)
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
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
  #7 (permalink)  
Old 10-12-2006, 05:27 PM
Junior Member
 
Join Date: Oct 2006
Posts: 25
pooshkin is on a distinguished road
i tried that also and i get the same output
maybe theres a different way to do this?
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
  #8 (permalink)  
Old 10-12-2006, 06:03 PM
Eaglehawk's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 141
Eaglehawk is on a distinguished road
Quote:
Originally Posted by pooshkin
Hello again
i have this code :
PHP Code:
   double highp High[Highest (NULL30MODE_HIGH301)]; 
  Print(
highp); 
and this is example of the output i get
Code:
2006.10.12 17:52:46    2006.10.06 19:59  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46    2006.10.06 19:55  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46    2006.10.06 19:52  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46    2006.10.06 19:47  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46    2006.10.06 19:44  2pip EURUSD,M30: 1.2713
2006.10.12 17:52:46    2006.10.06 19:40  2pip EURUSD,M30: 1.2713
i only want the high of the first 10 bars on each day and the i get the output every 5 min' ,why is that?
output of every five minutes, this leads me to believe you are looking at a five minute chart, and a new candle is formed every five minutes. that simple. as long as you make sure that the ihigh function is only looking at the last ten bars, there should be no reason to worry.
__________________
"One's ability to accomplish his or her goals is limited only by the ingenuity of how one uses what he or she already knows."- Eaglehawk
REMEMBER,
"Genius is nothing but a greater aptitude for patience." –Benjamin Franklin

____________________________________

Have a simple ea you just can't figure out how to code??? Odds are you can make it here. Just remember to push complete when you're done, NOT SAVE!!!

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder
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


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
Help: How to write simple EA to buy and sell at a specific time? jack2 Expert Advisors - Metatrader 4 119 11-01-2009 01:02 AM
Martingale and other high risk high reward systems TraderGeek General Discussion 15 05-03-2007 06:59 AM
Detecting price trend independent of a specific time frame gee Metatrader 4 4 02-24-2007 05:53 PM
Script that waits for a specific price? nog General Discussion 2 04-12-2006 01:37 AM


All times are GMT. The time now is 02:43 PM.



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