Forex



Go Back   Forex Trading > Downloads > Indicators - 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
  #1 (permalink)  
Old 04-21-2006, 12:27 AM
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!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 04-21-2006, 12:34 AM
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!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 04-21-2006, 12:45 AM
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!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 04-21-2006, 12:55 AM
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!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 04-21-2006, 12:56 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
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!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 04-21-2006, 12:56 AM
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!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 04-21-2006, 12:58 AM
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!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 04-21-2006, 01:02 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 04-21-2006, 01: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 04-21-2006, 01: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!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 in making indicator Big Joe Indicators - Metatrader 4 3 04-12-2007 06:03 PM
help for making indicator plz dxx Indicators - Metatrader 4 0 03-15-2007 01:04 PM
Making an indicator to an EA YupYup Expert Advisors - Metatrader 4 2 10-19-2006 05:06 AM
Updating MT4 price historical data Mark53 Metatrader 4 2 06-07-2006 10:50 PM


All times are GMT. The time now is 04:19 AM.



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