Forex
Google

Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 02-04-2006, 09:44 PM
charliev charliev is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
charliev is on a distinguished road
Pass data from Indicator to EA?

Hello everyone,

Is it possible to pass variable data from an Indicator to an EA?

If so, can someone provide and example of how is it done?

Thanks!
-c
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-05-2006, 12:24 AM
fxid10t's Avatar
fxid10t fxid10t is offline
Member
 
Join Date: Sep 2005
Location: MidAtlantic USA
Posts: 72
fxid10t is on a distinguished road
Quote:
Originally Posted by charliev
Is it possible to pass variable data from an Indicator to an EA?
If so, can someone provide and example of how is it done?
the "iCustom" or actually assigning the indicator's value to a variable inside the EA is how this is done...

examples:

double variable.a=iCustom(/*variable parameters*/);
double rsi=iRSI(Symbol(),1440,14,PRICE_CLOSE,0);

in MetaEditor, open the navigator window, click on the search tab, then type "iCustom()", then hit enter. In the toolbox window, the definition for the function "iCustom()" will be displayed.

hope this helps...
__________________
"You should not have a favourite weapon. To become over-familiar with one weapon is as much a fault as not knowing it sufficiently well. You should not copy others, but use weapons which you can handle properly. It is bad for commanders and troopers to have likes and dislikes. These are things you must learn thoroughly." Miyamoto Musashi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-05-2006, 03:28 PM
charliev charliev is offline
Junior Member
 
Join Date: Jan 2006
Posts: 25
charliev is on a distinguished road
Quote:
Originally Posted by fxid10t
the "iCustom" or actually assigning the indicator's value to a variable inside the EA is how this is done...

examples:

double variable.a=iCustom(/*variable parameters*/);
double rsi=iRSI(Symbol(),1440,14,PRICE_CLOSE,0);

in MetaEditor, open the navigator window, click on the search tab, then type "iCustom()", then hit enter. In the toolbox window, the definition for the function "iCustom()" will be displayed.

hope this helps...
Thanks for the reply, and the info!
-c
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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
EA using indicator data - Professional Clarification Required. iscuba11 Metatrader 4 3 08-26-2006 03:17 AM
Making an Indicator involving price data from 2 different Currencies: How? sampson Indicators - Metatrader 4 12 04-21-2006 12:46 PM


All times are GMT. The time now is 09:24 PM.