newbee1713006039 Posted June 23, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
kennyhubbard Posted June 26, 2010 Report Share Posted June 26, 2010 string My_Symbol = StringSubstr(Symbol(),0,6); newbee1713006039 1 Quote Link to comment Share on other sites More sharing options...
newbee1713006039 Posted June 28, 2010 Author Report Share Posted June 28, 2010 string My_Symbol = StringSubstr(Symbol(),0,6); Thx, dude ;-) Quote Link to comment Share on other sites More sharing options...
stv1025 Posted June 29, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
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.