stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

MultiBob, a multi symbol NB10.2(a) autotrader
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=827
Page 2 of 53
Author:  fxarun [ Wed Sep 19, 2012 9:55 pm ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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.
Author:  cuzgeorge [ Wed Sep 19, 2012 10:05 pm ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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
Author:  fxarun [ Wed Sep 19, 2012 10:20 pm ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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
Author:  blahn [ Thu Sep 20, 2012 1:59 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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.
Author:  Lifesys [ Thu Sep 20, 2012 3:08 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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);
Author:  babalu4u [ Thu Sep 20, 2012 3:09 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

Hi Baluda,
Great work! I start testing your EA. And now I have this error....
Author:  babalu4u [ Thu Sep 20, 2012 3:18 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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.
Author:  gaheitman [ Thu Sep 20, 2012 4:02 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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
Author:  babalu4u [ Thu Sep 20, 2012 4:34 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

The problem is only with the BB Range trades.
Author:  gaheitman [ Thu Sep 20, 2012 4:47 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

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
All times are UTC Page 2 of 53