Download MetaTrader 5

Help For ea

To add comments, please log in or register
Abdullah Alrai
17651
Abdullah Alrai  

hi recently i coded an ea that give results of testing stratigies at tester only

note****on tester only

and iwant  to add it as product

 

to sell it in the market but there is aproblem

if i put it in the market there is afree demo version that user can download to test it...

and if it run on tester users will not buy it cause it is working...

i suggest a solution that to add this code it will define my ea version if it is bought version it will work and if it is not full version it will give a message that says buy full version

 is this code is alright???

//////in start func i put this 
///at normally text1/2 have string value as buy sell ....etc

ENUM_LICENSE_TYPE mql_program=(ENUM_LICENSE_TYPE)MQLInfoInteger(MQL_LICENSE_TYPE); 

if (mql_program!=LICENSE_FULL){
        
         text1="Buy_Full_Version_To_Work";
         text2="Buy_Full_Version_To_Work";

}
Marco vd Heijden
Moderator
5098
Marco vd Heijden  

Yes but make sure you notice it to the Mods in the description, since this type of limitation is usually forbidden.

To add comments, please log in or register