How can I share an object between indicator and EA? - page 3

 

Lets say your object name is "StartLine"

If you dont know where to find Object name, Press Ctrl+B to find object name and note it down

Now on your EA OnTick Function, add this

double StartLine; //Adding a double same as object name
StartLine = ObjectGetDouble(0,"StartLine",OBJPROP_PRICE); // We fetch Object Value from Object Name
Print("StartLine Value is ", StartLine);
 
Dark Ryd3r: Lets say your object name is "StartLine" If you dont know where to find Object name, Press Ctrl+B to find object name and note it down Now on your EA OnTick Function, add this

Please don't awaken old threads (8 years old), with a post that has nothing to do with the subject. The original post is about Class objects (OOP programming) and nothing to do with graphical objects! Please pay attention and read the entire thread before you post!