Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - 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 04-20-2006, 11:27 PM
Member
 
Join Date: Apr 2006
Posts: 46
sampson is on a distinguished road
Making an Indicator involving price data from 2 different Currencies: How?

Hey,
I'd like to make an indicator that involves the ask price on another chart, is there any way to do that?

I know I can use MarketInfo("EURUSD",MODE_ASK) in an EA, but is there any way to do the same thing in an Indicator?

I'm trying to compare the price of another pair, wth the price on the chart the Indicator is attached too.

Thanks for the help,
Justin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2006, 11:34 PM
Mohammed's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Quote:
Originally Posted by sampson
Hey,
I'd like to make an indicator that involves the ask price on another chart, is there any way to do that?

I know I can use MarketInfo("EURUSD",MODE_ASK) in an EA, but is there any way to do the same thing in an Indicator?

I'm trying to compare the price of another pair, wth the price on the chart the Indicator is attached too.

Thanks for the help,
Justin
Salam Justin,

You can use MarketInfo() function in an indicator very like using it in an EA.
But don't forget to use RefreshRates() function before it!

Example:

PHP Code:
RefreshRates();
Alert(MarketInfo("USDCHF",MODE_ASK)); 
__________________
There is a fine line between freedom of expression and hate literature.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2006, 11:45 PM
Member
 
Join Date: Apr 2006
Posts: 46
sampson is on a distinguished road
Thanks Mohammed. The problem is I want to draw a histogram and it seems like iLow, iHigh, iClose, etc will do what I want, I just couldn't find them until now.

Thanks again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2006, 11:55 PM
Mohammed's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Quote:
Originally Posted by sampson
Thanks Mohammed. The problem is I want to draw a histogram and it seems like iLow, iHigh, iClose, etc will do what I want, I just couldn't find them until now.

Thanks again!
sampson,

You're welcome!

Could you tell me what exacly you want to do maybe I could help.

PS: iLow,iHigh,iClose ec are working for me like that:

PHP Code:
Print("Current bar for USDCHF H1: ",iTime("USDCHF",PERIOD_H1,0),", ",  iOpen("USDCHF",PERIOD_H1,0),", ",
                                      
iHigh("USDCHF",PERIOD_H1,0),", ",  iLow("USDCHF",PERIOD_H1,0),", ",
                                      
iClose("USDCHF",PERIOD_H1,0),", "iVolume("USDCHF",PERIOD_H1,0)); 
__________________
There is a fine line between freedom of expression and hate literature.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2006, 11:56 PM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
I think newdigital have posted and indicator to show 5 different pairs price on one same chart. I must find it first
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2006, 11:56 PM
NoName's Avatar
Junior Member
 
Join Date: Mar 2006
Location: Iran - Mashhad
Posts: 16
NoName is on a distinguished road
This function is usefull [i'm not sure...]
ArrayCopyRates(Array_Name, Symbol_Name, Period);


[new_bie_programmer]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2006, 11:58 PM
Mohammed's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Quote:
Originally Posted by firedave
I think newdigital have posted and indicator to show 5 different pairs price on one same chart. I must find it first
Yes! I think this is the link:
http://www.forex-tsd.com/3421-post37.html
__________________
There is a fine line between freedom of expression and hate literature.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-21-2006, 12:02 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 416
firedave is on a distinguished road
Quote:
Originally Posted by Mohammed
Yes! I think this is the link:
http://www.forex-tsd.com/3421-post37.html
Thank you Mohammed, you saved me All the best to you
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-21-2006, 12:08 AM
Member
 
Join Date: Apr 2006
Posts: 46
sampson is on a distinguished road
Cool, thanks for the help guys. Those examples should be everything I need.

I'm making an indicator to do defacto-arbitrage between USD/CHF and EUR/USD.

Someone posted an EA yesterday and it got me thinking, I think it could be interesting.

I'll post my version of the EA, and an indicator soon as it's done.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-21-2006, 12:13 AM
Mohammed's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 119
Mohammed is on a distinguished road
Thumbs up

Quote:
Originally Posted by sampson
Cool, thanks for the help guys. Those examples should be everything I need.

I'm making an indicator to do defacto-arbitrage between USD/CHF and EUR/USD.

Someone posted an EA yesterday and it got me thinking, I think it could be interesting.

I'll post my version of the EA, and an indicator soon as it's done.
Salam sampson,
You're welcome!

Did you try my Ali EA. it has the same concept and the pairs (USDCHF & EURUSD).
I think if we can use the correlation and the hedging right we can trade trendlessly!
__________________
There is a fine line between freedom of expression and hate literature.
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help in making indicator Big Joe Indicators - Metatrader 4 3 04-12-2007 05:03 PM
help for making indicator plz dxx Indicators - Metatrader 4 0 03-15-2007 11:04 AM
Making an indicator to an EA YupYup Expert Advisors - Metatrader 4 2 10-19-2006 04:06 AM
Updating MT4 price historical data Mark53 Metatrader 4 2 06-07-2006 09:50 PM


All times are GMT. The time now is 06:50 AM.



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