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
Home/ Questions/Q 3060
Next
In Process
al_ta_ir
al_ta_ir

al_ta_ir

  • 1 Question
  • 1 Answer
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
al_ta_ir
Asked: December 26, 20202020-12-26T13:09:28+00:00 2020-12-26T13:09:28+00:00In: Forex Expert Advisors

Flows on a single account

  • 0

Good
First post on the forum, trading level-2 (10), programming level-4 (10) (subjective)


An adviser was needed. Ordered on the fl. A man was found. Compose. But something is wrong. And (as usual), fell out of sight (emergency in telegram, etc.). So, maybe here you can find the answer.



There is one account. There is an algorithm-an employee who will conduct trading. This is not the main thing. The main thing is below

And there is also an algorithm Manager that looks at how much the total balance is and how much reserve is issued for one flow of work of one algorithm worker. This is necessary in order not to open several accounts (maybe >50), but to maintain several such flows on one account. For example, there is a balance of$12,800. If I allocate 1000 reserves for one thread, then the algorithm Manager opens 12 threads, in which 12 algorithms-workers work. But that they work separately from each other. If in the process, in General, a new 1000 is collected from all threads and the balance balance (that is, it becomes 13000), then a new thirteenth thread is opened. But each of the flows cannot exceed the losses more than the specified reserve (which is specified in this case in 1000). As soon as it burns the reserve, so the thread stops its work and all threads become 1 less. It works either indefinitely – if it is profitable, or until there is enough balance to open at least one stream with the specified reserve for it. To make it clearer, streams have the same frame (ridge), but they can be at different steps. That is, if I finish the missing $ 350, and at this time the threads were on the third step (for example), then the new thread that opens will be on the first step of the worker algorithm.

Thanks. I apologize if I broke anything

  • 2 2 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. al_ta_ir

      al_ta_ir

      • 1 Question
      • 1 Answer
      • 0 Best Answers
      • 20 Points
      View Profile
      al_ta_ir
      2020-12-26T13:09:37+00:00Added an answer on December 26, 2020 at 1:09 pm

      Alexey Viktorov:

      Nothing supernatural if you work on a hedge account or various instruments of any type of account.

      It is probably better to add a variable to the adviser as an acceptable balance and all the cases. And it is very important to understand what the adviser should do if he closed his positions with a profit.

      Could you help me?

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

      alexeyvik

      • 1 Question
      • 74 Answers
      • 0 Best Answers
      • 172 Points
      View Profile
      alexeyvik
      2020-12-26T13:09:33+00:00Added an answer on December 26, 2020 at 1:09 pm

      Artem Oleynik:

      Good

      First post on the forum, trading level-2 (10), programming level-4 (10) (subjective)


      An adviser was needed. Ordered on the fl. A man was found. Compose. But something is wrong. And (as usual), fell out of sight (emergency in telegram, etc.). So, maybe here you can find the answer.


      There is one account. There is an algorithm-an employee who will conduct trading. This is not the main thing. The main thing is below

      And there is also an algorithm Manager that looks at how much the total balance is and how much reserve is issued for one flow of work of one algorithm worker. This is necessary in order not to open several accounts (maybe >50), but to maintain several such flows on one account. For example, there is a balance of$12,800. If I allocate 1000 reserves for one thread, then the algorithm Manager opens 12 threads, in which 12 algorithms-workers work. But that they work separately from each other. If in the process, in General, a new 1000 is collected from all threads and the balance balance (that is, it becomes 13000), then a new thirteenth thread is opened. But each of the flows cannot exceed the losses more than the specified reserve (which is specified in this case in 1000). As soon as it burns the reserve, so the thread stops its work and all threads become 1 less. It works either indefinitely – if it is profitable, or until there is enough balance to open at least one stream with the specified reserve for it. To make it clearer, streams have the same frame (ridge), but they can be at different steps. That is, if I finish the missing $ 350, and at this time the threads were on the third step (for example), then the new thread that opens will be on the first step of the worker algorithm.

      Thanks. I apologize if I broke anything

      Nothing supernatural if you work on a hedge account or various instruments of any type of account.

      It is probably better to add a variable to the adviser as an acceptable balance and all the cases. And it is very important to understand what the adviser should do if he closed his positions with a profit.

      • 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 505
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 689
    • Popular
    • Comments
    • Tags
    • forexcommunity

      Highlighting what’s important about questions & Answers on Discy Community!

      • 0 Comments
    • forexcommunity

      Introducing Keyboard Shortcuts, our first Labs feature

      • 0 Comments
    • forexcommunity

      Defining quality on Discy Engine — what a helpful answer ...

      • 0 Comments
    • forexcommunity

      Organizational and company accounts on Discy Engine the next step

      • 0 Comments
    • forexcommunity

      Hello world!

      • 0 Comments

    Related Questions

    • starleynsk

      SYMBOL_POINT or how to get the tick size

      • 2 Answers
    • avos

      What's wrong? possible loss of data due to type conversion

      • 5 Answers
    • worh

      pass a value from one Expert Advisor to another

      • 9 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 2 Answers
    • c00l777

      During optimization, indicators that are not present in the robot ...

      • 0 Answers

    Users

    Lindatar

    Lindatar

    • 0 Questions
    • 0 Answers
    sgarnov

    sgarnov

    • 0 Questions
    • 1 Answer
    alexandrim

    alexandrim

    • 0 Questions
    • 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