View Single Post
  #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: 71
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
Reply With Quote