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 748
In Process
sofohka
sofohka

sofohka

  • 1 Question
  • 0 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
sofohka
Asked: December 18, 20202020-12-18T09:45:11+00:00 2020-12-18T09:45:11+00:00

The robot opens a trade when the candle is opened.

  • 0

Who knows where to find a robot that will open trades when opening a candle.

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

    2 Answers

    • Voted
    • Oldest
    • Recent
    1. nektomk

      nektomk

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

      only time_bar is not static and not inside the method, in general it is better to take an application library,get used to a good one 🙂

      the above code is correct, but only for the tester, to quickly check the idea.

      in reality, it gives a bug that you will catch later, about restarts of the adviser and the terminal.

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

      iks_

      • 1 Question
      • 28 Answers
      • 0 Best Answers
      • 76 Points
      View Profile
      iks_
      2020-12-22T07:03:16+00:00Added an answer on December 22, 2020 at 7:03 am

      void OpenPosition(void)
        {
         static datetime time_bar = 0;
         datetime _time_bar = iTime(_Symbol, PERIOD_CURRENT, 0);
         if(time_bar == _time_bar)
            return;
         time_bar = _time_bar;
      //---
        }

      • 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 504
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 674
    • 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

    Users

    RobertFoeta

    RobertFoeta

    • 0 Questions
    • 0 Answers
    Brus Agell

    Brus Agell

    • 1 Question
    • 0 Answers
    pinupcasinoo

    pinupcasinoo

    • 1 Question
    • 0 Answers

    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