Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2006, 06:03 PM
Junior Member
 
Join Date: Aug 2006
Posts: 21
knili is on a distinguished road
How to get High[1] on 2 diff charts at the same time

Hello all,
I need to know how is it possible to get for example the highest price on the current closed candle of let say the 1 min and 5 min chart at the sametime.
I知 using Interbank Fx and I the way I知 running my program is by attaching it to the either 1 min or 5 min chart. Is this the correct way?

So I have High[1], it will give me the high of the chart I知 running the program against. Is there anyway I can get both High[1] of 1 min and 5 min chart?

Thanks
Kam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-11-2006, 06:10 PM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by knili
Hello all,
I need to know how is it possible to get for example the highest price on the current closed candle of let say the 1 min and 5 min chart at the sametime.
I知 using Interbank Fx and I the way I知 running my program is by attaching it to the either 1 min or 5 min chart. Is this the correct way?

So I have High[1], it will give me the high of the chart I知 running the program against. Is there anyway I can get both High[1] of 1 min and 5 min chart?

Thanks
Kam
use iHigh(NULL, PERIOD_M5, 1) for High[1] of 5M chart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-11-2006, 07:47 PM
Junior Member
 
Join Date: Aug 2006
Posts: 21
knili is on a distinguished road
Thanks a lot for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-12-2006, 12:02 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Cool iHigh explanation

Quote:
Originally Posted by knili
Hello all,
I need to know how is it possible to get for example the highest price on the current closed candle of let say the 1 min and 5 min chart at the sametime.
I知 using Interbank Fx and I the way I知 running my program is by attaching it to the either 1 min or 5 min chart. Is this the correct way?

So I have High[1], it will give me the high of the chart I知 running the program against. Is there anyway I can get both High[1] of 1 min and 5 min chart?

Thanks
Kam
Hi Kam,

This is iHigh explanation:


iHigh:


Syntax:

PHP Code:
double iHighstring      symbolint timeframeint shift

Description:

The iHigh function returns the High price for the given bar (the shift parameter is the bar number) of the given symbol and timeframe. The function returns 0 if the history data not loaded.
Note: If you want to get the High price (of a bar) of the current chart (symbol and timeframe) use High[int shift] function.

Parameters:

string symbol:
The symbol (currency pair) of the chart you want to get its bars number.
Use NULL if you want to use current symbol.

int
timeframe:
The timeframe (in integers, ex: 1,5,30,60 etc) of the chart you want to get its bars number.
Use 0 if you want to use current timeframe.

int
shift:
The index of the bar you want to get its High price.

Example:

PHP Code:
Print("Current High price for      USDCHF H1: ",iHigh("USDCHF",PERIOD_H1,i)); 
for more details: http://www.metatrader.info/node/124
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-12-2006, 12:05 PM
babarmughal's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 315
babarmughal is on a distinguished road
Quote:
Originally Posted by codersguru
Hi Kam,

This is iHigh explanation:


iHigh:


Syntax:

PHP Code:
double iHighstring      symbolint timeframeint shift

Description:

The iHigh function returns the High price for the given bar (the shift parameter is the bar number) of the given symbol and timeframe. The function returns 0 if the history data not loaded.
Note: If you want to get the High price (of a bar) of the current chart (symbol and timeframe) use High[int shift] function.

Parameters:

string symbol:
The symbol (currency pair) of the chart you want to get its bars number.
Use NULL if you want to use current symbol.

int
timeframe:
The timeframe (in integers, ex: 1,5,30,60 etc) of the chart you want to get its bars number.
Use 0 if you want to use current timeframe.

int
shift:
The index of the bar you want to get its High price.

Example:

PHP Code:
Print("Current High price for      USDCHF H1: ",iHigh("USDCHF",PERIOD_H1,i)); 
for more details: http://www.metatrader.info/node/124
Coders guru, i have sent you a PM..please check..or can you please give me your email address..i need some help..

Thanks
Babar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-15-2006, 12:52 AM
Junior Member
 
Join Date: Aug 2006
Posts: 21
knili is on a distinguished road
Thanks codersguru
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Change - Time Frame Of Charts hagadol Metatrader 4 1 08-10-2007 10:45 AM
Martingale and other high risk high reward systems TraderGeek General Discussion 15 05-03-2007 05:59 AM
High-High/Low-Low indicator trevman Indicators - Metatrader 4 5 01-07-2007 04:39 AM
How to find the time of the High and Low ??????? multa Setup Questions 3 04-07-2006 11:18 PM


All times are GMT. The time now is 09:55 AM.



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