Bob and Jem and Shelley's Pivot Basket auto-trader

Share your 10.x automated traders here.
Post Reply
User avatar
Mike
Trader
Posts: 272
Joined: Sun Dec 11, 2011 12:30 pm
Location: Italy

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by Mike »

harry45 wrote:
Mike wrote:
harry45 wrote: I have no trades with v1j up to now OOTB.
Set "OnlyAddToOpenBasket" = false and it will start trading
...EA is looking for trade conditions(suppose so).
What is your criminal and how many pairs are available? Mine-Cowboy Go Markets-25 pairs.
Regards
ACM - I trade 24 pairs:
AUDCAD,AUDCHF,AUDNZD,AUDJPY,AUDUSD,CADJPY,CHFJPY,EURAUD,
EURCAD,EURCHF,EURGBP,EURJPY,EURUSD,GBPAUD,GBPCAD,GBPCHF,
GBPJPY,GBPUSD,NZDUSD,NZDJPY,USDCAD,USDCHF,USDJPY,XAUUSD
I need some rest (midnight overhere), I am rather frustrated that I am not able to get this EA doing what it is supposed to do, sorry, regards
Image
Image
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: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by SteveHopwood »

Lifesys wrote:Hi
Finding same problem. This EA is dangerous.
It operated fine for a week, taking a couple of trades when kicked with TF change.
Friday I noticed iExposure acting funny & realised BJS had opened & closed 100 trades for spread loss in 5 mins approx 1200GMT.
BJS fired again today (Mon) and started the same open/close at approx 0500GMT.
I believe it requires split level conditional open & close to prevent transients & fluctuations.
Is this either of V1i or V1j?

: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.
harry45
Trader
Posts: 158
Joined: Fri Nov 18, 2011 11:36 am
Location: Russia,St.Petersburg

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by harry45 »

SteveHopwood wrote:
Lifesys wrote:Hi
Finding same problem. This EA is dangerous.
It operated fine for a week, taking a couple of trades when kicked with TF change.
Friday I noticed iExposure acting funny & realised BJS had opened & closed 100 trades for spread loss in 5 mins approx 1200GMT.
BJS fired again today (Mon) and started the same open/close at approx 0500GMT.
I believe it requires split level conditional open & close to prevent transients & fluctuations.
Is this either of V1i or V1j?

:D
Steve,
something wrong with v1j,numerous trades.The only opend pair -EG.Broker-Cowboy Go Markets
You do not have the required permissions to view the files attached to this post.
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: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by SteveHopwood »

harry45 wrote:
SteveHopwood wrote:
Lifesys wrote:Hi
Finding same problem. This EA is dangerous.
It operated fine for a week, taking a couple of trades when kicked with TF change.
Friday I noticed iExposure acting funny & realised BJS had opened & closed 100 trades for spread loss in 5 mins approx 1200GMT.
BJS fired again today (Mon) and started the same open/close at approx 0500GMT.
I believe it requires split level conditional open & close to prevent transients & fluctuations.
Is this either of V1i or V1j?

:D
Steve,
something wrong with v1j,numerous trades.The only opend pair -EG.Broker-Cowboy Go Markets
What were your AllowAdditionsToBasket and OnlyAddToOpenBasket inputs set to?

: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.
harry45
Trader
Posts: 158
Joined: Fri Nov 18, 2011 11:36 am
Location: Russia,St.Petersburg

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by harry45 »

AllowAdditionsToBasket=true,OnlyAddToOpnBasket=false
AGT
Trader
Posts: 889
Joined: Thu Nov 17, 2011 7:20 pm
Location: Germany

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by AGT »

the same here: noumerous trades for EURGBP, small losses (0.02 lot, 2500 EUR, 20 pairs)
inputs:
AllowAdditionsToBasket=true - and OnlyAddToOpenBasket=false

v1j / Cowboy IBFX AU
Last edited by AGT on Tue Jul 17, 2012 11:47 pm, edited 1 time in total.
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: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by SteveHopwood »

