u have to Select the order (OrderSelect())
What currency pair are you using ? What is the value of Long.stop ? ? the value for SL and TP are price values not pip or point values . . . slippage is set in pips.
Hi RaptorUK,
I use EUR/USD.
For instance I bought last friday:
Long_TradePattern EURUSD,M1: open #5 buy 0.50 EURUSD at 1.3802 sl: 1.3764 tp: 1.4102 ok
Long.stop is for instance: Stop 1.3765
The stop should be changed every 10 minutes.
Then I get this error: : OrderModify error 130
As I mentioned in my previous post, for the Short-side it works.
Kind regards,
Hoschie
Can you show your code where Long.Stop comes from for use in the OrderModify please.
Can you Print the value of Long.Stop just before the OrderModify.
calc = (Long.stop / 100) * 0.01;
myDigits = MarketInfo(Symbol(),MODE_DIGITS);
Long.stop = NormalizeDouble(Long.stop + calc,myDigits);
Print("Long.Stop before OrderModify", Long.Stop);
Hoschie:
2011.09.18 13:01:52 2011.09.12 01:09 Long_TradePattern EURUSD,M1: Long.Stop before OrderModify1.3567
2011.09.18 13:01:52 2011.09.12 01:09 Long_TradePattern EURUSD,M1: Long.Stop before OrderModify1.3567
ho, u cant change anything now (market closed)

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
Hi experts,
I create two EAs 1 for Long of currency pair EUR/USD and 1 for Short of EUR/USD.
So, I create a method, that should change every ten minutes the StopLoss. However, for the Short-side it works, but for the Long-Side I
get always the OrderModify Error 130. I do not understand why? I use the following code snippet which should solve this issue:
Thanks for your support,
Hoschie