Jump to content

EA for demo account only


swordfish

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...