Problem with the SL of the blocks "By Now" and "Sell Now"
-
Hello FxDreema! Today I was doing a test with my EA and saw that the times he does not trigger the SL of the orders. I'm using SL for 5 pips, because it is the least that the Broker allows. I tried to also increase the Slippage, but with the same problem. What should be happening?
-
SL exists on the chart and the price seems to reach it, but is not triggered? Or it cannot be created?
-
SL is not triggered. Happened to trigger 50 pips SL, and not 5 pips as I have created the EA. When he does not trigger 5 pips SL, automatically triggers 50 pips SL but not configured to do this.
-
What about "Options->Current project options->Point format"? When it is 0.0001, 5 pips are 0.0005.
Do you receive error messages? -
My point format is 0.0001, and am on a 5 digit broker, which is 0.00001
I tried also to use emergency stops with 10 pips fixed the most, but even so is an order without SL.Yes, I get these error messages:
2013.02.11 23:49:04 2011.12.01 13:18 TCF CBBP and Tony 1.2 (2), EURUSD M1: Alert: New trade # 7 opened successfully, but failed to modify it's hard stops!
2013.02.11 23:49:04 2011.12.01 13:18 TCF CBBP and Tony 1.2 (2), EURUSD M1: OrderModify error 130
2013.02.11 23:49:04 2011.12.01 13:18 TCF CBBP and Tony 1.2 (2), EURUSD M1: OrderModify error 130
2013.02.11 23:49:04 2011.12.01 13:18 TCF CBBP and Tony 1.2 (2), EURUSD M1: OrderModify error 130
2013.02.11 23:49:04 2011.12.01 13:18 TCF CBBP and Tony 1.2 (2), EURUSD M1: OrderModify error 130
2013.02.11 23:49:04 2011.12.01 13:18 TCF CBBP and Tony 1.2 (2), EURUSD M1: OrderModify error 130Well, I'll send mine EA so that you can analyze.
I'm hanging on!
Even more!
-
Error 130 means that the level of SL or TP is not acceptable. I think it's because of broker's limit. Try to put SL or TP manually to see what is the real acceptable minimum

-
The minimum allowable SL is 5 pips. And this also happening to trigger the SL 50 pips do not know how, they do not set up to do this. I also set up the SL drive emergency with 10 pips SL, and still did not work the SL emergency.
-
Break even - this block simply puts SL to the level where OpenPrice is, and because this can lead to small losses, there is an option to put SL to level OpenPrice+Offset. You have offset of 2 pips and you wait to have 3 pips in profit to set the price to level OpenPrice+2pips... which is like putting SL of 1pip.
Error 130 comes from this block only. -
My strategy to use the BreakEven relies on it, reduce the risk as much as possible. But this has worked properly for me in this way. I have had no problems with that. But I'm having trouble with the SL, which the times has not worked. Not even the emergency 10 pips SL. Sometimes he puts 50 pips SL without I have authorized. What should I do to solve this problem?
What is OffSet?
-
In blocks 5 and 6, 100pips are used for SL and TP. I don't know how many pips you are using via Inputs of the EA, maybe 50, maybe something else, but I can see only values in the project you show.
Error 130 comes when you the EA tries to place SL < 5 pips, which happens from "Break Even" block. "Break even price offset" is where to put SL in relation to OpenPrice. By default it puts it on the OpenPrice (offset is 0). If offset is 2 pips, SL will be placed at OpenPrice+2pips. But you try to do that when the price is only 3 pips above OpenPrice.
Emergency stops are real SL and TP that can be placed when Virtual Stops are used, but in this project you are using normal hard stops, so there are no emergency stops. Virtual stops are horizontal lines only and the EA detects when to close the trade, but in case of internet or PC problems, emergency stops can be placed at some distance from virtual ones.
-
__In blocks 5 and 6, 100pips are used for SL and TP. I don't know how many pips you are using via Inputs of the EA, maybe 50, maybe something else, but I can see only values in the project you show.[/quote:zpu4r8o1]
Yes. I modified it within the platform for 5 pips SL, but sometimes has not worked unfortunately. But there were a few times.
__Error 130 comes when you the EA tries to place SL < 5 pips, which happens from "Break Even" block. "Break even price offset" is where to put SL in relation to OpenPrice. By default it puts it on the OpenPrice (offset is 0). If offset is 2 pips, SL will be placed at OpenPrice+2pips. But you try to do that when the price is only 3 pips above OpenPrice.[/quote:zpu4r8o1]
I have done it this way and it has worked, even with the error messages. While at BreakEven, this all ok.
__Emergency stops are real SL and TP that can be placed when Virtual Stops are used, but in this project you are using normal hard stops, so there are no emergency stops. Virtual stops are horizontal lines only and the EA detects when to close the trade, but in case of internet or PC problems, emergency stops can be placed at some distance from virtual ones.[/quote:zpu4r8o1]
Ok ... So what is the solution of this problem? Please could you do a backtest or test and check for yourself what can be the problem?
In block 5 and 6 will have 5 pips SL and TP of 1000
At BreakEven, in Pips on profit, and 3 Pips on profit offset 2.I believe that in this way you can see with my eyes as I see.
Once again, thank you!
-
In the broker I use (MT4 downloaded from MetaQuotes, MIG bank inculded with minimum lot of 0.1), in backtester I can place 5, 4, 3 or 2 pips SL/TP. When I try to put 1 pips SL/TP I receive error 130.
Just try what is the real minimum value at which you can put SL/TP, it's easy. It might be 10 pips, 6 pips, who knows... Don't rely on what the broker says, let's work with facts.
-
__Just try what is the real minimum value at which you can put SL/TP, it's easy. It might be 10 pips, 6 pips, who knows... Don't rely on what the broker says, let's work with facts.[/quote:3owib5n7]
Yes ... I am using the minimum allowed of SL, which is 5 pips. Yet the times and can't add this SL 5 pips, sometimes changing to 50 pips SL without my permission. This is the problem I'm having, and nothing more. Must always have 5 pips SL, and it works always.
-
Aah,.. well, in case of projects with use of optimization parameters, I can't help much. I see 100 pips, you tell that you use 5 pips, but who knows what MT4 uses, because MT4 writes temporary .ini file to save the last version of input parameters.
5 pips -> 50 pips can be caused because of incorrect calculations inside the EA. Using point format 0.001 instead of 0.0001. In this case, if you setup the EA for 6 pips, it should place 60 pips sometimes (10 times larger). Is that happen? Because if not, then the problem comes from the "TCF CBBP EA Tony 1.2.ini" file.
-
__Aah,.. well, in case of projects with use of optimization parameters, I can't help much. I see 100 pips, you tell that you use 5 pips, but who knows what MT4 uses, because MT4 writes temporary .ini file to save the last version of input parameters.
5 pips -> 50 pips can be caused because of incorrect calculations inside the EA. Using point format 0.001 instead of 0.0001. In this case, if you setup the EA for 6 pips, it should place 60 pips sometimes (10 times larger). Is that happen? Because if not, then the problem comes from the "TCF CBBP EA Tony 1.2.ini" file.[/quote:2irrmyg5]
I modified to 6 pips SL, and in the order "# 224 sell" did not work the SL.
Is it the slippage?
Good ... in this case I believe that I must put something SL emergency. -
I think I don't understand you

- What is the minimum SL size in pips that you can put to a trade? The real one, not what the broker says.
- If you say that you are using 5 pips, but sometimes you get 50 pips, is the similar thing happens when you are using 6 pips -> 60 pips over there?
- What do you mean by "emergency SL"? In fxDreema this term is used only when Virtual stops are used. Do you work with Virtual stops?
- Backtest or demo?
for slippage troubles I think I can't help much, because I am not an active trader, not a scalper, I never cared about this parameter, and I can admit that I don't get how slippage affects trading

-
__I think I don't understand you :)[/quote:psogoyhv]
First I apologize for poor English because I communicate via translator.__1. What is the minimum SL size in pips that you can put to a trade? The real one, not what the broker says.[/quote:psogoyhv]
In fact I would need 2.5 SL, but as the Broker allows only the minimum 5 pips, then I leave with 5 pips SL.__2. If you say that you are using 5 pips, but sometimes you get 50 pips, is the similar thing happens when you are using 6 pips -> 60 pips over there?[/quote:psogoyhv]
Tried with 6 pips SL, and haven't seen change SL to 60 pips. In fact, what happened is not triggering the SL of 6 pips.
In the case of 5 pips SL, happened without my permission to add a 50 pips SL, not to mention that I had a few orders that also did not work the SL of 5 pips. For me this a mystery that still do not know why this happened.__3. What do you mean by "emergency SL"? In fxDreema this term is used only when Virtual stops are used. Do you work with Virtual stops?[/quote:psogoyhv]
I'm still not working with virtual stops, but if I feel a need, I can think of to change. But at first I find it more practical to let the normal SL than the virtual, because it can not happen to close the order, I believe, due to the size of SL that I will choose. I say an emergency case these SL SL that use not be fired.__4. Backtest or demo?[/quote:psogoyhv]
Backtest that happened this problem. Already in the demo I have not had this problem.__for slippage troubles I think I can't help much, because I am not an active trader, not a scalper, I never cared about this parameter, and I can admit that I don't get how slippage affects trading :)[/quote:psogoyhv]
The slippage can sometimes happen not to leave open an order due to rapid price change, making it difficult for the order to be thrown at the exact price. She may not be thrown if you pass the value supported for slippage.Good ... and this! I see that already is getting tiresome this post. In short I need that never fail the SL, and if the case fails, should have another way to close the order for the sake of security.
Thanks again FxDreema.
-
Now 5 pips works sometimes, 6 pips - not at all

TeamViewer?
-
__Now 5 pips works sometimes, 6 pips - not at all

TeamViewer?[/quote:2zauc2qv]
Yes, I have TeamViewer. Including I'm online right now for him. I will send you my ID by private message.Even more!