sheriffonline:
How to read values from custom indicator while indicator doesn't use buffers?
I am writing new ea which by using custom indicator.but indicator not using buffers. so how can i read values for ea?
Plesse give me a suggetions to solve this issues.
What are using the indicator ? Objects ? Then read values directly from objects.
Or ?
Is there any example code to read values from objects? please support!
sheriffonline:
Is there any example code to read values from objects? please support!
Is there any example code to read values from objects? please support!
https://docs.mql4.com/objects.
Search for the object just like you search for orders. Then use ObjectGet() to retrieve values. Read the documentation above for other helpful functions. Example.
for(int i=ObjectsTotal()-1; i>=0; i--){ name=ObjectName(i); if(ObjectType(name) != OBJ_HLINE) continue; x=ObjectGet(name, OBJPROP_PRICE1); return(x); }
you can use: - GlobalVariables, -Files, -namedPipes, -DLL, (DDE 'knows' only one way I think: from MT4 to e.g. EXCEL)
Gooly
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How to read values from custom indicator while indicator doesn't use buffers?
I am writing new ea which by using custom indicator.but indicator not using buffers. so how can i read values for ea?
Plesse give me a suggetions to solve this issues.