Simple Bob
- matt_32
- Trader
- Posts: 204
- Joined: Tue Apr 03, 2012 8:51 am
- Location: Crete, Greece
Re: Simple Bob
SB placed an order, in EURUSD, a few mins ago and just noticed that the TP is "weird".
You do not have the required permissions to view the files attached to this post.
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
- matt_32
- Trader
- Posts: 204
- Joined: Tue Apr 03, 2012 8:51 am
- Location: Crete, Greece
Re: Simple Bob
I seem to get this error again and again, and don't know why.
Can anyone help?
Can anyone help?
You do not have the required permissions to view the files attached to this post.
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Re: Simple Bob
Hi Matt,
maybe you should try different Magicnumbers for each pair..
Cheers
Tommaso
maybe you should try different Magicnumbers for each pair..
Cheers
Tommaso
-
MrLong
Re: Simple Bob
matt_32 wrote:I seem to get this error again and again, and don't know why.
Can anyone help?
If the broker is GP, you have ECN set to false, the error says, take profit modifaction, so the error must be from the second part of the SendOrder, when the TP and SL are entered.
I used to get this error with the 10.4 Multitrader, but that was trying to enter Buystops too close.
Andy
-
RxCape
- Trader
- Posts: 68
- Joined: Sun Mar 04, 2012 8:10 pm
Re: Simple Bob
Now I am befuddled and confused as well. I am also getting the Error 130 message. The order is placed, the SL and TP are both set, but I keep getting the error every few seconds.
I was not getting this error in the previous version. I am using ILQ in the USA as my broker. ILQ is an ECN. Any ideas ?
I was not getting this error in the previous version. I am using ILQ in the USA as my broker. ILQ is an ECN. Any ideas ?
You do not have the required permissions to view the files attached to this post.
-
MrLong
Re: Simple Bob
The error appears to be coming from CountOpenTrades function.RxCape wrote:Now I am befuddled and confused as well. I am also getting the Error 130 message. The order is placed, the SL and TP are both set, but I keep getting the error every few seconds.
I was not getting this error in the previous version. I am using ILQ in the USA as my broker. ILQ is an ECN. Any ideas ?
Code: Select all
if (!CloseEnough(OrderTakeProfit(), lp) && !(CloseEnough(lp, 0)))
{
result = OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), NormalizeDouble(lp, Digits), OrderExpiration(), CLR_NONE);
if (!result) ReportError(" CountOpenTrades ", tpm);
ObjectSet(tpline, OBJPROP_PRICE1, NormalizeDouble(lp, Digits) );
}//if (!CloseEnough(OrderTakeProfit(), lp) )
}//if (MaxTradesAllowed > 1) -
FXTrucker
- Trader
- Posts: 45
- Joined: Wed Dec 07, 2011 4:26 am
Re: Simple Bob
I got the same error.matt_32 wrote:I seem to get this error again and again, and don't know why.
Can anyone help?
Would using normalize double on take and stop in the modify order module eliminate these occurrences of this mql quirk?
There are 10 kinds of people who understand binary. Those who do and those who don't.
- matt_32
- Trader
- Posts: 204
- Joined: Tue Apr 03, 2012 8:51 am
- Location: Crete, Greece
Re: Simple Bob
MrLong wrote:matt_32 wrote:I seem to get this error again and again, and don't know why.
Can anyone help?
If the broker is GP, you have ECN set to false, the error says, take profit modifaction, so the error must be from the second part of the SendOrder, when the TP and SL are entered.
I used to get this error with the 10.4 Multitrader, but that was trying to enter Buystops too close.
Andy
Hi Andy
I used both settings ECN true & ECN false, but I get the same error every time.
Matt
"Wise men speak because they have something to say; Fools because they have to say something." - Plato 347 BC
-
RxCape
- Trader
- Posts: 68
- Joined: Sun Mar 04, 2012 8:10 pm
Re: Simple Bob
I am not following the logic well enough to make a change to fix the error. For the time being, until the smart people show up, I have commented out the Reporting command line. the EA compiles and runs and does not keep putting up the error messages with each tick.
TAKE NOTE: I have NOT fixed the issue. I have simply addressed the symptom of the error message continuing to display.
Attached is a version with the reporting line commented out. Use it with the knowledge that the logic is not yet fixed. you just won't be annoyed by the error message box popping up.
DISREGARD: My editing did not work completely. back to the drawing board.
TAKE NOTE: I have NOT fixed the issue. I have simply addressed the symptom of the error message continuing to display.
Attached is a version with the reporting line commented out. Use it with the knowledge that the logic is not yet fixed. you just won't be annoyed by the error message box popping up.
DISREGARD: My editing did not work completely. back to the drawing board.
-
taipan
- Trader
- Posts: 355
- Joined: Sat Feb 16, 2013 11:27 am
Re: Simple Bob
RxCape wrote:I am not following the logic well enough to make a change to fix the error. For the time being, until the smart people show up, I have commented out the Reporting command line. the EA compiles and runs and does not keep putting up the error messages with each tick.
TAKE NOTE: I have NOT fixed the issue. I have simply addressed the symptom of the error message continuing to display.
Attached is a version with the reporting line commented out. Use it with the knowledge that the logic is not yet fixed. you just won't be annoyed by the error message box popping up.
DISREGARD: My editing did not work completely. back to the drawing board.
I am having the same errors as well. My solution is go to ea property on that particular currency pair and hit on the common tab, tick the "Disable alert once hit". This will get rid the continuous alert temporarily. Hope someone can fix the error soonest.