how can copy the value's of an array from an indicator to another indicator ?

 

hi

if i want to copy bufer : using " icustum" and then " copybuffer",

i want to copy the value's of an array from an indicator to another indicator ?

it can by store the array into a buffer and then use it , but is there direct solution?

can you please help?

thank you.

 
TIMisthebest:

hi

if i want to copy bufer : using " icustum" and then " copybuffer",

i want to copy the value's of an array from an indicator to another indicator ?

it can by store the array into a buffer and then use it , but is there direct solution?

can you please help?

thank you.

I'm not entirely sure what you are asking here. But if you want to share information between different indicators then you can always use Global Variables: https://docs.mql4.com/globals

Global Variables of the Client Terminal - MQL4 Documentation
  • docs.mql4.com
Global Variables of the Client Terminal - MQL4 Documentation
 
Filter:

I'm not entirely sure what you are asking here. But if you want to share information between different indicators then you can always use Global Variables: https://docs.mql4.com/globals

thank you.
 
TIMisthebest:
thank you.
Welcome :)
 
TIMisthebest:

hi

if i want to copy bufer : using " icustum" and then " copybuffer",

i want to copy the value's of an array from an indicator to another indicator ?

it can by store the array into a buffer and then use it , but is there direct solution?

can you please help?

thank you.

  • Global variables as suggested by Filter.
  • Objects drawn on the chart.
  • File(s)
  • Custom events.

Probably others.

Buffers can only be accessed with iCustom/CopyBuffer.

 
angevoyageur:
  • Global variables as suggested by Filter.
  • Objects drawn n the chart.
  • File(s)
  • Custom events.

Probably others.

Buffers can only be accessed with iCustom/CopyBuffer.

Thank you.
 

I have done this before using GlobalVariableSet/GlobalVariableGet etc.

You can loop the name - something like (to retrieve);

for(int i=0;i<100;i++){
  CopiedArray[i]=GlobalVariableGet("ArraySomething"+string(i));
}

And similar code to set.