
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
Before calling OrderModify, check if you are calling the update with the new data or if you are trying to set existing values.
-----------------------
2007.09.08 17:47
on EURUSD:60
17:38:34 2007.01.04 00:01 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:02 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:03 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:04 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:04 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:06 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:06 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:06 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:06 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:06 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:06 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:07 stalker_2 EURUSD,H4: OrderModify error 1
17:38:34 2007.01.04 00:08 stalker_2 EURUSD,H4: OrderModify error 1
0 min 49 seconds
Errors: 20
-----------------------
Please correct your Expert Advisor code and upload a new version to your profile page:
I think your robot has gone crazy, it seems it has a lot of participants :-) It has already mixed up Expert Advisors. I've got an Expert Advisor that does not write "stalker_2" in comments and works on hourly chart. And the OrderModify command does not use it at all.
The error message "OrderModify error 1" means calling OrderModify with unchanged parameters, which is due to inaccurate programming.
Before calling OrderModify, please check if you are calling the update with new data or if you are trying to set already existing values.
maybe you mean the construction ?
if ( RefreshRates() == true )
{
....
OrderModify(Ticket,...
}
in my trawl
Resresh() after each order modification in the loop
Breakeven after 35 pips profit
external variables, smallest value
FirstTralStopSell = 35;
subsequent trall after reaching 50 pips
i do not quite understand how this error can occur - i have no such error on tests
it is possible that after issuing the OrderModify command, the testing system emulates requotes in such a way that the price has time to return by more than 50 pips
but then how to avoid such a situation?
besides my LOGS do not show up in the log file given out by the testing system!
if (err != 0 )
{
if ( ECHOerror == 1 )
Print("Error("+err+") Open="+OrderOpenPrice()+""+OrderStopLoss()+" modifying SL: "+(Ask+Point*FirstTralStopSell)+" TP "+(0)+""+msgErrors(err));
}
The error message "OrderModify error 1" means OrderModify was called with unchanged parameters, which is due to inaccurate programming.
Before calling OrderModify, check if you are calling the update with new data or if you are trying to set existing values.
After introducing the construct
terminal version 208 does not work at all in tests
RefreshRates() == true ?
LocalDinamicTrallBUY = 50;
entry to trall
there must be some subtleties... I don't know about
The error message "OrderModify error 1" means OrderModify is called with unchanged parameters, which is due to inaccurate programming.
Before calling OrderModify, check if you're calling the update with new data or if you're trying to set existing values.
maybe you mean the construction ?
This means that you are trying to set the same StopLoss value in OrderModify that was already there. For example, if the StopLoss is 1.3020 and you try to set the stop again at 1.3020, OrderModify will return code 1. This is explicitly stated in OrderModify documentation:
Note: The open price and expiration time can only be changed for pending orders.
If unchanged values are passed as parameters to the function, an error 1 (ERR_NO_RESULT) will be generated.
On some trade servers, a ban on expiry of pending orders may be set. In this case an error 147 (ERR_TRADE_EXPIRATION_DENIED) will be generated when trying to set a non-zero value in the expiration parameter.
The error message "OrderModify error 1" means an OrderModify call with unchanged parameters, which is due to inaccurate programming.
Before calling OrderModify, check if you are calling the update with new data or if you are trying to set already existing values.
maybe you mean the construction ?
What is meant is that you are trying to set the same StopLoss value in OrderModify that was already there. For example, if the StopLoss is 1.3020 and you try to set the stop again at 1.3020, OrderModify will return code 1. This is explicitly stated in OrderModify documentation:
Note: The open price and expiration time can only be changed for pending orders.
If unchanged values are passed as parameters to the function, an error 1 (ERR_NO_RESULT) will be generated.
On some trade servers, a ban on expiry of pending orders may be set. In this case an error 147 (ERR_TRADE_EXPIRATION_DENIED) will be generated when trying to set a non-zero value in the expiration parameter.
WOW!!! exactly!!! Renat thanks!
added trall entry condition
&& OrderStopLoss() != Ask+Point*LocalDinamicTrallSELL
But there were no errors in my logs during testing! - this is very strange
I think your robot has gone crazy, I think it has a lot of participants :-) It has already started to confuse EAs. My EA does not write "stalker_2" in the comments, it works on the hourly chart. And the OrderModify command does not use it at all.
i.e. twice i have been emailed that the exponent has passed the test and i am registered... and the third time it says I have an error in the code... why should I change the code of the Expert Advisor once I have uploaded it to the profile?