users ID applied to expert advisor

 

Hello Guys,

I coded password on my expert advisor but i want to change the values to be seen in the input window as asterisk. The "link101" should be (*******)


extern string PIN ="-------";


if(PIN != "link101") {Alert ("Invalid PIN");return(0);}
if(AccountFreeMargin()<(1000*Lots)) {Print("Not Enough Money"); return(0);}
if(Bars<100) {Print("-----NO BARS "); return(0);}


Can anybody help me code the problem. Thank you.


newlink55

 
newlink55:

Hello Guys,

I coded password on my expert advisor but i want to change the values to be seen in the input window as asterisk. The "link101" should be (*******)


extern string PIN ="-------";


if(PIN != "link101") {Alert ("Invalid PIN");return(0);}
if(AccountFreeMargin()<(1000*Lots)) {Print("Not Enough Money"); return(0);}
if(Bars<100) {Print("-----NO BARS "); return(0);}


Can anybody help me code the problem. Thank you.


newlink55

It is not possible.
 
angevoyageur: It is not possible.

Actually it is. megaDroid does exactly that. It's just not easy.

If the external is not asterisks, Create a file indicating a valid password was seen (include a hash codes so it can't forged.)

Then replace the expert .ini file substituting the pin with asterisks. (can't be done with standard file calls, File Operations via WinAPI - MQL4 Articles, File Operations without Limitations - MQL4 Code Base)

 
WHRoeder:

Actually it is. megaDroid does exactly that. It's just not easy.

If the external is not asterisks, Create a file indicating a valid password was seen (include a hash codes so it can't forged.)

Then replace the expert .ini file substituting the pin with asterisks. (can't be done with standard file calls, File Operations via WinAPI - MQL4 Articles, File Operations without Limitations - MQL4 Code Base)

Ok it's possible, thanks for sharing the idea.
Reason: