Discussion of article "How to Post a Product in the Market" - page 48
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
My EA returns an error when registering a new product:
test on EURUSD,H1 (netting) 2020.04.15 15:47:05 failed modify #44 sell 0.2 EURUSD sl: 1.08929, tp: 1.08599 -> sl: 1.08919, tp: 1.08599 [Modification failed due to order or position being close to market]
But my EA is meant to run on WIN$, not forex. Why doesn't the tester let you know which asset to run?
Now how can I correct something that has no error, because the EA is running perfectly, I just can't register the product for sale.
My EA returns an error when registering a new product:
test on EURUSD,H1 (netting) 2020.04.15 15:47:05 failed modify #44 sell 0.2 EURUSD sl: 1.08929, tp: 1.08599 -> sl: 1.08919, tp: 1.08599 [Modification failed due to order or position being close to market]
But my EA is meant to run on WIN$, not forex. Why doesn't the tester let you know which asset to run?
Now how can I correct something that has no error, because the EA is running perfectly, I just can't register the product for sale.
The robot must be prepared to work on any asset....
To correct the error mentioned above, you must carry out the check below before modifying the position:
See other checks that should be carried out by the robot in the article below:
What tests should a trading robot pass before being published on the Market - MQL5 Articles
Hi, I am unable to edit the product description on one of my old products.
Followed the instructions on the various forums including writing the description afresh, hiding it from the market so on and so forth but the description still reverts to the original version.
Now I can no longer restore the product on the market neither can I edit it. I have requested assistance on the forums related to this issue but no assistance as of yet.
How do I resolve this issue of "Not being able to edit product description?" Please assist
When loading the Expert Advisor and testing it writes an error, I don't understand how to correct it.
test on EURUSD,H1 (netting)
2020.04.14 00:24:42 failed instant buy 0.01 EURUSD at 1.09044 [Invalid volume]
2020.04.14 00:24:45 failed instant buy 0.01 EURUSD at 1.09044 [Invalid volume]
2020.04.14 00:24:48 failed instant buy 0.01 EURUSD at 1.09037 [Invalid volume]
2020.04.21 00:01:34 failed instant buy 0.01 EURUSD at 1.08626 [Invalid volume]
2020.04.21 00:01:37 failed instant buy 0.01 EURUSD at 1.08626 [Invalid volume]
2020.04.21 00:01:40 failed instant buy 0.01 EURUSD at 1.08626 [Invalid volume]
2020.04.27 16:08:24 failed instant sell 0.01 EURUSD at 1.08546 [Invalid volume]
2020.04.27 16:08:27 failed instant sell 0.01 EURUSD at 1.08548 [Invalid volume]
2020.04.27 16:08:30 failed instant sell 0.01 EURUSD at 1.08547 [Invalid volume]
2020.04.29 20:15:52 failed instant sell 0.01 EURUSD at 1.08565 [Invalid volume]
2020.04.29 20:15:55 failed instant sell 0.01 EURUSD at 1.08566 [Invalid volume]
2020.04.29 20:15:58 failed instant sell 0.01 EURUSD at 1.08566 [Invalid volume]
2020.05.18 00:12:09 failed instant buy 0.01 EURUSD at 1.08134 [Invalid volume]
2020.05.18 00:12:12 failed instant buy 0.01 EURUSD at 1.08134 [Invalid volume]
2020.05.18 00:12:15 failed instant buy 0.01 EURUSD at 1.08143 [Invalid volume]
2020.05.21 15:50:25 failed instant sell 0.01 EURUSD at 1.10031 [Invalid volume]
2020.05.21 15:50:28 failed instant sell 0.01 EURUSD at 1.10034 [Invalid volume]
2020.05.21 15:50:31 failed instant sell 0.01 EURUSD at 1.10036 [Invalid volume]
2020.05.25 19:00:05 failed instant buy 0.01 EURUSD at 1.08950 [Invalid volume]
2020.05.25 19:00:08 failed instant buy 0.01 EURUSD at 1.08951 [Invalid volume]
2020.05.25 19:00:11 failed instant buy 0.01 EURUSD at 1.08952 [Invalid volume]
there are no trading operations
When loading the Expert Advisor and testing it writes an error, it is not clear how to correct it.
test on EURUSD,H1 (netting)
2020.04.14 00:24:42 failed instant buy 0.01 EURUSD at 1.09044 [Invalid volume]
***
Read it, put it in the code
Incorrect volumes in trade operations
Before sending trade orders, it is also necessary to check if the volumes specified in the order are correct. The number of lots that the Expert Advisor is going to specify in the order should be checked before calling the OrderSend() function. For financial instruments, theSpecification specifies the minimum and maximum allowed volumes for trading, as well as the volume gradation. You can get these values in MQL5from the ENUM_SYMBOL_INFO_DOUBLE enumeration using theSymbolInfoDouble() function.
Didn't help, can I fix some other code?
Can you tell me how to refine the script?
Read it, put it in the code
Incorrect volumes in trade operations
Before sending trade orders, it is also necessary to check if the volumes specified in the order are correct. The number of lots that the Expert Advisor is going to specify in the order should be checked before calling the OrderSend() function. For financial instruments, theSpecification specifies the minimum and maximum allowed volumes for trading, as well as the volume gradation. These values can be obtained in MQL5from the ENUM_SYMBOL_INFO_DOUBLE enumeration using theSymbolInfoDouble() function
Didn't help, can I fix some other code?
Can you tell me how to refine the script?
Read the article completely, 'CheckVolumeValue' is a check of correctness of input parameters.
And there is also a check of correct lot rounding ...
Taking into account the volume of the open position and the volume in pending orders, the final check will look like this:
add?
checkvolumevalue.mq5 as it is written here
add?
checkvolumevalue.mq5 as it is written here
All the necessary checks are in the article Almost a constructor for creating an EA
Is the code asked about earlier suitable?
You could write the necessary lines from the article.