MultiBob, a multi symbol NB10.2(a) autotrader
-
fxarun
- Trader
- Posts: 41
- Joined: Tue Feb 07, 2012 10:21 am
- Location: Chennai India
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.
"It's not the strongest species that survive, nor the most intelligent, but the one most responsive to change"
-- Darwin.
-- Darwin.
- 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
thank you FxArun,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.
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
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
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
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.
-- Darwin.
-
blahn
- Trader
- Posts: 53
- Joined: Wed Nov 30, 2011 2:39 am
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.
update, make that 9 H4 audnzd trades..
-
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
Hi Paul & cuzgeorge
yes as a number of providers use "GOLD", the standard PFactor routine I use in all EAs is
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
then use lot instead of Lot in eg.
bool result = SendSingleTrade(symbol, OP_BUY, TradeComment, lot, 0, 0);
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);
}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 Silverbool result = SendSingleTrade(symbol, OP_BUY, TradeComment, lot, 0, 0);
- babalu4u
- Trader
- Posts: 173
- Joined: Fri Apr 13, 2012 6:52 pm
- Location: Slovenia - EU
Re: MultiBob, a multi symbol NB10.2(a) autotrader
Hi Baluda,
Great work! I start testing your EA. And now I have this error....
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.
- babalu4u
- Trader
- Posts: 173
- Joined: Fri Apr 13, 2012 6:52 pm
- Location: Slovenia - EU
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.
You do not have the required permissions to view the files attached to this post.
- 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
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 bebabalu4u 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.
Code: Select all
if ( useATRStopLoss )
{
atr = iATR( symbolNames[symbolIndex], atrTimeFrame, atrPeriod, atrShift );
stop = NormalizeDouble( price + atr, digits );
}
George
- babalu4u
- Trader
- Posts: 173
- Joined: Fri Apr 13, 2012 6:52 pm
- Location: Slovenia - EU
Re: MultiBob, a multi symbol NB10.2(a) autotrader
The problem is only with the BB Range trades.
- 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
I had the problem appear with other trades too. If you are using the atr stop, it skips the trade type specific stop loss.babalu4u wrote:The problem is only with the BB Range trades.
George