I do not want the EA to use the custom indicator or call on it.
If the symbols are created using ObjectCreate(), you can query them by name.
If the symbols are created using indicator index, you have to query the indicator with iCustom().
If the symbols are created using ObjectCreate(), you can query them by name.
If the symbols are created using indicator index, you have to query the indicator with iCustom().
The symbols are created using ObjectCreate(), how do you query them by name.
for(int index = ObjectsTotal()-1; index >= 0; index--){ string theObjectName = ObjectName(index); if(StringFind(theObjectName, "myObjectName", 0) >= 0){ // assuming your object is named myObjectNamexxxxxxxx Print("Object Found with name of ", theObjectName);
Thank you.
I’m assuming I can use this for all 4 names, “up”, “down”, “longexit”, and “shortexit”.
I guess so. Object name must be unique within the scope of a single chart.
Objets up1 up2 up3 and so on, for example.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I have a custom indicator that gives trade signals on the chart, arrows and stop signs. Is it possible for the EA to look on the chart to find the symbols and open and close trades from the symbols. I do not want the EA to use the custom indicator or call on it.
I have tried many variations and cannot make it work. Is it possible, if so how?