Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Expert adviser licence protection template - expert for MetaTrader 4

Kenneth Parling | English Español Português 日本語 Deutsch

votes: 15
2019.12.22 11:39

You may want to protect your expert adviser project from unauthorized usage if shared by any reason. This guide 'template' will guide you 'how to' use three different types of licensing and of course all three can be disabled/enabled.

I've seen a lot of community members struggling with this and how to do it and what to use....and remember this is just an example how it could be done as there are other more advanced methods as well to implement to an expert adviser for this purpose. This one is quite clean and easy, both in coding + setup and not some rocket science.

Type of restrictions used in this example;

  • Account number restriction
  • Demo account/real account restrictions
  • Date expiry restriction

Explanation how these will work in the adviser

1: Account number restriction- Example, we don't want the adviser to work with other account number then specified both in strategy testing and trading mode

2: Demo account/real account restrictions- Example, we want to restrict the adviser to either work only on demo or real accounts both in strategy testing and trading mode.

3: Date expiry restrictions- Example, in trading mode we want the adviser to only work to a certain date 

Adviser settings and behavior

Externally there are no settings and the adviser only send test orders while using strategy tester. Main settings for licence protection can be found as internal settings within the code it self including explanation how and what to use....Have fun ;)

    Fast In Fast Out Strategy Fast In Fast Out Strategy

    FIFO strategy When all the market movement makes you have lost, This ea makes a good profit with a little profit with many orders in a short time Just on a Candle.

    Scalping With Virtual Pending Orders Scalping With Virtual Pending Orders

    This scalping EA demonstrates the use of a Virtual Pending order class library to simulate pending orders.

    ZigZag Semaphore  ( semafor ) Indicator ZigZag Semaphore ( semafor ) Indicator

    This indicator places a mark (a semaphore) at the zig zag for each of 4 zig zag evaluation lengths.

    VR Smart Grid Lite VR Smart Grid Lite

    The EA uses large volume orders to partially close other orders, with this approach, the breakeven and profit price is much closer to the current price than if you use all orders in the terminal or their full volumes.