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 14 of 53
Author:  gaheitman [ Tue Sep 25, 2012 3:40 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

garyfritz wrote:MultiBob just entered a position, and the TP is the same as the entry price??
I had the same trade trigger on cable as well. It seems as if the following code must be getting run, but I can't figure out why. (It's in calculateTakeProfit() at the end of the OP_BUY section.)

Code: Select all

      if ( take > EPSILON && take - ask <= stoplevel / factor )
      {
         take = ask + ( stoplevel / factor );
      }
My stoplevel is zero, so the TP is set to the ask price when this code is run.

BTW, any chance we can change this test to see if take >= point instead of using the EPSILON value? I doubt it matters here, but it is valid to check against the lowest possible value of the currency pair.

George
Author:  garyfritz [ Tue Sep 25, 2012 3:51 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

Lifesys wrote:Another 10.2 EA adds >20% on our account often, but then we turn it off for 2-3 weeks - others abandoned it as "did not work". Trend trading is for when there are clear trends. The other EA indicates 'no trades' at present - for good reason.
Which 10.2 EA was that? I didn't think any of the 10.2 bots had showed any serious promise yet. I'd be interested in an EA that drops 20% into my account every now and then. :D (As long as it didn't follow it up by blowing 30%...)
Another refinement I have pointed out on many threads is the 'maxSpread' inconsistency.

Code: Select all

MarketInfo( symbolNames[symbolIndex], MODE_SPREAD )
does NOT give spread in pips, hence default maxSpread = 120; instead of 12 (pips).
(Ask-Bid) * Pipfactor always gives spread in pips, so replace
No, it gives a fabrication of an approximation of spread. Try comparing it to the actual Ask-Bid and you'll see there's little relationship between the two. I've never checked but I'd bet the MODE_SPREAD value is a constant.
Author:  gaheitman [ Tue Sep 25, 2012 4:18 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

garyfritz wrote:[
No, it gives a fabrication of an approximation of spread. Try comparing it to the actual Ask-Bid and you'll see there's little relationship between the two. I've never checked but I'd bet the MODE_SPREAD value is a constant.
I can confirm it changes (on Cowboy IBFX). I don't know what drives the change, but I would think that it is close to Ask-Bid. I'm naive that way. ;)

George
Author:  garyfritz [ Tue Sep 25, 2012 4:35 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

Hm. Well I just tested it, and MODE_SPREAD matched MODE_ASK-MODE_BID perfectly. I checked Bid-Ask too, and that didn't match perfectly, but it was never off by more than 0.1 for just a moment.

Strange. I know I've compared them before and they were way off. Umm, I wonder if it's crim-specific? Last time I checked it I was on PFG...
Author:  houston [ Tue Sep 25, 2012 7:09 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

garyfritz wrote:MultiBob just entered a position, and the TP is the same as the entry price??
Almost same situation here TP at +0.00001 pip of Buy price :?
Author:  fmuir [ Tue Sep 25, 2012 7:40 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

Hello Paul,

Thanks for putting the MultiBob EA together. You have done, as always, a superior job of programming. I just acquired 1.0.2 yesterday and I noticed immediately how clean and orderly the programming was.

I have encountered, what I suspect is, a problem with the CalculatedTakeProfit function. I have had three GbpUsd buy trades close in profit. However, the takeprofit calculation for the BB Range trade showed a difference of 35.9 pips (359 points) between opening price and takeprofit and it closed with a profit of $11.49. The other two trades were D1 Trend that showed a difference of 0.2 pips (2 points) between opening price and takeprofit, and they closed with a profit of $0.08 each.

I am using a %Risk of 1%. The BB Range trade ran for 17 hours, while each of the D1 Trend trades only ran for 2 minutes.

Using 1.0.1, which I just also just acquired yesterday, I encountered another problem (which caused 127 trades in 2 hours, all closing for losses) for AudNzd. The 1.0.2 version doesn't exhibit that probem.

Regards,
-Frank
Author:  chobbes [ Tue Sep 25, 2012 9:19 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

I concur with a lot of what's been said here already, Baluda - what a great piece of work and very clean code. I have setup 1.02 running last night with OOTB settings except for lot size of 0.1 - am running on Alpari and will keep you posted on progress and issues.
Author:  Baluda [ Tue Sep 25, 2012 9:54 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

New version Multibob v1.0.3 in post 1.
Changes
  • Introduced symbolValues index names, useful for coders only
  • Fixed small bug in getWoh function
  • Fixed order of display items
  • Improved maximum spread test, TY (in alphabetical order ;) ) Gary, George, Paul
Notes
  • When downloading and starting a new version of MultiBob, please delete all old MultiBob .ex4 files from your experts folder. Keeping them can, and probably will confuse Empty4.
  • Please provide more information on possible bugs than 'it does not trade' or 'it does not work'. Nobody can help you with that kind of general questions. Be specific.
Keep calm and gain pips.

Paul
Author:  Forexperiments [ Tue Sep 25, 2012 10:26 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

If I update, does the new version recognize the old version trades and continue to manage them?
(I'm in demo, so I don't really care about losing that trades, but it's just to have nice stats)
Author:  alex_forex [ Tue Sep 25, 2012 10:30 am ]
Post subject:  Re: MultiBob, a multi symbol NB10.2(a) autotrader

Thanks for the update Paul :D
All times are UTC Page 14 of 53