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
kennyhubbard Posted June 26, 2010 Report Posted June 26, 2010 string My_Symbol = StringSubstr(Symbol(),0,6); newbee1713006039 1
newbee1713006039 Posted June 28, 2010 Author Report Posted June 28, 2010 string My_Symbol = StringSubstr(Symbol(),0,6); Thx, dude ;-)
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now