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 3180
Next
In Process
krungsri
krungsri

krungsri

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

mt5 mresult error:4756

  • 0


2019.01
.20 16:44:45.510 Core 01 2015.02.13 16:36:04   failed market buy 0.01 EURUSD sl: 1.14001 tp: 1.17311 [Invalid stops]
2019.01.20 16:44:45.510 Core 01 2015.02.13 16:36:04   Alert: The Buy order request could not be completed -error:4756
2019.01.20 16:44:45.510 Core 01 2015.02.13 16:36:04   price=1.140110 sl=1.140010 tp=1.173110 lots=0.010000 sprd=0.000140
I can’t understand why it won’t open the order.

At the same time, if the spread is less than 1.0 pips, it opens normally. 

2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   deal #2969 sell 0.03 EURUSD.DUKAS at 1.34799 done (based on order #2969)
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   deal performed [#2969 sell 0.03 EURUSD.DUKAS at 1.34799]
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   order performed sell 0.03 at 1.34799 [#2969 sell 0.03 EURUSD.DUKAS at 1.34800]
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   market buy 0.02 EURUSD.DUKAS sl: 1.34794 tp: 1.37204 (1.34799 / 1.34804 / 1.34799)
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   deal #2970 buy 0.02 EURUSD.DUKAS at 1.34804 done (based on order #2970)
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   deal performed [#2970 buy 0.02 EURUSD.DUKAS at 1.34804]
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   order performed buy 0.02 at 1.34804 [#2970 buy 0.02 EURUSD.DUKAS at 1.34804]
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42   Alert: A Buy order has been successfully placed with Ticket#:2970!!
2019.01.20 17:00:53.865 Core 01 2014.01.31 15:52:42 104 price=1.348040 sl=1.347940 tp=1.372040 lots=0.020000 sprd=0.000050


This is the opening code

         mrequest.action = TRADE_ACTION_DEAL;                                  // immediate order execution
         mrequest.price = NormalizeDouble(latest_price.ask,_Digits);           // latest ask price
         mrequest.sl = NormalizeDouble(latest_price.ask - STP*_Point,_Digits); // Stop Loss
         mrequest.tp = NormalizeDouble(latest_price.ask + split[i]*100*_Point,_Digits); // Take Profit
         mrequest.symbol = _Symbol;                                            // currency pair
         mrequest.volume = Lot*bet[i];                                                 // number of lots to trade
         mrequest.magic = EA_Magic;                                             // Order Magic Number
         mrequest.type = ORDER_TYPE_BUY;                                        // Buy Order
         mrequest.type_filling = ORDER_FILLING_FOK;                             // Order execution type
         mrequest.deviation=100;                                                // Deviation from current price

Stop level 0, tried different brokers, different quotes.

  • 3 3 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    3 Answers

    • Voted
    • Oldest
    • Recent
    1. krungsri

      krungsri

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

      Aleksey Lebedev:
      Does not open if the SL-stoporder sell is higher than the current bid. I.e., the stop loss should be executed immediately upon opening.

      Made the conclusion of the bid. Yes, sometimes it happens, probably at night. 

      Thank you the question is gone 😉

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

      swan

      • 0 Questions
      • 2 Answers
      • 0 Best Answers
      • 24 Points
      View Profile
      swan
      2020-12-26T13:15:45+00:00Added an answer on December 26, 2020 at 1:15 pm

      Stanislav Perin:

      I can’t understand why it won’t open the order.

      At the same time, if the spread is less than 1.0 pips, it opens normally. 

      Does not open if the SL-stoporder sell is higher than the current bid. I.e., the stop loss should be executed immediately upon opening.

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

      fxsaber

      • 1 Question
      • 54 Answers
      • 0 Best Answers
      • 134 Points
      View Profile
      fxsaber
      2020-12-26T13:15:39+00:00Added an answer on December 26, 2020 at 1:15 pm

      Write a short playback code and the data to run it in the Tester.

      • 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 681
    • 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

    • Brus Agell

      Правельный выбор

      • 0 Answers
    • pinupcasinoo

      Pin Up Casino

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

      Optimization results differ on different accounts

      • 3 Answers

    Users

    Leonardcig

    Leonardcig

    • 0 Questions
    • 0 Answers
    DennisByday

    DennisByday

    • 0 Questions
    • 0 Answers
    Haroldmeary

    Haroldmeary

    • 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