
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
Sorry, but I have difficulty believing that you are checking the Freeze Level and Stops Levels properly, because from your original post it was clear you were not aware of them, and simply stating "etc." shows that you don't even know what other checks you need to do, or else you would have referenced them.
If you want us to help check your code then you are going to have to show your code. Just because you "say" you are doing it does not mean you are doing it correctly. If you don't want to show your code, then you will have to debug it and figure it yourself and try to find what it is doing wrong.
抱歉,但我很难相信您正在正确检查冻结级别和停止级别,因为从您的原始帖子中可以清楚地看出您不知道它们,并且只是说“等”。表明您甚至不知道您需要执行哪些其他检查,否则您会引用它们。
如果您希望我们帮助检查您的代码,那么您将不得不展示您的代码。仅仅因为你“说”你在做这件事并不意味着你做对了。如果您不想显示您的代码,那么您将不得不调试它并自己弄清楚它并尝试找出它做错了什么。
I did try everything and had no problems running EA on MT5. The code is posted, please help me to have a look, thank you!
No! You can't just interchange Stops Levels and Freeze Levels. They are completely different concepts and limits.
StopLevel Minimum Distance Limitation.
A trade operation will not be performed if any of the following conditions is disrupted.
FreezeLevel Limitation (Freezing Distance).
Market orders can not be closed if the StopLoss and TakeProfit values violate the FreezLevel parameter requirements.
StopLoss or TakeProfit orders can not be modified if StopLoss or TakeProfit values violate the StopLevel parameter requirements.
Pending orders can not be deleted or modified if the declared open price violates the FreezeLevel parameter requirements.
Also read the following in detail ... The checks a trading robot must pass before publication in the Market
Especially these points:
另请详细阅读以下内容...交易机器人在市场上发布之前必须通过的检查
尤其是这几点:
You are very detailed, it is very useful indeed, thank you very much!
Do not double post!
I have deleted your duplicated topic.
I recalculated STOPLEVEL and FREEZELEVEL according to the method provided in the article, but it still couldn't pass directly. I had to add some extra points. At present, I added 50 points to pass the verification, but it was wrong for my trading system. Who can help me to see if there is a problem with the code? Thanks very much!
StopLevel Minimum Distance Limitation.
A trade operation will not be performed if any of the following conditions is disrupted.
FreezeLevel Limitation (Freezing Distance).
Market orders can not be closed if the StopLoss and TakeProfit values violate the FreezLevel parameter requirements.
StopLoss or TakeProfit orders can not be modified if StopLoss or TakeProfit values violate the StopLevel parameter requirements.
Pending orders can not be deleted or modified if the declared open price violates the FreezeLevel parameter requirements.
Hi Fernando, I think this is a great (concise but clear) description of stops level and freeze level.
I just have one question:
If the stops level would be zero but the freeze level would be non-zero, is it possible to modify SL/TP of position if the price is too close (inside the freeze zone of SL/TP) to the SL/TP?
I don't think it is possible to modify SL/TP in such a case, but I could be wrong and I am not able to verify this because my broker has both stops level and freeze level equal to zero. Unless I am wrong, it would probably be better to complete the sentence as follows:
Market orders can not be closed or modified if the StopLoss and TakeProfit values violate the FreezLevel parameter requirements.
Thanks in advance (to whomever) for clarification.
@Petr Nosek #: Hi Fernando, I think this is a great (concise but clear) description of stops level and freeze level. I just have one question:
If the stops level would be zero but the freeze level would be non-zero, is it possible to modify SL/TP of position if the price is too close (inside the freeze zone of SL/TP) to the SL/TP?
I don't think it is possible to modify SL/TP in such a case, but I could be wrong and I am not able to verify this because my broker has both stops level and freeze level equal to zero. Unless I am wrong, it would probably be better to complete the sentence as follows:
Market orders can not be closed or modified if the StopLoss and TakeProfit values violate the FreezLevel parameter requirements.
Thanks in advance (to whomever) for clarification.
That text was not my own. It was quoted from the old MQL4 book appendix ... Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
Unfortunately, the MQL5 documentation has no such information in an updated and concise format, at least of which I know.
That text was not my own. It was quoted from the old MQL4 book appendix ... Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
Unfortunately, the MQL5 documentation has no such information in an updated and concise format, at least of which I know.
Thanks for the answer.
My understanding is that when opening an order we have to watch the distance (Stops Level) of the opening price from the Bid/Ask and when opening an order/position we have to watch the distance (Stops Level) of the SL and TP from the opening price or position. There is no need to watch the Freeze Level when opening an order/position.
When closing/deleting/modifying an order/position, we need to watch the Freeze Level and do not need to watch the Stops Level.
By the way, what about STOP_LIMIT orders? I assume that when placing such an order we need to watch the stop level from the stoplimit price to the opening price.