harry45 wrote:AllowAdditionsToBasket=true,OnlyAddToOpnBasket=false
Thanks. clearly still a problem with this function.

A quick fix is to set AllowAdditionsToBasket to false. It is the code that allows the trades to be sent individually that is at fault. It is sending them incorrectly, then bjs is closing them correctly.

No idea why. For now, just accept that it doesn't work yet.

: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.
garyfritz

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by garyfritz »

I also tried OnlyAddToOpenBasket=false and got constant in/out trades -- EURGBP on MBT, half a dozen pairs on Cowboy IBFX.

I ran 1j since Sunday night with OnlyAddToOpenBasket=true and got no trades.
User avatar
Mike
Trader
Posts: 272
Joined: Sun Dec 11, 2011 12:30 pm
Location: Italy

Re: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by Mike »

perhaps useful: the bot v1j displays 0% even if you define "MinimumPercentOfBasket"=60% or 80%
Yesterday I had set "MinimumPercentOfBasket"=60%, during some time 6 out of 9 pairs saddisfied all criteria, but nothing happened as long as I did not set "OnlyAddToOpenBasket"=false. hmm... but then as you already know, uncountable repeating trades.
Just wondering: Is there any reason, why there is no option ECN=true/false
Image
Image
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: Bob and Jem and Shelley's Pivot Basket auto-trader

Post by SteveHopwood »

V 1k in post 1. Fixed the percentage display problem; that was LUC inviting his buddies around for morning coffee.

I am surprised LUC and his pals had time for morning coffee given the bender they were on with the open/close trade thingy. The problem turned out to be in CountOpenTrades.

In this code, bjs would close an individual trade if the previous H4 candle closed the wrong side of the pivot, yet closing the wrong side of the pivot is one of the conditions for sending an individual trade in the first place. As usual, bjs was being his usual well-behaved self.

Code: Select all

  //Check for a close on the wrong side of the daily pivot
	  CalculatePivots(OrderSymbol() );
	  if (OrderType() == OP_BUY && iClose(OrderSymbol(), PERIOD_H4, 1) < DailyPivot)
	  {
			result = CloseTrade(OrderTicket() );
			if (result) cc++;
	  }//if (OrderType() == OP_BUY && iClose(OrderSymbol(), Period_H4, 1) < DailyPivot)
	  
	  if (OrderType() == OP_SELL && iClose(OrderSymbol(), PERIOD_H4, 1) > DailyPivot)
	  {
			result = CloseTrade(OrderTicket() );
			if (result) cc++;
	  }//if (OrderType() == OP_BUY && iClose(OrderSymbol(), Period_H4, 1) < DailyPivot)
I have tried enclosing the code within a trade open time check, so it will only look at the close 1 candle ago if the trade opened before that. This should do the trick.

Code: Select all

//Check for a close on the wrong side of the daily pivot
      if (OrderOpenTime() <= iTime(OrderSymbol(), PivotCrossTimeFrame, 1)  )
      {
         CalculatePivots(OrderSymbol() );
         if (OrderType() == OP_BUY && iClose(OrderSymbol(), PivotCrossTimeFrame, 1) < DailyPivot)
         {
               result = CloseTrade(OrderTicket() );
               if (result) cc++;
         }//if (OrderType() == OP_BUY && iClose(OrderSymbol(), Period_H4, 1) < DailyPivot)
         
         if (OrderType() == OP_SELL && iClose(OrderSymbol(), PivotCrossTimeFrame, 1) > DailyPivot)
         {
               result = CloseTrade(OrderTicket() );
               if (result) cc++;
         }//if (OrderType() == OP_BUY && iClose(OrderSymbol(), Period_H4, 1) < DailyPivot)
       }//if (OrderOpenTime() < iTime(OrderSymbol(), PivotCrossTimeFrame, 1)  )
I will not be around much today - busy with the day job of pianisticking. Give this version a whirl and see if it does the job.

: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.
Post Reply

Return to “10.x EA forum”