Forex



Go Back   Forex Trading > Discussion Areas > Setup 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 02-13-2007, 03:49 AM
Senior Member
 
Join Date: Oct 2005
Posts: 114
jimmyking is on a distinguished road
Need help from experts! how to get objest value at time[0] in a EA from a indicator?

Hi,
This might be a very simple (or very tough?) question for the experts in this board.

Here is the code from a indicator:

ObjectCreate("pr"+sName,22,0,Time[p],fx[p]);
ObjectSet("pr"+sName,14,159);
ObjectSet("pr"+sName,OBJPROP_TIME1,Time[p]);
ObjectSet("pr"+sName,OBJPROP_PRICE1,fx[p]);

Question is: how to get the value fx[0] at time[0] in the EA?

I don't see any coding samples in the EAs I have.

Thanks in advance

Jimmy
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 02-13-2007, 04:04 AM
Senior Member
 
Join Date: Oct 2005
Posts: 114
jimmyking is on a distinguished road
Here is the indicatior
Attached Files
File Type: mq4 _ANG-1Day.mq4 (3.5 KB, 13 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
  #3 (permalink)  
Old 02-13-2007, 04:22 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 297
ralph.ronnquist is on a distinguished road
"fx" is indicator buffer number 0. Use iCustom(..., 0,0). Of course, generally not a good ide, since the indicator fills and refills fx[0] by the ever changing Close[0] while the bar is developing. Or maybe that's just what you want....
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 02-13-2007, 05:56 AM
Senior Member
 
Join Date: Oct 2005
Posts: 114
jimmyking is on a distinguished road
Got it.
Thanks lot!
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 02-21-2007, 08:35 PM
Member
 
Join Date: Feb 2007
Posts: 45
forexaim is on a distinguished road
this is exactly what i was looking for..
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
how to ? same indicator different timefame, used in same time flourishing Metatrader 4 0 04-23-2007 04:44 AM
Time Indicator traderdavid Indicators - Metatrader 4 4 03-20-2007 11:54 AM
Time Period Indicator AlanD Indicators - Metatrader 4 3 07-18-2006 10:59 PM


All times are GMT. The time now is 03:53 AM.



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