Download MetaTrader 5
To add comments, please log in or register
Write your articles using our editor. It is convenient!
Saravanakumar D
357
Saravanakumar D 2015.10.22 18:37 

Dear brothers and traders in this code it gives the result following..

and i would like to add some "xxx" in that last value after i got StringLen modified.

string close_val = DoubleToStr(iClose(cysymbol,cur_tf,i),idigits);  // 1.45678
close_val = StringSubstring(close_val, 0, StringLen(lose_val) - 1); // 1.4567

it gives result 1.4567 and i want add 3 some more values after that like 1.4567xxx

the xxx value is constant string...

could you please guide me in this?

With Thanks and Regards

Saravana
whroeder1
13597
whroeder1 2015.10.22 20:06  
  1. RTFM learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
  2. close_val = close_val + "xxx";

Saravanakumar D
357
Saravanakumar D 2015.10.23 04:32  

Thank you brother WHRoeder. I was trying StringAdd :(

whroeder1
13597
whroeder1 2015.10.23 16:16  
or
StringAdd(close_val, "xxx");
or
close_val =  StringConcatenate(close_val, "xxx");
/
To add comments, please log in or register