How to fix this error - page 2

 
Please talk to someone over Here
 

Hello friend,

One I don't think you wrote the code.

string FriendlyTimeframeName(int _period)
  {
   if(_period==PERIOD_M1)  return "1Min";
   if(_period==PERIOD_M5)  return "5Ms";
   if(_period==PERIOD_M15)  return "15Ms";
   if(_period==PERIOD_M30)  return "30Ms";
   if(_period==PERIOD_H1)  return "1Hr";
   if(_period==PERIOD_H4)  return "4Hr";
   if(_period==PERIOD_D1)  return "D";
   if(_period==PERIOD_W1)  return "W";
   if(_period==PERIOD_MN1)  return "M";
   return "";
  }

The string your trying to insert means nothing to the return.

I changed your values set to PERIOD_???

The string your trying to see, will not do anything

Write it yourself

 
SatyamGanju:

i have uploaded mq4 file .. pls take a look

im trying to make it time bound indicator and if possible password protected also , i was trying to copy code from this source but im facing errors in both method

https://www.mql5.com/en/articles/359

Pls Help , It would be highly appreciated ;-)

Is this YOUR code??

I don't think so... 

Do you know anything about copyrights?

I don't think so...

Prove me I'm wrong.

 
Minions Labs:

Is this YOUR code??

I don't think so... 

Do you know anything about copyrights?

I don't think so...

Prove me I'm wrong.

yes this is my own code , its true i took help of some open source but i have written it myself and since im unable to add password to my indicator im asking for help and  yes i know what is copy rights and im well within rules , and my profession im an advocate also 

 
SatyamGanju:

yes this is my own code , its true i took help of some open source but i have written it myself and since im unable to add password to my indicator im asking for help and  yes i know what is copy rights and im well within rules , and my profession im an advocate also 

I don't think so...

You don't know even the basics of the MQL5 language...

Reason: