Attachments forums

List of attachments posted on this forum.


All files on forums: 135514

Re: Pacois can you help restore MACD Pivots

moey_dw, Sun Sep 15, 2019 3:13 pm

mrtools wrote: Sun Sep 15, 2019 11:52 am Made it nmc.
mrtoolz........... im thanking u so much for that............... now i am try to understand how u make it nmc................ can i asking this man

previous non nmc one code is

Code: Select all

string stringUpperCase(string str)
{
   string   s = str;

   for (int length=StringLen(str)-1; length>=0; length--)
   {
      int char = StringGetChar(s, length);
         if((char > 96 && char < 123) || (char > 223 && char < 256))
                     s = StringSetChar(s, length, char - 32);
         else if(char > -33 && char < 0)
                     s = StringSetChar(s, length, char + 224);
   }
   return(s);
}

new one nmc is..................

Code: Select all

string stringUpperCase(string str)
{
   string   s = str;

   for (int length=StringLen(str)-1; length>=0; length--)
   {
      int tchar = StringGetChar(s, length);
         if((tchar > 96 && tchar < 123) || (tchar > 223 && tchar < 256))
                     s = StringSetChar(s, length, tchar - 32);
         else if(tchar > -33 && tchar < 0)
                     s = StringSetChar(s, length, tchar + 224);
   }
   return(s);
}

so 2 fix nmc.............. only difference i do is 2 make it nmc is add T word so becomes TCHAR?
All files in topic