jiva34's BB Stop auto-trader

Post Reply
User avatar
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

curious to see how this is affected by FIFO.. for us inmates of the USA.
User avatar
Hitescape
Posts: 2
Joined: Thu Nov 17, 2011 1:14 am
Location: Treasure Coast

Re: jiva34's BB Stop auto-trader

Post by Hitescape »

I'm using MB Traders and am getting an error 130 alert with every trade. I do have CriminallsECN set to true and none of the orders have TP or SL entries. I believe I am using jivas version with everything set to false but without version identification it is difficult to be sure. After losing over 300 pips on the M15 in 3 days last week I started on the M1 today but it is still losing. Am I the only one that is not getting profitable trades?
I don't know if I have a slitting headache or a split personality.
User avatar
jiva34
Trader
Posts: 49
Joined: Tue Nov 15, 2011 1:26 pm

Re: jiva34's BB Stop auto-trader

Post by jiva34 »

Hitescape wrote:I'm using MB Traders and am getting an error 130 alert with every trade. I do have CriminallsECN set to true and none of the orders have TP or SL entries. I believe I am using jivas version with everything set to false but without version identification it is difficult to be sure. After losing over 300 pips on the M15 in 3 days last week I started on the M1 today but it is still losing. Am I the only one that is not getting profitable trades?
I see what you mean... In the Empty4 tester no problem opens and closes just fine with stop 50, limit 50 jump 30, be 5 and 15

but live on demo invalid stop message, error 130.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: jiva34's BB Stop auto-trader

Post by gaheitman »

I just dropped it on an Cowboy IBFX demo and it is taking orders correctly. I see the initial order without SL/TP, and then the modify order sets it correctly. Is the error coming after the initial order or the modify. Here is what I have in my logs for an order.

Code: Select all

2011.11.21 02:34:05	'7085658': order #103914037 buy 0.02 AUDJPY at 76.593 was modified -> sl: 75.987 tp: 77.187
2011.11.21 02:34:05	'7085658': request in process
2011.11.21 02:34:05	'7085658': request was accepted by server
2011.11.21 02:34:04	'7085658': modify order #103914037 buy 0.02 AUDJPY at 76.593 sl: 0.000 tp: 0.000 -> sl: 75.987 tp: 77.187
2011.11.21 02:34:04	'7085658': order was opened : #103914037 buy 0.02 AUDJPY at 76.593 sl: 0.000 tp: 0.000
2011.11.21 02:34:04	'7085658': request in process
2011.11.21 02:34:04	'7085658': request was accepted by server
2011.11.21 02:34:04	'7085658': order buy market 0.02 AUDJPY sl: 0.000 tp: 0.000
Do you want to send me your set file so I can make sure I have all the same settings?

George
jiva34 wrote:
Hitescape wrote:I'm using MB Traders and am getting an error 130 alert with every trade. I do have CriminallsECN set to true and none of the orders have TP or SL entries. I believe I am using jivas version with everything set to false but without version identification it is difficult to be sure. After losing over 300 pips on the M15 in 3 days last week I started on the M1 today but it is still losing. Am I the only one that is not getting profitable trades?
I see what you mean... In the Empty4 tester no problem opens and closes just fine with stop 50, limit 50 jump 30, be 5 and 15

but live on demo invalid stop message, error 130.
prakash.jj
Posts: 5
Joined: Wed Nov 16, 2011 1:32 am

Re: jiva34's BB Stop auto-trader

Post by prakash.jj »

Hi,

I am experiencing a different issue, where I am getting trade context busy/time out errors using this EA.

I am trading this demo and have enabled ECN as well. Is there a way to increase the retry may be with few sec gap to make sure, it takes the trades.

Thanks,
Prakash
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: jiva34's BB Stop auto-trader

Post by gaheitman »

Are you getting orders without SL/TP, or are they not getting placed at all?
prakash.jj wrote:Hi,

I am experiencing a different issue, where I am getting trade context busy/time out errors using this EA.

I am trading this demo and have enabled ECN as well. Is there a way to increase the retry may be with few sec gap to make sure, it takes the trades.

Thanks,
Prakash
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: jiva34's BB Stop auto-trader

Post by gaheitman »

Looking at the SendSingleTrade() code, it doesn't seem to be retrying to send on a failure. Near the bottom of the procedure is the error check:

Code: Select all

      //Error trapping for both
      if (ticket < 0)
      {
         string stype;
         if (type == OP_BUY) stype = "OP_BUY";
         if (type == OP_SELL) stype = "OP_SELL";
         if (type == OP_BUYLIMIT) stype = "OP_BUYLIMIT";
         if (type == OP_SELLLIMIT) stype = "OP_SELLLIMIT";
         if (type == OP_BUYSTOP) stype = "OP_BUYSTOP";
         if (type == OP_SELLSTOP) stype = "OP_SELLSTOP";
         int err=GetLastError();
         Alert(Symbol(), " ", WindowExpertName(), " ", stype," order send failed with error(",err,"): ",ErrorDescription(err));
         Print(Symbol(), " ", WindowExpertName(), " ", stype," order send failed with error(",err,"): ",ErrorDescription(err));
         return(false);  //<-----
      }//if (ticket < 0) 
The "return(false)" statement at the end of the loop effectively makes this a one and done call. Comment that out, and you should get up to 10 tries to send an order.

The retry exit code is just above this test, and it should probably be moved to after the test so that if we should happen to fail the max number of times, we'll still see the last error message. Which will no doubt be very similar to the previous messages :>.

If that doesn't help, let me know and I'll take another look.

George
gaheitman wrote:Are you getting orders without SL/TP, or are they not getting placed at all?
prakash.jj wrote:Hi,

I am experiencing a different issue, where I am getting trade context busy/time out errors using this EA.

I am trading this demo and have enabled ECN as well. Is there a way to increase the retry may be with few sec gap to make sure, it takes the trades.

Thanks,
Prakash
User avatar
bobasker
Trader
Posts: 60
Joined: Tue Nov 15, 2011 10:12 pm
Location: I come from the land Downunder...

Re: jiva34's BB Stop auto-trader

Post by bobasker »

Xfinity
Trader
Posts: 19
Joined: Thu Nov 17, 2011 4:43 pm
Location: Sweden

Re: jiva34's BB Stop auto-trader

Post by Xfinity »

bobasker wrote:Some sweet trades...

http://my.jetscreenshot.com/5637/201111 ... -141kb.jpg
Nice trades Bobasker. Love your setup/template. Care to share? :)
User avatar
bobasker
Trader
Posts: 60
Joined: Tue Nov 15, 2011 10:12 pm
Location: I come from the land Downunder...

Re: jiva34's BB Stop auto-trader

Post by bobasker »

Xfinity wrote:
bobasker wrote:Some sweet trades...

http://my.jetscreenshot.com/5637/201111 ... -141kb.jpg
Nice trades Bobasker. Love your setup/template. Care to share? :)
Sure, no problem
jiva's bb stop auto-trader.tpl
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Automated trading systems”