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

 
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...

 
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