Pulling user input from one file into another

 

Hi I have an indicator where the user defines their profit ratio.  

The int value is stored in the var "YourRatio".  I am not using the SetIndexBuffer() function


In a separate EA that is not related to that indicator, I would like to retrieve the value of YourRatio.

I can use the iCustom command but am not sure where to place the YourRatio value

iCustom(_Symbol, _Period, "MyFileName", 0 , 0, 0);

Where would I put YourRatio?


Or is there another way to retrieve the value?


Thanks 

SetIndexBuffer - Custom Indicators - MQL4 Reference
SetIndexBuffer - Custom Indicators - MQL4 Reference
  • docs.mql4.com
SetIndexBuffer - Custom Indicators - MQL4 Reference
 
Lode Loyens: Where would I put YourRatio?

Or is there another way to retrieve the value?

Icustom only reads buffers. You can't read variables.

 
int  iCustom( 
   string           symbol,     // symbol name 
   ENUM_TIMEFRAMES  period,     // period 
   string           name        // folder/custom_indicator_name 
   ...                          // list of indicator input parameters 
   );

"// list of indicator input parameters" means you just list all needed parameters in the same order as shown in indicator's input.

 

Hi; thanks for the response.

Learned something new today.  Thank you so much.


Happy holidays still.