Market Validation Problems - page 2

 
  1. Sultan Sobuctageen #:

    Hello Dear Friends, I have managed to pass the MQL5 Market Validation for my MT4 TEST EA, it has overcome multiple errors like proper order send, proper order close, invalid volume checks error 131 and insufficient funds, EA code is attached here for you reference, thanks.

    Why did you post your MT4 question post in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2.     double price = Ask;
        double sl = price - StopLoss * Point;
        double tp = price + TakeProfit * Point;
    

    You buy at the Ask and sell at the Bid. Pending Buy Stop orders become market orders when hit by the Ask.

    1. Your buy order's TP/SL (or Sell Stop's/Sell Limit's entry) are triggered when the Bid / OrderClosePrice reaches it. Using Ask±n, makes your SL shorter and your TP longer, by the spread. Don't you want the specified amount used in either direction?

    2. Your sell order's TP/SL (or Buy Stop's/Buy Limit's entry) will be triggered when the Ask / OrderClosePrice reaches it. To trigger close at a specific Bid price, add the average spread.
                MODE_SPREAD (Paul) - MQL4 programming forum - Page 3 #25

    3. The charts show Bid prices only. Turn on the Ask line to see how big the spread is (Tools → Options (control+O) → charts → Show ask line.)

      Most brokers with variable spreads widen considerably at end of day (5 PM ET) ± 30 minutes.
      My GBPJPY shows average spread = 26 points, average maximum spread = 134.
      My EURCHF shows average spread = 18 points, average maximum spread = 106.
      (your broker will be similar).
                Is it reasonable to have such a huge spreads (20 PIP spreads) in EURCHF? - General - MQL5 programming forum (2022)

 
Hello, knowing that you're working on Validation Errors in MQL5 Market, do you know where I can get a complete demo code that meets the market's requirements? Thanks.
 
Eduardo Torcuato Mariategui Mattiussi #:
Hello, knowing that you're working on Validation Errors in MQL5 Market, do you know where I can get a complete demo code that meets the market's requirements? Thanks.

There are general information about - 

1. The checks a trading robot must pass before publication in the Market - the article

2. Solving Automatic Validation Problems Arising During Product Submission in MQL5 Market - blog post

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.