Protect your EA, Indicator from Copying

Поділитися
Вставка
  • Опубліковано 23 сер 2024
  • Covers restrictions on use, time limits and encrypted licences.
    You can follow the code for this tutorial at
    orchardforex.c...
    Playlist for this series: • Restrict use of your M...
    Free downloads for Metatrader 4 and 5
    MT4: www.orchardfor...
    MT5: www.orchardfor...
    Follow our regular market updates:
    Web: www.orchardfor...
    Twitter: / orchardforex
    Facebook: / orchardforex-327549444...
    Telegram: t.me/orchardforex

КОМЕНТАРІ • 220

  • @OrchardForex
    @OrchardForex  3 роки тому +7

    Get the code at orchardforex.com/copy-protect-your-ea-or-indicator/
    Includes a typo correction, in KeyGen, StringToCharArray(account+privateKey, accountChar);

    • @JemillNoge
      @JemillNoge 3 роки тому +2

      do i send include file to client if so how do i protect it

    • @OrchardForex
      @OrchardForex  3 роки тому +9

      @@JemillNoge To use these techniques ONLY send the ex4 or ex5 file to your client. The contents of the include file will already be in the ex file after compiling. Then send the licence for an account locked product or if the client has paid for the work treat the ex file like a sample. When the client pays then remove all the licencing lines from the source file and send the source of the expert or indicator to the client. There is no need to ever send the include file.

    • @Ama_Teur
      @Ama_Teur 2 роки тому

      @@OrchardForex bullshit… they decompile all mt5 market and cloud protection…

    • @OrchardForex
      @OrchardForex  2 роки тому +6

      @@Ama_Teur Really, do you have an example of a recently decompiled application? Do you really know what you are talking about or are you just trying to get attention?

    • @toddgilbey3979
      @toddgilbey3979 2 роки тому

      @@OrchardForex I think Matey Boy's trying to compare penis sizes.....lol

  • @laureven
    @laureven 3 роки тому +9

    The best channel about MQL ... clearly You have outside mql experience ...nobody writes code like this (professional approach) in mql education channels on UA-cam ... Thank You :) .. Regards

  • @mwaura.
    @mwaura. 6 місяців тому

    This is the best MQL programmer on UA-cam. How I wish I can learn how to code in a similar fashion.

  • @Jimdandy1958
    @Jimdandy1958 3 роки тому +21

    IMPORTANT:.. In order for this to work you must make sure that when you write this EA code that you put the #define lines ABOVE the line where you #include the LicenseCheck.mqh. By the time that the compiler reads the #include line and compiles the .mqh it must have ALREADY read the #define lines FIRST in order for the #ifdef lines to work properly... Pip Pip...

    • @ronaldnkhoma8267
      @ronaldnkhoma8267 3 роки тому +1

      You are one hell of a tutor too Jim. It's amazing to see you commenting here. I am the one guy who still likes your videos from as a way back as 2013. Keep up the good work old timers! I like you both.

    • @RealLexable
      @RealLexable 2 роки тому

      ..said one legend to another ? :D

  • @paulsinclair4927
    @paulsinclair4927 3 роки тому +5

    These are great videos! I can't thank you enough for making them!

  • @RealLexable
    @RealLexable 2 роки тому +3

    You are a genius sir. I watched some important lessons so far and think also i know your own unbeated EA strategy now. And by including my own to it as well after learning also your structures framworks i am gonna also improve it to the nextlevel :) so an unbelievable endless big thank you Mister Australia. Your work amazes me a lot.

    • @OrchardForex
      @OrchardForex  2 роки тому

      Wow, thanks

    • @derrickc.6776
      @derrickc.6776 2 роки тому

      Hello, where can I locate an email, link or site of the unbeaten EA strategy? Thx

  • @hamzavictor2385
    @hamzavictor2385 3 роки тому +3

    Wow, what an interesting video. This has been my concern for a while, but you have just solved it for me. Thanks a lot. 👍👍

  • @bjorndeclercq2510
    @bjorndeclercq2510 3 роки тому +1

    Thank you for your simple explanation to implement a license key!

    • @OrchardForex
      @OrchardForex  3 роки тому

      You're welcome! Remember to check the pinned comment, there was an error in the video.

  • @JemillNoge
    @JemillNoge 3 роки тому +4

    yay been wanting this can show us how to add a logo to our ea/indicator when somone drags it over

  • @Al-kk3cv
    @Al-kk3cv 3 місяці тому

    Excellent explanation! Thank you! I do have a question though... is there anyway (for a EA developer/provider) to write an EA section of code that can track, "see", or report if the account it is licensed to run on is being copy traded by either another copy trader EA or virtual platform? Essentially is there a way to stop or track the resulting trades from being copy-traded on the customers end to another account?

  • @naziharar1767
    @naziharar1767 Рік тому +1

    Thank you for the wonderful explanation 🥰 I would just like to get a code to protect the expert advisor and that it be specified with a year of use and be linked to the account number

    • @OrchardForex
      @OrchardForex  Рік тому +3

      Just add a check on the account number, or check the other videos in the playlist for different approaches. ua-cam.com/play/PL0iqkWGt8zznxMIWGGPVXD999Q9yzKrjd.html

    • @naziharar1767
      @naziharar1767 Рік тому

      @@OrchardForex thanks you sir 😊

  • @MassimoNanni
    @MassimoNanni Рік тому

    Amazing! Thanks a lot! 🤩🤩🤩

  • @bernardonicolai7041
    @bernardonicolai7041 3 місяці тому

    hello, nice video!!. I have a question, I did exactly as you did but on the third file Licence Generator, the error defined KeyGen appear. I try to use chatgpt but he can not resolve the problem

  • @profitempire2085
    @profitempire2085 6 місяців тому

    Hello, I have followed all steps and no errors. But when i place the license key, It says invalid even when i am inputting it correctly.

  • @globalfinancetrading
    @globalfinancetrading 7 місяців тому

    Any chance you could do a video using an SQL database from wordpress hosting with your licensing concept? Would this work?
    For example, client base on website SQL database which can be toggled Active or Inactive for each client. A person doesn't pay, change the database to inactive.

  • @user-xq4zq1dz2i
    @user-xq4zq1dz2i Рік тому

    Amazing instructor/instructions! Curious if you have this no-loss EA for sale on MT4/5 Market?

  • @korekobayleir9473
    @korekobayleir9473 3 місяці тому

    If this file is an include, will it still be read when uncompiled? I experienced something unpleasant about my product being duplicated, but I put this restriction, will this inclusion still be read when uncompiled, I hope not

  • @greatfunlol
    @greatfunlol 3 роки тому +3

    Hi. First of all, thank you for this very useful video and ideas.
    I have a question related with the licence days functions... I have tried it using a VPS and the EA doesn't stop running on the date that it is supposed to end. If I close the platform and open it again, it stops. But if I leave it always open, in a VPS, it continues running. Is there any way of actually stopping the EA from running when it is supposed to, even if the platform continues open?
    Thank very much

    • @OrchardForex
      @OrchardForex  3 роки тому +3

      Yes, I only placed the check in the OnInit function to prevent the EA from being started. If you also want a runnning EA to shut down then include a second call in the OnTick function like this
      if (!LicenceCheck(InpLicence)) ExpertRemove();

    • @greatfunlol
      @greatfunlol 3 роки тому

      I will try it. Thank you for your help.

  • @muralk3153
    @muralk3153 3 роки тому +1

    Excellent!

  • @jasontodt836
    @jasontodt836 Рік тому

    Great video. Well explained.

  • @Pallotta.Matteo
    @Pallotta.Matteo 10 місяців тому

    Why it doesn't work for me? copied everything you made but if i try to put it on a pair in the demo account i have on my broker firstly it doesn't stop it even if i said to use it on a real account, secondly i only have the message for input the private key but not the actual box where to put it and it doesn't show me the private key on the expert folder on the terminal, do you know why? can it be that the code is old and maybe there were few new changes?
    thanks in advance for your help

  • @dougfebruary6098
    @dougfebruary6098 Рік тому

    This has been the most valuble video I have ever seen on YT. Thank you.
    Is there a way to code restrict the number of devices one can use the vode on at a given time? Let's say one only wants users to be restricted to 2 devices.

    • @OrchardForex
      @OrchardForex  Рік тому +1

      Yes, I use something like this but it requires access to an activation server to track the number of instances in use.

    • @dougfebruary6098
      @dougfebruary6098 Рік тому

      @@OrchardForex thanks for taking the time to respond. I appreciate it. Is there anyway you can make a video on how to do this. Again, thanks for your content

    • @OrchardForex
      @OrchardForex  Рік тому +1

      I try to stick to MQL coding on this channel. To go into the PHP and JS for the server would not have enough interest.

    • @dougfebruary6098
      @dougfebruary6098 Рік тому

      @@OrchardForex i understand. I have sent you an email regarding a quote for an EA. Please look out for an email from myself.

  • @ehabyahia
    @ehabyahia 3 роки тому

    Thank you for all your valuable content, PLEASE make some videos about chart events by mouse drag and clicks there is no one else is covering this and it is driving me crazy
    Thank you so much!

    • @OrchardForex
      @OrchardForex  3 роки тому +1

      Great suggestion! I'll add this to my list.

    • @ehabyahia
      @ehabyahia 3 роки тому

      @@OrchardForex
      Thanks a lot you are the best

  • @pedrosanchezroca181
    @pedrosanchezroca181 2 роки тому +1

    nice video, just one doubt....how does it work when you distribute this? you distribute the .ex4 file right? but what happens then with the licence_check.mqh file? can people potentially hack it?

    • @OrchardForex
      @OrchardForex  2 роки тому

      So don’t send the mqh file

    • @pedrosanchezroca181
      @pedrosanchezroca181 2 роки тому

      oh...im totally confused now sorry....if one of the first lines of the EA tells #include ..how can you not send the mqh file and just the ex4?

    • @OrchardForex
      @OrchardForex  2 роки тому

      @@pedrosanchezroca181 Because the mqh file is embedded in the ex4 file. If you are asking this question then I don't think you are at the stage where you should be distributing your apps to others.

  • @TheCyberklutz
    @TheCyberklutz 2 роки тому

    Love your work. Tx

  • @Slavko007
    @Slavko007 Рік тому

    Thanks for the excellent video explanation. I have a question, is there an error in the coding of the keygenerator, I can't get a working key at all. Other restrictions work without problems.

    • @OrchardForex
      @OrchardForex  Рік тому +1

      Not that I can see. The KeyGen function returns a key as a string. There is an earlier error where the private key was not used but the function would still return a working key, just not protected. There is a pinned comment at the top of the list with a fix and the code on the web page is correct.

  • @jamesburtnett8144
    @jamesburtnett8144 Рік тому

    I just needed to clarify a related point for beginners:
    If you create a custom indicator or EA on MT4 just for your own personal use on a PC, this licensing code wouldn't be necessary in that case, would it? The only copy or theft danger is being hacked past the firewall of your OS? I'm assuming MT doesn't automatically upload your data even when the default copyright displays 'MetaTrader, Inc.' when going through the initial dialogue boxes upon creation? Thanks for your fascinating video.

    • @OrchardForex
      @OrchardForex  Рік тому +1

      This video, originally planned to be the only one, is part of a 3+part series. The aim here is where you build the EA for someone else, want to let them try it out but not just take the demo and not pay.

    • @jamesburtnett8144
      @jamesburtnett8144 Рік тому

      @@OrchardForex Thanks for your reply. I completely understand your actual intention behind the video. It just left me wondering how safe one's intellectual work may be when there is no actual distribution beyond personal use on one machine.

    • @OrchardForex
      @OrchardForex  Рік тому +1

      @@jamesburtnett8144 The EA is not sent to the broker. It is as secure as any other file on your computer.

  • @zinebpacha194
    @zinebpacha194 Рік тому

    thank you for your videos I learned well. please can you show us how to protect the robot from copying operations to another account... thank you in advance

    • @OrchardForex
      @OrchardForex  Рік тому

      There are other videos that may help. A playlist is linked in the description.

  • @DavyMilano
    @DavyMilano 2 роки тому

    Oh god you are good at it! I have a question for you… can you contact me it’s about a secret ea but I can’t find why the warning code is not correct… please

  • @JobayrFighter
    @JobayrFighter Рік тому +1

    So i must give all this files to the customer ? how can i control the license that i gived to the costumer ? and if the costumer edit the code himself ?
    Thanks for your responds

    • @OrchardForex
      @OrchardForex  Рік тому +1

      The use case for this is to let your customer (who paid you to do the work) try the expert, then pay you, then you give them the files after removing the security code.

  • @johnprest4
    @johnprest4 Рік тому

    Thanks! I was wondering how this could be done. ... GOD Bless!!!

  • @TIRapi1993
    @TIRapi1993 3 роки тому +2

    Very useful and exactly what I've been looking for, thanks! How do I protect the .ex4 file from being decompiled and copied, though? Is there an easy way to do it?

    • @OrchardForex
      @OrchardForex  3 роки тому

      The MQL market claims to add an extra layer of decompile protection and I've heard there are commercial products that can do the same but I don't have any first hand knowledge of them. I also haven't heard of a successful decompiler for recent code but I'm sure someone is working on one.

  • @MusicPlugs
    @MusicPlugs 3 роки тому +1

    Very good content, can this protect a custom indicator?

  • @hadirezayee4217
    @hadirezayee4217 2 роки тому

    Thanks you ❤

  • @KulturKongress
    @KulturKongress 2 роки тому

    Nice Idea ;) Love it!! Is there any way, to give the expire Date with the licence Key?

    • @OrchardForex
      @OrchardForex  2 роки тому

      Yes, see this video ua-cam.com/video/wee3s0JnGFY/v-deo.html

  • @matthijspouwels
    @matthijspouwels Рік тому

    What about copy trading software that copy trades from one account to another? Is it possible to implement something that let's you recognize when somebody does this? Because if you use a copy trading software like this you can of course undermine the need of a license.

    • @OrchardForex
      @OrchardForex  Рік тому

      You can't stop copy trading, but you still need a licence for the original trading software

  • @TheHugnka
    @TheHugnka Рік тому

    Thank you very much for the fabulous work you are doing. I have a concern about the protection of my robot using a license key. I followed the video and managed to implement this , but the resulting ex4 file works on any account when it is supposed to be unique. How to do please? Thanks in advance

    • @OrchardForex
      @OrchardForex  Рік тому

      You have made a mistake somewhere. That's all I can say from your description. Maybe step through in the debugger and make sure the licence routines are being called.

    • @TheHugnka
      @TheHugnka Рік тому

      @@OrchardForex Thanks for your answer, I will check it all.

  • @villangamingyt7731
    @villangamingyt7731 Рік тому

    Thanks🙏

  • @bouqiel2819
    @bouqiel2819 2 роки тому

    Hi, I built an indicator with EA builder but it works only on my pc. If I try installing it on another pc, it indicates it's successfully loaded on the journal but the indicator doesn't show on the chart. What can I do to correct this please

  • @gabrielcanete1422
    @gabrielcanete1422 Рік тому

    It would be very useful to learn how to make our own copy trading bot.
    Professor, would you please teach us how to program copy trading

    • @OrchardForex
      @OrchardForex  Рік тому

      You can easily purchase copy traders. It would not be worthwhile to write your own.

  • @reach_perumal
    @reach_perumal 2 роки тому +1

    Could you please suggest a reliable way of compiling the EA? To eliminate reverse engineering the EA file.

    • @OrchardForex
      @OrchardForex  2 роки тому +1

      Yes, just compile it. Have you seen an EA successfully decompiled lately?

    • @reach_perumal
      @reach_perumal 2 роки тому

      @@OrchardForex Nope I never seen it. But I have seen in UA-cam few unethical people try to decode our hardwork. Anyway... I love all your videos. Thanks for your valuable contribution sir! Do you trust MQL5 cloud protector for code compilation?

    • @OrchardForex
      @OrchardForex  2 роки тому

      @@reach_perumal I don't use it. My clients are all high value corporates and have no interest in MT5

    • @reach_perumal
      @reach_perumal 2 роки тому

      @@OrchardForex thanks sir! I am an young Java developer started my career this year. Out of curiosity, Can I ask you what kind of environment/platform/programming language are used for Corporate clients.

    • @OrchardForex
      @OrchardForex  2 роки тому

      @@reach_perumal All of my clients are using MQL4

  • @IM.MO_
    @IM.MO_ Рік тому

    My cousin bought a trading system but when i try to use it it says unauthorised user how can i fix that

  • @MohammadAli-hf2id
    @MohammadAli-hf2id 2 роки тому

    Dear Sir, It missing SL and TP In some order, This is not working properly, Can you please check the reason? can you help me?

    • @OrchardForex
      @OrchardForex  2 роки тому

      This tutorial is about securing your code, not SL and TP.

  • @KeithNjenge
    @KeithNjenge 2 роки тому

    Hi may you please help me. I bought an EA recently and it has these account limits whereby it has to be registered to a single account for it to function and the guy told me i can register an account with him when i want and i’ve been doing funding challenges and today i passed a challenge and asked him to connect the phase 2 account to the ea and then he isn’t responding to me. Is there a way for you to remove these limits?

    • @OrchardForex
      @OrchardForex  2 роки тому

      You're asking to hack someone else's code. No. Not here.

  • @michaetom297
    @michaetom297 3 роки тому

    Thank you so much for your help , please sir how can I protect indicator simple password without encrypt ?

    • @OrchardForex
      @OrchardForex  3 роки тому

      You can always try just compiling a password in but it isn't very good protection.

  • @abuomar3410
    @abuomar3410 Рік тому +1

    Thank you
    I want to make EA working on 1 computer only , can we do that? how?

    • @OrchardForex
      @OrchardForex  Рік тому

      Sell through the MT5 market.

    • @abuomar3410
      @abuomar3410 Рік тому

      ​@@OrchardForex thank you , is there any code can show (computer ID or Hard disk ID or MAC address for current computer)?

    • @OrchardForex
      @OrchardForex  Рік тому

      @@abuomar3410 You can do that by calling a dll but nothing within metatrader.

    • @abuomar3410
      @abuomar3410 Рік тому

      @@OrchardForex Thank you

  • @andreasmichaelides2391
    @andreasmichaelides2391 Рік тому

    Hi, great video. How about if I wanted to authorise a license renewal?

  • @franciscojunior6841
    @franciscojunior6841 3 роки тому +1

    So the include file has to be converted to a DLL right?

    • @OrchardForex
      @OrchardForex  3 роки тому

      No. No DLL at all. In the video I just included the mqh file

  • @franciscojunior6841
    @franciscojunior6841 3 роки тому

    Could you show us how to make an include function that returns a double value like for instance RSI value... than turn this include into a dll file. After that, how to call it from your expert?? Thanks

    • @OrchardForex
      @OrchardForex  3 роки тому +2

      Writing a dll would be an advanced topic and I'm trying not to get too complex with these videos. Is there a reason why you need a dll?

  • @leekonig6325
    @leekonig6325 3 роки тому

    In the EA line 14 #inclue what do I write instead of orchard?

    • @OrchardForex
      @OrchardForex  3 роки тому

      This is the path to the LicenceCheck.mqh file. Use the path where you stored the file.

    • @leekonig6325
      @leekonig6325 3 роки тому

      @@OrchardForex brill thanks

  • @exotic4432
    @exotic4432 2 роки тому

    Thx 🙏🙏🙏

  • @yhftraders8762
    @yhftraders8762 2 роки тому

    What about metatrader 5.. you only keep using metatrader 4 but it wont compile in 5

    • @OrchardForex
      @OrchardForex  2 роки тому

      I use MT4 because it is more popular. The code for licence testing is the same for MT4 and MT5. The only thing I showed that is MT4 specific is the example EA but you would be adding the code into your own EA so that should not be relevant.

  • @gabrielcanete1422
    @gabrielcanete1422 Рік тому

    hello onchard forex.
    I would not teach how to program our own COPY TRADING

  • @julialeauoa8980
    @julialeauoa8980 Рік тому

    Greeting i have coded my robot but my robot does not not place any orders... maybe you can help because i tried but it does not place any orders

    • @OrchardForex
      @OrchardForex  Рік тому

      I can't help with only this much detail.

  • @davidfortin3111
    @davidfortin3111 2 роки тому +1

    Does anyone know how to change this code to only trade Tuesday - Thursday, and only trade from 9am - 2 pm server time?
    I am new to codes and I don't want to mess anything up on the current EA I am using.
    datetime LastOpenTradeTime()
    {
    datetime result = 0;
    for(int i = OrdersTotal()-1; i >= 0; i--)
    {
    if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue;
    if(OrderType() > 1) continue;
    if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)
    {
    result = OrderOpenTime();
    break;
    }
    }
    return(result);
    }
    bool SelectLastHistoryTrade()
    {
    int lastOrder = -1;
    int total = OrdersHistoryTotal();
    for(int i = total-1; i >= 0; i--)
    {
    if(!OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) continue;
    if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)
    {
    lastOrder = i;
    break;
    }
    }
    return(lastOrder >= 0);
    }
    datetime LastOpenTime()
    {
    datetime opentime1 = 0, opentime2 = 0;
    if(SelectLastHistoryTrade())
    opentime1 = OrderOpenTime();
    opentime2 = LastOpenTradeTime();
    if (opentime1 > opentime2)
    return opentime1;
    else
    return opentime2;
    }

  • @Axel98807
    @Axel98807 Рік тому

    Hi sir, thanks a lot for sharing this great code... I'm just asking if someone has the same problem as me with the following line in the main code :
    int OnInit() {
    if (!LicenceCheck(InpLicence)) return(INIT_FAILED) ; ==>>> this line give an error message after compiling : 'LicenceCheck' - function not defined ...
    .......
    I don't have any error in the others script, it's just this line and I don't understand where is the problem. Files are at the good place, with the good names...
    Please can you help ? Regards

    • @OrchardForex
      @OrchardForex  Рік тому

      Typing error in the function name but more likely you forgot to include the file with the functions

    • @Axel98807
      @Axel98807 Рік тому

      @@OrchardForex The name is strictly the same, no error in the name... I have the three files, Restricted_EA, LicenceCheck.mqh and LicenceGenerator.mqh... What do you mean exactly ("you forgot to include the file with the functions") ?
      Thanks for help

    • @OrchardForex
      @OrchardForex  Рік тому

      @@Axel98807 Do you have the #include statements.

    • @Axel98807
      @Axel98807 Рік тому

      @@OrchardForex I restart everything and the error message is gone... mystery... thanks for your help

  • @FXPIP
    @FXPIP 2 роки тому +2

    this video and methods not protect from decompilling

    • @OrchardForex
      @OrchardForex  2 роки тому +6

      They also don't protect from rain or volcanic eruption

  • @masimpec
    @masimpec Рік тому

    i did exactly as you did but am getting errors on the .mqh file

    • @OrchardForex
      @OrchardForex  Рік тому

      You aren't being very specific about the errors. You'll just have to work through the problems.

  • @sohrabfeghhi8914
    @sohrabfeghhi8914 Рік тому

    Hi. I want to create license for ea but i want every license work just one systems. How can design this functions? I want limited for computer system like using mac address .some people want use ea in every account without getting new license for every account

    • @OrchardForex
      @OrchardForex  Рік тому +1

      You will have to use a dll to get access to that kind of system information

    • @sohrabfeghhi8914
      @sohrabfeghhi8914 Рік тому

      @@OrchardForex how can use it? Have you any trading course for that?

    • @OrchardForex
      @OrchardForex  Рік тому

      @@sohrabfeghhi8914 This is not for trading. This is to use where a client is paying you for development, you want to give them the ex file to try before payment but you want to make sure they do not just keep the trial version and not pay.

    • @sohrabfeghhi8914
      @sohrabfeghhi8914 Рік тому

      Do you have a telegram or Whatsapp account?

    • @OrchardForex
      @OrchardForex  Рік тому

      @@sohrabfeghhi8914 I don't give out that information. For custom work go to orchardforex.com/custom-experts

  • @05-bhavyarajgadhvi66
    @05-bhavyarajgadhvi66 2 роки тому

    Bro how can i protect my source code in tradingview so that my clint can't copy it.

  • @jphuman4901
    @jphuman4901 Рік тому

    Is there a video for a mt5 version?

    • @OrchardForex
      @OrchardForex  Рік тому

      The code is the same. This is one case where MT5 has kept up.

  • @youtraders
    @youtraders Рік тому

    hello sir i'm still confused about how i delete the moving average indicator that is in the chart windows please tell me about it if you can make this tutorial

    • @OrchardForex
      @OrchardForex  Рік тому

      Just right click, indicators, select and delete

    • @youtraders
      @youtraders Рік тому

      @@OrchardForex for ea sir

    • @OrchardForex
      @OrchardForex  Рік тому

      @@youtraders Why would you want the EA to remove an indicator? If you don't want the indicator just don't add it to the chart in the first place.

    • @youtraders
      @youtraders Рік тому

      @@OrchardForex I just want to delete the moving average that is on the chart windows after the ea is stopped. I'm confused about how to make the windows chart not have a moving average line

  • @northlight_algo
    @northlight_algo 2 роки тому

    This is great Stuff. I wanna know Is there any way to stop decompiling the ex4 files?

  • @kyleking6460
    @kyleking6460 2 роки тому

    how do we integrate with our webistes lets say you want deactivate someone

    • @OrchardForex
      @OrchardForex  2 роки тому

      That's a good question. I should make a detailed answer as a video. I've added it as a request at orchardforex.com/requests/integrate-copy-protection-with-web-to-allow-remote-deactivation/

  • @woeahetoward
    @woeahetoward Рік тому

    Hello first of all thank you for your amazing work. Is it possible to share this code with mql5? Thank you

  • @mzwakhethokozane378
    @mzwakhethokozane378 3 роки тому

    how do you manipulate expired indicator mt4 to work?

    • @OrchardForex
      @OrchardForex  3 роки тому

      The idea for the expiry date is to use it where you are being paid for custom work. You can give the limited version to the client to confirm they are happy and they cannot simply take the demonstration and not pay because it will stop working. When they pay you you just make a new version with the restriction removed.

  • @jagdishvasave2504
    @jagdishvasave2504 3 роки тому

    Its very useful code, thanks sir, I used this code for my EA but every time, it prints message "Invalid License " and EA removed. I used my account no and my private key to generate license code. Can't find the mistake. please help me.

    • @OrchardForex
      @OrchardForex  3 роки тому

      Add a print statement in the licence check code and print out the hashed value the licence is comparing to. My best guess is that when you are concatenating the strings to be hashed you have a difference in the code used to generate the key in the script and the code in the licence check.

    • @jagdishvasave2504
      @jagdishvasave2504 3 роки тому

      @@OrchardForex OK Thanks sir, in print different key printed while taking EA in service than generated key by generator,. How it is?

    • @OrchardForex
      @OrchardForex  3 роки тому

      @@jagdishvasave2504 If you followed the example then the script and the ea are both using a common include file, so the logic to create the code is the same in both. The difference then will be that one of the inputs is different.
      In the KeyGen function the include file first concatenates the private key and account number, then uses SHA256 to hash the value. If the script and the ea are both calling the same function and getting a different result then one of those 2 values is different. Try adding the print statement in the keygen function, print out both the private key and the account. Make sure both the script and ea are using the same include file.

    • @dimashariyanto3352
      @dimashariyanto3352 2 роки тому

      @@OrchardForex hi sir how to print the hash value in licence check mqh?

    • @OrchardForex
      @OrchardForex  2 роки тому

      @@dimashariyanto3352 a simple Print(value);

  • @greatfunlol
    @greatfunlol 3 роки тому

    How can we display the license termination date on the chart, to stay always visable? I would appreciate your help once again. Thank you

    • @OrchardForex
      @OrchardForex  3 роки тому +1

      Easiest would be to just use Comment()

  • @JemillNoge
    @JemillNoge 3 роки тому

    How do I fix data losses on my Indicators eg Time[0]

    • @OrchardForex
      @OrchardForex  3 роки тому

      What do you mean by data losses on Time[0]

    • @JemillNoge
      @JemillNoge 3 роки тому

      With property strict it gives me losses is there a way I could send a screenshot

    • @OrchardForex
      @OrchardForex  3 роки тому

      @@JemillNoge You can use the contact form on our web site and attach a file. Property strict just tells the compiler to use the new program structures. I still don't know what you mean by losses unless you're saying you have a losing strategy.

  • @masimpec
    @masimpec 2 роки тому

    I been protecting my EAs using account numbers and expiry date. In respect of this video do i have to send the Licence.mqh file to client or just .ex4 after compiling

    • @OrchardForex
      @OrchardForex  2 роки тому

      See the second video on this. ua-cam.com/video/wee3s0JnGFY/v-deo.html

  • @fromzerotospyro
    @fromzerotospyro 3 роки тому

    you must be programming on mql for years to make this look so easy

    • @OrchardForex
      @OrchardForex  3 роки тому

      Thank you, sometimes it feels like forever.

  • @shahinsinv
    @shahinsinv 3 роки тому

    Can we use this for MT5 ?

  • @Ama_Teur
    @Ama_Teur 2 роки тому

    it can be easy decompiled

  • @OriginalTradersForexAcademy
    @OriginalTradersForexAcademy 2 роки тому +1

    Can you help me create a robot

  • @fortunesunday4627
    @fortunesunday4627 2 роки тому

    Sir I added the license to my EA and it’s showing invalid Pointer error

    • @OrchardForex
      @OrchardForex  2 роки тому

      The most likely cause is that you missed instantiating the licence object with the new statement

    • @fortunesunday4627
      @fortunesunday4627 2 роки тому

      @@OrchardForex how can I do that sir

    • @OrchardForex
      @OrchardForex  2 роки тому

      @@fortunesunday4627 This video does not use classes so I assume you are looking at the later video using a licence file but adding the comment in the wrong place. In the otehr video go to 35:49. ua-cam.com/video/wee3s0JnGFY/v-deo.html

    • @fortunesunday4627
      @fortunesunday4627 2 роки тому

      @@OrchardForex Thank your sir

    • @fortunesunday4627
      @fortunesunday4627 2 роки тому

      @@OrchardForex But am using a MacBook and the file was created in the file folder but the .lic file isn’t there rather it went to my log folder

  • @franciscojunior6841
    @franciscojunior6841 3 роки тому

    Mestre, how to protect our work from decompiler softwares..thanks

    • @OrchardForex
      @OrchardForex  3 роки тому

      The MQL market claims to add an extra layer of decompile protection and I've heard there are commercial products that can do the same but I don't have any first hand knowledge of them. I also haven't heard of a successful decompiler for recent code but I'm sure someone is working on one.

    • @gamerx3201
      @gamerx3201 3 роки тому

      @@OrchardForex Have you ever used Cloud Protector service of MQL5, it adds extra layer of encryption which helps to prevent complete decryption of code if someone uses any decompiler.

    • @OrchardForex
      @OrchardForex  3 роки тому

      @@gamerx3201 No. If the original code can be decompiled then protected code can be decompiled. Have you seen a working decompiler lately?

    • @Macam2macam
      @Macam2macam 3 роки тому

      never heard of successful decompilation.

    • @OrchardForex
      @OrchardForex  3 роки тому +2

      @@Macam2macam Not for a long time. I think since build 600. There are a few people out there selling decompilers but they appear to be scams.

  • @veeraselvan201
    @veeraselvan201 2 роки тому

    Bro how to crack the ea licence key

    • @OrchardForex
      @OrchardForex  2 роки тому

      You can try a brute force attack, just cycle through possible keys until you get a matching hash.

  • @JemillNoge
    @JemillNoge 3 роки тому

    Is there a script to convert mq4 to mq5

    • @OrchardForex
      @OrchardForex  3 роки тому

      Not that I know of. I have seen some function libraries that allow you to use MT4 code in MT5 with limited success. But really, why would anyone want to convert.

    • @JemillNoge
      @JemillNoge 3 роки тому

      I see since we trading vix75 etc with deriv.com and it’s only MT5 that’s why we would like to convert it from mq4 to mq5

  • @maquinatrader
    @maquinatrader 3 роки тому

    On mt5 is not removing the EA. Does not verify the key.

    • @OrchardForex
      @OrchardForex  3 роки тому +1

      I've just tested it using the same code used in the video and all is working in MT5. To use the key you will have to comment out the other settings like expiry days and alloed demo symbols. It's mentioned in the video.

    • @maquinatrader
      @maquinatrader 3 роки тому

      @@OrchardForex I will keep trying! Thank you master!

  • @julialeauoa8980
    @julialeauoa8980 Рік тому +1

    Please help me with my robot please

    • @OrchardForex
      @OrchardForex  Рік тому

      If you want to post the full strategy it may be something I consider for a tutorial.

  • @BBMess7861
    @BBMess7861 Рік тому +1

    Good Day! I'm either blind or something has changed. I'm getting 1 tiny error about the code in the Licence Check.mqh.

    • @BBMess7861
      @BBMess7861 Рік тому

      #ifdef LIC_PRIVATE_KEY
      long account = AccountInfoInteger(ACCOUNT_LOGIN);
      string result = KeyGen(IntegerToString(account), LIC_PRIVATE_KEY);
      if (result!=licence) {

    • @BBMess7861
      @BBMess7861 Рік тому

      Curious if there's something that someone who has been successful implementing this can comment on and possibly host a solution. Coding is new to me but I've been trying to learn as much as I can. I was at 18 errors and I've managed to work my way down to 1. Thanks to anyone in advance for any insight if possible!

    • @OrchardForex
      @OrchardForex  Рік тому +1

      I need to know the error to help

    • @BBMess7861
      @BBMess7861 Рік тому

      ‘licence’ - undeclared indentifier

    • @BBMess7861
      @BBMess7861 Рік тому

      @@arthurmcalister1454 I did that, and realized something major. I deleted everything out of a different .mqh file and tried to use that. That was my issue. I clicked on new, created the option for ‘include (mqh)’ and pasted everything into it. Then it worked. But, I may not be getting errors now, my problem is that with or without the license key, it allows the EA to remain active unless a wrong key is used. If it’s left blank, the EA returns that as True. Now I’m stumped with that.

  • @Ama_Teur
    @Ama_Teur Рік тому

    any MQL ex4 or ex5 will be decompilled - metaquotes russian freaks