-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor -
string NamePart; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- string NamePart = "ePASimple_0";
You created a local unused variable. The global variable is never initialized.
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor - You created a local unused variable. The global variable is never initialized.
Thanks Done Just Initialize it but Still Nothing is Showing ....
I Even Tried to get the total Number of Objects and Check to seeif the Object Texts Match Meaning there are object with this text decription.
for (int i = ObjectsTotal(0,0,OBJPROP_ARROWCODE)-1; i> 0 ; i--){ string Name = ObjectName(0,i); string objet_type1 = ObjectGetString(0,Name,OBJPROP_TEXT); if (objet_type1 == "Shootng Star") { PrintFormat("StarS fOUND"); } if(objet_type1 == "Bullish Engulfing") { PrintFormat("BEng fOUND"); } if (objet_type1 == "Hammer") { PrintFormat(" Hammer fOUND"); } if(objet_type1 == "Bearish Engulfing") { PrintFormat("Engulfing fOUND"); } if (objet_type1 == "Bull Harami") { PrintFormat("Har fOUND"); } if(objet_type1 == "Bear Cross") { PrintFormat("Cross fOUND"); } if (objet_type1 == "Bull Piercing") { PrintFormat("Piercing fOUND"); } if(objet_type1 == "Bull Cross") { PrintFormat("DD fOUND"); } if (objet_type1 == "Dark Cloud") { PrintFormat("DD fOUND"); } if(objet_type1 == "Bull Harami") { PrintFormat("BHara fOUND"); } }
I Even Tried to get the total Number of Objects and Check to seeif the Object Texts Match Meaning there are object with this text decription.
Where they found? You did not say?
Print this out before the return, that is the string itself (line 2, NewObject function)
Print(StringSubstr(name ,StringLen(NamePart))
Cause, off my head, am feeling the name of the object from the chart would be something like "Daily Trendline 32564" which would be different from your namepart, hence returning, since the condition was failed.
Where they found? You did not say?
Print this out before the return, that is the string itself (line 2, NewObject function)
Cause, off my head, am feeling the name of the object from the chart would be something like "Daily Trendline 32564" which would be different from your namepart, hence returning, since the condition was failed.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Goodday i Created An expect that Finds Newly Created Objects on a custom Indicator And Reports that a new object has being created on Chart But is its Doesnt Report Anything Even when the Object re created Ive Provided the example and the indicator.