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 931
In Process
fresto
fresto

fresto

  • 18 Questions
  • 18 Answers
  • 0 Best Answers
  • 24 Points
View Profile
  • 0
fresto
Asked: December 18, 20202020-12-18T09:56:58+00:00 2020-12-18T09:56:58+00:00

Buy a lot at a strange price

  • 0
Buy a lot at a strange price

i’m testing an expert advisor. I buy using the CTrade library using the Buy(1,NULL,0,0,0) method; I set the price to 0, so it should buy at the Ask price. As a
result, the candle has not gone anywhere yet, I buy at the opening, and he bought figs knows at what unprofitable price already. What can This Be? If I set
even the opening price in the method, it still buys at the curve price.

As you can see in the screenshot, the candle has not gone anywhere yet, and he buys very far from its opening.

  • 6 6 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    6 Answers

    • Voted
    • Oldest
    • Recent
    1. ya_programmer

      ya_programmer

      • 0 Questions
      • 23 Answers
      • 0 Best Answers
      • 68 Points
      View Profile
      ya_programmer
      2020-12-18T09:57:30+00:00Added an answer on December 18, 2020 at 9:57 am

      Fresto:

      strange, it turns out such a large spread, I thought there is a minimum of everything, almost point to point

      in the tester, you can set any spread

      at least in 4-pke

      but it is extremely undesirable to set less than the existing one

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

      b

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

      Vitalii Ananev:

      Candlesticks on the chart are displayed at the Bid price. 

      If it’s forex, then YES.

      If the instrument is exchange-traded (stocks, futures …) Then almost always the chart is based on flippers, which can differ significantly from bids.

      Judging by the price in the screenshot of the author, he clearly does not have forex.

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

      vitales

      • 1 Question
      • 22 Answers
      • 0 Best Answers
      • 66 Points
      View Profile
      vitales
      2020-12-22T07:02:41+00:00Added an answer on December 22, 2020 at 7:02 am

      Fresto:

      and, it turns out I can sell at this price ( opening candles), and buy at a completely different one?

      Buy at the Ask price sell at the Bid price. Candlesticks on the chart are displayed at the Bid price. Moreover, if you open a
      position with a market order, as a result of slippage, you can get positions at a price much worse than expected. If you
      need the execution of the order “penny to penny” then use limit orders.

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

      vogul

      • 0 Questions
      • 1 Answer
      • 0 Best Answers
      • 22 Points
      View Profile
      vogul
      2020-12-22T07:02:42+00:00Added an answer on December 22, 2020 at 7:02 am

      Good afternoon.

      i haven’t visited the forum for a long time.

      Open and close requests may contain a parameter that defines the open and close policy. How this will work when
      opening / closing a market position depends on the broker. The nearest price in the glass may be undesirable. Therefore, it is better to ask
      set the open/close price and handle the situation when the position does not pass for any reason.

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

      fresto

      • 18 Questions
      • 18 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      fresto
      2020-12-18T09:57:08+00:00Added an answer on December 18, 2020 at 9:57 am

      Vitalii Ananev:

      Candles are drawn at the bid price. 

      and, it turns out I can sell at this price ( opening candles), and buy at a completely different one?

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

      vitales

      • 1 Question
      • 22 Answers
      • 0 Best Answers
      • 66 Points
      View Profile
      vitales
      2020-12-22T07:02:42+00:00Added an answer on December 22, 2020 at 7:02 am

      Fresto:

      i’m testing an expert advisor. I buy using the CTrade library using the Buy(1,NULL,0,0,0) method; I set the price to 0, so it should buy at the Ask price. as a
      result, the candle has not gone anywhere yet, i buy at the opening, and he bought figs knows at what unprofitable price already. What can This Be? If I
      I even set the price
      opening in the method, it still buys at a curved price.

      As you can see in the screenshot, the candle has not gone anywhere yet, and he buys very far from its opening.

      Candles are drawn at the bid price. 

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

    JeffreySer

    JeffreySer

    • 1 Question
    • 0 Answers
    Jerrynug

    Jerrynug

    • 1 Question
    • 0 Answers
    Leonardcig

    Leonardcig

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