MultiBob, a multi symbol NB10.2(a) autotrader

Share your 10.x automated traders here.
Post Reply
fxarun
Trader
Posts: 41
Joined: Tue Feb 07, 2012 10:21 am
Location: Chennai India

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by fxarun »

you have to replace the symbol name as Gold for XAUUSD and Silver for XAGUSD in the EA as it searches the string for XAU and XAG and since it couldnt find that with your broker it uses default value.
"It's not the strongest species that survive, nor the most intelligent, but the one most responsive to change"
-- Darwin.
User avatar
cuzgeorge
Trader
Posts: 674
Joined: Mon Mar 05, 2012 10:10 am
Location: Johannesburg, South Africa.

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by cuzgeorge »

fxarun wrote:you have to replace the symbol name as Gold for XAUUSD and Silver for XAGUSD in the EA as it searches the string for XAU and XAG and since it couldnt find that with your criminal it uses default value.
thank you FxArun,
Ill change but something happened when i checked my settings.
I closed the platform after removing it and hiding the dollar index in the market symbols section.
i opened the MBob in the editor.
Checked all and confirmed my set file.
Added some display changes only.
compiled and restarted Empty4.

Now i dont see any of the metals and obviously the dollar index.
I'm happy to leave it like this, but is this right?
Thanks,
cuzgeorge
You do not have the required permissions to view the files attached to this post.
10.X, BMac,Xmeter,Marylin,and CaptsNakedTrading thread coupled with Slowkeys Intraday setup for manual trades.
http://www.stevehopwoodforex.com/phpBB3 ... f=36&t=848
fxarun
Trader
Posts: 41
Joined: Tue Feb 07, 2012 10:21 am
Location: Chennai India

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by fxarun »

Hi cuzgeorge Please check whether you have enabled autosymbols = true and Your market watch wiindow has those metal symbols Gold,silver and platinum.
Rest everything is fine as it correctly factored the JPY pairs.

Thanks
Arun
"It's not the strongest species that survive, nor the most intelligent, but the one most responsive to change"
-- Darwin.
blahn
Trader
Posts: 53
Joined: Wed Nov 30, 2011 2:39 am

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by blahn »

H4 Trend may have a problem. Just had 4 audnzd H4 trades fire off at the same time.

update, make that 9 H4 audnzd trades.. :) first 2 fired off, then closed. then 3 more fired off and closed, and now 4 more came up.
Lifesys
Trader
Posts: 126
Joined: Wed Apr 25, 2012 2:05 am
Location: Echuca Victoria. Australia

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by Lifesys »

Hi Paul & cuzgeorge
yes as a number of providers use "GOLD", the standard PFactor routine I use in all EAs is

Code: Select all

double PFactor(string pair)
  {
     double Pipfactor = 10000;     // correct factor for most pairs
	  if (StringFind(pair,"JPY",0) != -1 || StringFind(pair,"XAG",0)  != -1) 
		Pipfactor = 100;      // if jpy or silver
	  if (StringFind(pair,"XAU",0) != -1 || StringFind(pair,"GOLD",0) != -1) 
         	Pipfactor = 10;       // if gold
   return (Pipfactor);
  }
but you can put any commodity in this universal routine.
Also when trading Silver, with most providers lots are *5, so in trade routine I use

Code: Select all

  double lot = Lot;
           if (StringFind(symbol,"XAG",0)  != -1) lot = Lot/5; // check for Silver
then use lot instead of Lot in eg.
bool result = SendSingleTrade(symbol, OP_BUY, TradeComment, lot, 0, 0);
User avatar
babalu4u
Trader
Posts: 173
Joined: Fri Apr 13, 2012 6:52 pm
Location: Slovenia - EU

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by babalu4u »

Hi Baluda,
Great work! I start testing your EA. And now I have this error....
You do not have the required permissions to view the files attached to this post.
User avatar
babalu4u
Trader
Posts: 173
Joined: Fri Apr 13, 2012 6:52 pm
Location: Slovenia - EU

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by babalu4u »

And look at this...EA put 2 pips stop lose I think the EA want to set 20 pips...my criminal is 5 digits mybe for this.
You do not have the required permissions to view the files attached to this post.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by gaheitman »

babalu4u wrote:And look at this...EA put 2 pips stop lose I think the EA want to set 20 pips...my criminal is 5 digits mybe for this.
The problem is in calculateStopLoss() for sells only. When useATRStopLoss is true, the code is subtracting the atr from price instead of adding it. That section (again, under the type == OP_SELL section only) should be

Code: Select all

      if ( useATRStopLoss )
      {
         atr = iATR( symbolNames[symbolIndex], atrTimeFrame, atrPeriod, atrShift );
         stop = NormalizeDouble( price + atr, digits );
      }

George
User avatar
babalu4u
Trader
Posts: 173
Joined: Fri Apr 13, 2012 6:52 pm
Location: Slovenia - EU

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by babalu4u »

The problem is only with the BB Range trades.
User avatar
gaheitman
Trader
Posts: 655
Joined: Tue Nov 15, 2011 10:55 pm
Location: Richmond, VA, US

Re: MultiBob, a multi symbol NB10.2(a) autotrader

Post by gaheitman »

babalu4u wrote:The problem is only with the BB Range trades.
I had the problem appear with other trades too. If you are using the atr stop, it skips the trade type specific stop loss.

George
Post Reply

Return to “10.x EA forum”