swordfish Posted February 3, 2012 Report Share Posted February 3, 2012 Will this simple code 'IsDemo()" added to any IF statement allow the EA to work with demo accounts only? For example, if(MacdCurrent>0 && MacdCurrent<SignalCurrent && MacdPrevious>SignalPrevious && IsDemo() && MacdCurrent>(MACDCloseLevel*Point)) { OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); // close position return(0); // exit Will the EA still show a Smiley Face on chart of a live account? Quote Link to comment Share on other sites More sharing options...
iwjw Posted February 3, 2012 Report Share Posted February 3, 2012 Yes to both of your questions Quote Link to comment Share on other sites More sharing options...
⭐ luxinterior Posted February 3, 2012 Report Share Posted February 3, 2012 and it will take any vaguely technical person about 3 seconds to remove. L Quote Link to comment Share on other sites More sharing options...
swordfish Posted February 3, 2012 Author Report Share Posted February 3, 2012 Yes, I know. Is there a more secure way? and it will take any vaguely technical person about 3 seconds to remove. L Quote Link to comment Share on other sites More sharing options...
iwjw Posted February 3, 2012 Report Share Posted February 3, 2012 Yes, I know. Is there a more secure way? If you don't use an expiration date in your demo version you can spare the demo restriction because there a good trade copiers even here on II. There was a free tool (ex4_protector) to protect .ex4 against the most common decompiler (224)...don't know whether it's still availlable and still protects latest metatrader version Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.