Simple Bob

Post Reply
MrLong

Re: Simple Bob

Post by MrLong »

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

Post by RxCape »

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 ?
You do not have the required permissions to view the files attached to this post.
MrLong

Re: Simple Bob

Post by MrLong »

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 ?
The error appears to be coming from CountOpenTrades function.

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

Post by FXTrucker »

matt_32 wrote:I seem to get this error again and again, and don't know why.
Can anyone help?
I got the same error.

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.
User avatar
matt_32
Trader
Posts: 204
Joined: Tue Apr 03, 2012 8:51 am
Location: Crete, Greece

Re: Simple Bob

Post by matt_32 »

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

Post by RxCape »

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.
taipan
Trader
Posts: 355
Joined: Sat Feb 16, 2013 11:27 am

Re: Simple Bob

Post by taipan »

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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Simple Bob

Post by SteveHopwood »

Looks like an incorrect shriek.

Scite line 2448:
if (!CloseEnough(OrderTakeProfit(), lp) && !(CloseEnough(lp, 0)))

and move the shriek inside the bracket:
if (!CloseEnough(OrderTakeProfit(), lp) && (!CloseEnough(lp, 0)))

then recompile. See if this solves the problem.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
RxCape
Trader
Posts: 68
Joined: Sun Mar 04, 2012 8:10 pm

Re: Simple Bob

Post by RxCape »

Sorry to say that did not work. I am also getting the error on pending trades. Sorry I can't be of more help in locating the error.
You do not have the required permissions to view the files attached to this post.
MrLong

Re: Simple Bob

Post by MrLong »

SteveHopwood wrote:Looks like an incorrect shriek.

Scite line 2448:
if (!CloseEnough(OrderTakeProfit(), lp) && !(CloseEnough(lp, 0)))

and move the shriek inside the bracket:
if (!CloseEnough(OrderTakeProfit(), lp) && (!CloseEnough(lp, 0)))

then recompile. See if this solves the problem.

:D
Hi Steve,

Did you notice this posts TP are both the same and are 2 different pairs?

http://www.stevehopwoodforex.com/phpBB3 ... &mode=view

They both have the TP of the NZDJPY.

Andy
Post Reply

Return to “Automated trading systems”