Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us

Share your knowledge in the forex community!

Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5

Create A New Account
Home/ Questions/Q 805
In Process
sysmart
sysmart

sysmart

  • 2 Questions
  • 2 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
sysmart
Asked: December 18, 20202020-12-18T09:48:40+00:00 2020-12-18T09:48:40+00:00

Protection of the Expert Advisor from unforeseen situations

  • 0

the expert advisor is written, tested, everything seems to be fine, but!

It’s scary to use a large amount of money for it, I would like to provide for all sorts of unforeseen situations in the market that happen.
For example: gap, slippage, all sorts of errors.

Please advise what situations are possible and, if possible, how to protect it in the code?

  • 9 9 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    9 Answers

    • Voted
    • Oldest
    • Recent
    1. nektomk

      nektomk

      • 2 Questions
      • 37 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      nektomk
      2020-12-18T09:49:31+00:00Added an answer on December 18, 2020 at 9:49 am

      Alexsandr San:

      Here you install on the next Graph – and you have protection!!!

      there is also a funny protection – all takeprofits must be virtual, although they seem to be limited. That is, to be worked out on the terminal side.
      this is why you need a fast response and speed of work

      Servers in controversial situations (geps, spread jumps, sometimes slippage/phase-moons) take will not be issued in your favor. 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. mt_linux_wine_haltura

      mt_linux_wine_haltura

      • 0 Questions
      • 2 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      mt_linux_wine_haltura
      2020-12-22T07:03:07+00:00Added an answer on December 22, 2020 at 7:03 am

      Maxim Kuznetsov:

      I wanted to say that in this short period of time you did not have time to order or buy anything and you are “Mr. sovramshi”. 

      or go not from under the clone and explain yourself 🙂

      I don’t see the point in explaining myself to a boorish, superficial person. You either speak to the point, or you are silent. So You believe you’ll be able
      Should I explain how many cycles it takes for n functions to be executed in the Expert Advisor? Well, in general, what is enough attention paid to the mql educational literature ?

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. nektomk

      nektomk

      • 2 Questions
      • 37 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      nektomk
      2020-12-18T09:49:15+00:00Added an answer on December 18, 2020 at 9:49 am

      mt_linux_wine_haltura:
      Topic
      absolutely relevant. It is unclear where the skepticism of some of the inhabitants of the forum. I still do not see any steps in the direction of
      compiling algorithms, with checks and greedy algorithms. At the same time, the code is even disgusting for money, and
      I have seen a lot of purchased prog.
      apparently, no one cares about greed and network load at all, and even more so about checks. and
      even there is no understanding that it needs to be done. The help is disgusting, the mql lessons are only from one publisher, and of very poor quality.
      The main thing is to inflate your cheeks more and play the guru-cynic. And in recent years, not a single step in the direction of drawing up
      any normal lessons or manuals is visible. and they would be useful not only for beginners, but also for crowds of experienced *****coders.

      what just happened right from Wednesday ? and there was leisure and buy and check..

      hint: profiles are available for everyone to read – you are here 4 days from the date of registration 🙂 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. mt_linux_wine_haltura

      mt_linux_wine_haltura

      • 0 Questions
      • 2 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      mt_linux_wine_haltura
      2020-12-22T07:03:07+00:00Added an answer on December 22, 2020 at 7:03 am

      The topic is absolutely relevant. It is unclear where the skepticism of some of the inhabitants of the forum. I still do not see any steps in the direction of
      compiling algorithms, with checks and greedy algorithms. At the same time, the code is even disgusting for money, and I have seen a lot of purchased prog.
      apparently, no one cares about greed and network load at all, and even more so about checks. And even there is no understanding that it needs to be done.
      The help is disgusting, the mql lessons are only from one publisher, and of very poor quality. The main thing is to inflate your cheeks more and play the
      guru-cynic. And in recent years, not a single step in the direction of drawing up any normal lessons or manuals is visible. And they would
      be useful not only for beginners, but also for crowds of experienced *****coders.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    5. b

      b

      • 0 Questions
      • 4 Answers
      • 0 Best Answers
      • 28 Points
      View Profile
      b
      2020-12-22T07:03:07+00:00Added an answer on December 22, 2020 at 7:03 am

      Sysmart:

      Please advise what situations are possible and, if possible, how to protect it in the code?

      there can be a lot of situations. Slippage is set as a parameter when opening a position, the spread can be analyzed before opening
      the position of the gap too, just like everything else. Just in case, you can add minimum thresholds as a filter:

      • The minimum balance level at which the EA stops and possibly closes positions / deletes pending orders.
      • The same goes for the equity level.
      • Approximately the same for the min margin level.

      This is so as not to drain everything if something goes wrong.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    6. net

      net

      • 0 Questions
      • 4 Answers
      • 0 Best Answers
      • 28 Points
      View Profile
      net
      2020-12-22T07:03:08+00:00Added an answer on December 22, 2020 at 7:03 am

      Evgeniy Zhdan:

      Just after onTick (), insert return and you’ll be safe

      Then put return after OnTimer()

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    7. nektomk

      nektomk

      • 2 Questions
      • 37 Answers
      • 0 Best Answers
      • 92 Points
      View Profile
      nektomk
      2020-12-18T09:48:54+00:00Added an answer on December 18, 2020 at 9:48 am

      Sysmart:

      Written by
      Expert Advisor, tested, everything seems to be fine, BUT!

      it’s scary to use a large amount of money for it, i would like to provide for all sorts of unforeseen situations in the market that
      are. For example: gap, slippage, all sorts of errors.

      Please advise what situations are possible and, if possible, how to protect it in the code?

      geps, slips and spread dances should be taken into account in the owl algorithm and the libraries used.

      and besides, do not keep on the account the amounts more required in the work of the adviser (that is, it is not about signals and pamm – if for yourself)

      Focus on the minimum value of freemargin for a reasonable (for comfortable deposits/withdrawals) period.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    8. sysmart

      sysmart

      • 2 Questions
      • 2 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      sysmart
      2020-12-18T09:48:50+00:00Added an answer on December 18, 2020 at 9:48 am

      Evgeniy Zhdan:

      Just after onTick (), insert return and you’ll be safe

      Brilliant! I hope you’ve run out of ideas!

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    9. trendhunter

      trendhunter

      • 0 Questions
      • 22 Answers
      • 0 Best Answers
      • 66 Points
      View Profile
      trendhunter
      2020-12-22T07:03:08+00:00Added an answer on December 22, 2020 at 7:03 am

      Sysmart:

      Written by
      Expert Advisor, tested, everything seems to be fine, BUT!

      it’s scary to use a large amount of money for it, i would like to provide for all sorts of unforeseen situations in the market that
      are. For example: gap, slippage, all sorts of errors.

      Please advise what situations are possible and, if possible, how to protect it in the code?

      Just after onTick (), insert return and you’ll be safe

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 514
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 921
    • Popular
    • Answers
    • Tags
      • On: December 18, 2020
      • Answers: 16

      How to allow trading at certain times

      • On: December 29, 2020
      • Answers: 16

      Example of implementing the OOP pattern Abstract Factory using MQL5 ...

      • On: December 18, 2020
      • Answers: 15

      EMA with a different formula

      • On: December 29, 2020
      • Answers: 15

      Invitation for algo traders.

      • On: December 29, 2020
      • Answers: 14

      Dear Programmers, do not pass by, help fix the error!

    • atma1
      atma1 added an answer Added activation. Thanks. April 8, 2021 at 6:54 am
    • iks_
      iks_ added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • renat
      renat added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • mvs
      mvs added an answer Renat Fatkhullin: You can not immediately send the received data,… April 8, 2021 at 6:53 am
    • anton_m
      anton_m added an answer Renat Fatkhullin: How much data do you read? You can… April 8, 2021 at 6:53 am
    analytics british company computer developers django employee employer english facebook french google interview javascript language life php proforexea programmer programs pro vsa salary university

    Users

    atma1

    atma1

    • 1 Question
    • 1 Answer
    s22aa

    s22aa

    • 1 Question
    • 1 Answer
    areedbreen

    areedbreen

    • 1 Question
    • 1 Answer

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved