if I use above, the return is 0. so that is the reason I didn't use a for loop before in the message .
That code is looking good. That is what you need to do. So there is a bug in it because it is not doing what you want. BUT it is close to what you need.
Notice that if you have 5 elements they are labelled [0] to [4]. The j loop needs to test < count not <= count.
you mean I can grab the str from the array and campare with the current order's ?
if(MarketInfo(OrderSymbol(),MODE_MARGININIT)==100x
&& StringSubstr(OrderSymbol(),0,6)==StringSubstr(Symbol(),0,6)
){
Alert( " I Have The Pro Account && Symbol Is Chart Symbol " );
}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Just grab the first 6 letters with
you mean I can grab the str from the array and campare with the current order's ?
Think about it for a while. You know how to access element n in an array, it is theNameofYourArray[n].
Keep a count of the elements as you add them, then you will know where the last element is and therefore where to add the new one.
if I use above, the return is 0. so thatis the reason I didn't use a for loot before in the message .
if I use above, the return is 0. so that is the reason I didn't use a for loop before in the message .
That code is looking good. That is what you need to do. So there is a bug in it because it is not doing what you want. BUT it is close to what you need.
Notice that if you have 5 elements they are labelled [0] to [4]. The j loop needs to test < count not <= count.
You are getting there :-)
you mean I can grab the str from the array and campare with the current order's ?