newbee1713006039 Posted June 23, 2010 Report Posted June 23, 2010 hello, is anybody able to give me a code, that allows an EA to recognise automatically any suffix, that is added to a pair and is able to trade it. thx in advance newbee Quote
kennyhubbard Posted June 26, 2010 Report Posted June 26, 2010 string My_Symbol = StringSubstr(Symbol(),0,6); newbee1713006039 1 Quote
newbee1713006039 Posted June 28, 2010 Author Report Posted June 28, 2010 string My_Symbol = StringSubstr(Symbol(),0,6); Thx, dude ;-) Quote
stv1025 Posted June 29, 2010 Report Posted June 29, 2010 (edited) This is a little better, because it self adjusts to any size suffix. string My_Symbol = Symbol() + StringSubstr(Symbol(),6,StringLen(Symbol())-6); Edited June 30, 2010 by stv1025 to clarify this captures the postfix and the symbol newbee1713006039 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.