• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 5:20pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 5:20pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Nanningbob 4h trading system ver. 5.0 4,432 replies

Nanningbob 60x90 EA 3,920 replies

Require help amending Nanningbob v10 EA 0 replies

Help regarding NanningBob EA 27 replies

Nanningbob 4H trading system 2,017 replies

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 40
Attachments: BigBob: Nanningbob V10 auto-trading robot by SteveHopwood
Exit Attachments
Tags: BigBob: Nanningbob V10 auto-trading robot by SteveHopwood
Cancel

BigBob: Nanningbob V10 auto-trading robot by SteveHopwood

  • Last Post
  •  
  • 1 89Page 101112 19
  • 1 9Page 1011 19
  •  
  • Post #181
  • Quote
  • Aug 25, 2011 12:16pm Aug 25, 2011 12:16pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Got a logic problem.

Taking a buy as an example, BB finds a long trend trade trigger, with Carolco enabled, so it:

 

  1. Sends two buys, the second one with a tp.
  2. Sends a gird of pending buys, the first one to open at the tp of the second buy, the one with the tp.


So, with a gap of 20 pips between the original buy and the first grid, given a market price of, say, 1.5000:

 

  1. trade 1 has a tp at 1.5020
  2. trade 2 fills at 1.5020

Fine, except that the spread appears to stop this happening with total accuracy, and we end up with 3 buy trades open. So, my question is this: to make sure that the first grid trade fills at the tp of the buy trade, how do I include the spread in the calculations to allow this to happen? I am suffering a logic fuzz that makes a hangover look like health and happiness.

 
 
  • Post #182
  • Quote
  • Aug 25, 2011 12:34pm Aug 25, 2011 12:34pm
  •  Pinhead
  • | Joined Mar 2010 | Status: Member | 322 Posts
Quoting SteveHopwood
Disliked
Got a logic problem......

Ignored
Well, to me, this sounds perfectly logical. One buy (of the first two) is closed at the TP line. The other is still open. The cross of the TP line opens up two more. That makes three. Right?

This is the kind of stuff that locks up my brain quicker'n MT4 under a small load. Which is why I aborted my MQL4 education long ago.

Apologies if my response is less than helpful.
 
 
  • Post #183
  • Quote
  • Aug 25, 2011 12:43pm Aug 25, 2011 12:43pm
  •  rmyers
  • | Joined Aug 2006 | Status: Member | 317 Posts
Quoting SteveHopwood
Disliked
Got a logic problem.

Taking a buy as an example, BB finds a long trend trade trigger, with Carolco enabled, so it:

 

  1. Sends two buys, the second one with a tp.
  2. Sends a gird of pending buys, the first one to open at the tp of the second buy, the one with the tp.

So, with a gap of 20 pips between the original buy and the first grid, given a market price of, say, 1.5000:

 

  1. trade 1 has a tp at 1.5020
  2. trade 2 fills at 1.5020

Fine, except that the spread appears to stop this happening with total accuracy, and...

Ignored
Hi Steve,

I have to confess that I have not followed CarolCo closeley, so I might talk complete gibberish, but I will try to help.

Taking a long position as an example, we buy at the ask and sell at the bid. So to match an open with a take profit means the opening price will have to be at the bid + the spread. As the bid hits the tp, the ask will be at the bid + the spread. So if the bid is at 1.0000 and the spread is 2 pips, the ask will be at 1.0002 (unless the spread has widened due to news, low liquidity, etc).

I have not had much coffee today, so I am not even certain what I wrote is English, but I hope I have helped

Rick
 
 
  • Post #184
  • Quote
  • Aug 25, 2011 1:16pm Aug 25, 2011 1:16pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting rmyers
Disliked
Hi Steve,

I have to confess that I have not followed CarolCo closeley, so I might talk complete gibberish, but I will try to help.

Taking a long position as an example, we buy at the ask and sell at the bid. So to match an open with a take profit means the opening price will have to be at the bid + the spread. As the bid hits the tp, the ask will be at the bid + the spread. So if the bid is at 1.0000 and the spread is 2 pips, the ask will be at 1.0002 (unless the spread has widened due to news, low liquidity, etc).

I have not had much coffee...
Ignored
Thanks Rick. So: if the open price of the buy trade is 1.5000 and tp 1.5020 (20 pips) and the spread is 2 pips, then the pending price has to be 1.5022 i.e. Ask + TakeProfit + Spread.

Cheers.

 
 
  • Post #185
  • Quote
  • Aug 25, 2011 1:43pm Aug 25, 2011 1:43pm
  •  rmyers
  • | Joined Aug 2006 | Status: Member | 317 Posts
Quoting SteveHopwood
Disliked
Thanks Rick. So: if the open price of the buy trade is 1.5000 and tp 1.5020 (20 pips) and the spread is 2 pips, then the pending price has to be 1.5022 i.e. Ask + TakeProfit + Spread.

Cheers.

Ignored
Hi Steve,

Close. The TP will be hit at the bid price and the ask will be at bid + spread. So, to have a buy trigger at the same time as a sell (the TP), the buy price would be at bid + spread.

Rick
 
 
  • Post #186
  • Quote
  • Aug 25, 2011 1:50pm Aug 25, 2011 1:50pm
  •  rmyers
  • | Joined Aug 2006 | Status: Member | 317 Posts
Quoting rmyers
Disliked
Hi Steve,

Close. The TP will be hit at the bid price and the ask will be at bid + spread. So, to have a buy trigger at the same time as a sell (the TP), the buy price would be at bid + spread.

Rick
Ignored
Steve,

A good way to visualize this is to choose to display the ask line for a chart in the chart properties. Choose a pair with a wide spread, show the ask line (MT4 diplays the bid line by default) and watch the movements.

Rick
 
 
  • Post #187
  • Quote
  • Aug 25, 2011 2:09pm Aug 25, 2011 2:09pm
  •  lordorly
  • | Joined Apr 2008 | Status: Member | 60 Posts
Quoting hiredwhip
Disliked
Hi Steve,
This is right off the tower, No WFi....Pretty much dead on

Have a great week

whip
Ignored

Sorry, what version BigBob?


Thanks
Lordorly
 
 
  • Post #188
  • Quote
  • Aug 25, 2011 2:09pm Aug 25, 2011 2:09pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting rmyers
Disliked
Steve,

A good way to visualize this is to choose to display the ask line for a chart in the chart properties. Choose a pair with a wide spread, show the ask line (MT4 diplays the bid line by default) and watch the movements.

Rick
Ignored
Hehe. I spend huge chunks of my life like this. Tell you what; make it easy for me please?

My buy trade has a tp at 1.5000. What does the pending trade price have to be to open at the same time the buy hits tp?

 
 
  • Post #189
  • Quote
  • Aug 25, 2011 2:14pm Aug 25, 2011 2:14pm
  •  rmyers
  • | Joined Aug 2006 | Status: Member | 317 Posts
Quoting SteveHopwood
Disliked
Hehe. I spend huge chunks of my life like this. Tell you what; make it easy for me please?

My buy trade has a tp at 1.5000. What does the pending trade price have to be to open at the same time the buy hits tp?

Ignored
Therein lies the rub It is not the buy(ask) that hits the tp. It is the sell(bid). So your long position hits the TP when the bid is at the TP price. At that exact moment, the ask price will be at bid + spread.

Rick
 
 
  • Post #190
  • Quote
  • Aug 25, 2011 2:23pm Aug 25, 2011 2:23pm
  •  rmyers
  • | Joined Aug 2006 | Status: Member | 317 Posts
Quoting SteveHopwood
Disliked
Hehe. I spend huge chunks of my life like this. Tell you what; make it easy for me please?

My buy trade has a tp at 1.5000. What does the pending trade price have to be to open at the same time the buy hits tp?

Ignored
Hi Steve,

So let's say you place a market order at 1.5000 (the current ask). You set a TP of 1.5020. The position is closed when the bid hits 1.5020. Assuming the spread is 2 pips, when the TP is hit the ask will be at 1.5022. That is where the pending long needs to be.

Rick
 
 
  • Post #191
  • Quote
  • Aug 25, 2011 2:32pm Aug 25, 2011 2:32pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting rmyers
Disliked
Hi Steve,

So let's say you place a market order at 1.5000 (the current ask). You set a TP of 1.5020. The position is closed when the bid hits 1.5020. Assuming the spread is 2 pips, when the TP is hit the ask will be at 1.5022. That is where the pending long needs to be.

Rick
Ignored
Fantastic. Thanks.

Now, I would love to say, "Yes, that's what I thought" but I am well past thinking anything at all.

Cheers

 
 
  • Post #192
  • Quote
  • Edited 4:38pm Aug 25, 2011 2:51pm | Edited 4:38pm
  •  hiredwhip
  • | Joined Nov 2009 | Status: Member | 4,980 Posts
Quoting lordorly
Disliked
Sorry, what version BigBob?


Thanks
Lordorly
Ignored
I'm fairly sure its the one in post one at the moment.....But I can't see my network from where I am......

EDIT=====It is the post 157 update.....So it is the one in Post 1

whip
 
 
  • Post #193
  • Quote
  • Aug 25, 2011 5:13pm Aug 25, 2011 5:13pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Latest update in post 1, attempting to use the help Rick has given with the carolco grid prices. I am still not sure if this is correct, so we shall see.

If you do not use the grid, you do not need the update.

 
 
  • Post #194
  • Quote
  • Aug 25, 2011 6:14pm Aug 25, 2011 6:14pm
  •  hiredwhip
  • | Joined Nov 2009 | Status: Member | 4,980 Posts
Quoting SteveHopwood
Disliked
Latest update in post 1, attempting to use the help Rick has given with the carolco grid prices. I am still not sure if this is correct, so we shall see.

If you do not use the grid, you do not need the update.

Ignored
Hi Steve,
The bot is still running a great line......But I'm still Range trading because of the low Vol......All my pairs are below 30 Vol so its doing its thing.....It's OOTB except for MM, Swap and Pair Management and I also added allow range trades to go to Trend in case of a runaway.....It's been trading well and I'll run it this way tomorrow.......

Have a great evening

whip
Attached File(s)
File Type: pdf Strategy Tester_ BigBob.pdf   81 KB | 313 downloads
 
 
  • Post #195
  • Quote
  • Aug 25, 2011 6:20pm Aug 25, 2011 6:20pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting hiredwhip
Disliked
Hi Steve,
The bot is still running a great line......But I'm still Range trading because of the low Vol......All my pairs are below 30 Vol so its doing its thing.....It's OOTB except for MM, Swap and Pair Management and I also added allow range trades to go to Trend in case of a runaway.....It's been trading well and I'll run it this way tomorrow.......

Have a great evening

whip
Ignored
The range_to_trade is working impressively well. Lurvely.

 
 
  • Post #196
  • Quote
  • Edited 8:29pm Aug 25, 2011 7:17pm | Edited 8:29pm
  •  dragosd1
  • | Joined Feb 2008 | Status: Member | 572 Posts
Ok, taking the risk of becoming annoying, I must repeat this: the bot has a glitch that reduces it's profitability more than 50%! And I'm Visual testing this, you can't see it on blind testing.

I'm testing IBFX AU...

#1
If a*edited* trend (not range) trade is in place with pending orders released, original trade is not closing according to rules, IF there are still pendings unfilled. So, the bot is stuck/freezed...doing nothing, eventually if the price retraces back and fill the reamining pendings, thing are going again on the normal path...
I see as a normal behaviour/logic to close trade on crossing/touching/median price and delete all pendings(maybe again I miss something here).
Imagine a SELL, price is filling the pending 1-3, then retraces, we got original position still open, the we got a range, then uptrend, but nothing happens...original position is still open and so are remaining pendings.

#2
If Hedge is in place...
Question 1: Sometimes bot is opening Hedge the Hedge, is this default? Cause sometimes it does not use it and just close orders in loss...At what pips loss value starts the hedge sequence?

Question 2: Should we use only Hedge OR only Recovery as options? It's not so clear from the guide...cause in backtest, they are not working together...seems that one cancel the other.

#3 Whip, I think, you simply cannot have 30 volatility on Daily EUR/USD for the whole 2 years of backtesting, I have 60-80 volatility on H1 same pair...something must be wrong. Maybe you should just input 0 for trend min vol and a bigger value for range max vol, to allow the bot engage trend trading.


P.S. I must say, results are really outstanding after 1-2 trend trades with 25/20 Carolco orders, all filled, but after that, a trade where not all pendings are filled is aborting everything, so I cannot test further...
And, I'm sorry if I'm pissing you off in any way with all those observations, I really appreciate all your work an I really believe this bot can be fine tuned to it's purpose, at the end...
I don't say
 
 
  • Post #197
  • Quote
  • Aug 25, 2011 7:42pm Aug 25, 2011 7:42pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting dragosd1
Disliked
Ok, taking the risk of becoming annoying, I must repeat this: the bot has a glitch that reduces it's profitability more than 50%! And I'm Visual testing this, you can't see it on blind testing.

I'm testing IBFX AU...

#1
If a range trade is in place with pending orders released, original trade is not closing according to rules, IF there are still pendings unfilled. So, the bot is stuck/freezed...doing nothing, eventually if the price retraces back and fill the reamining pendings, thing are going again on the normal path...
I see as a normal behaviour/logic...
Ignored
I barely understand a word of all this. If or when any of this occurs on my demo and causes a problem, I will fix it; I might actually recognise it then. Until that happens, there is nothing I can do. I suspect much of it is down to your own lack of understanding and you have to sort that out for yourself.

Quote
Disliked
#2
If Hedge is in place...
Question 1: Sometimes bot is opening Hedge the Hedge, is this default? Cause sometimes it does not use it and just close orders in loss...At what pips loss value starts the hedge sequence?

Question 2: Should we use only Hedge OR only Recovery as options? It's not so clear from the guide...cause in backtest, they are not working together...seems that one cancel the other.
I am sorry, but I am unable to explain things more clearly than I have in that bloody great user guide in post 1, and unwilling to try. If there is stuff you do not understand then you simply have to do what the rest of us do in these situations; stick the damn thing on a forward demo and watch what it does until you do understand.

 
 
  • Post #198
  • Quote
  • Aug 25, 2011 7:53pm Aug 25, 2011 7:53pm
  •  dragosd1
  • | Joined Feb 2008 | Status: Member | 572 Posts
Steve, I'm sorry, english is not my native language, but ...how can I express more clearly...BB is not closing the no.1 order(original) according to the rules, IF there are still pendings unfilled(price has not reached them to trigger). So, if that one is not closed, pending are not deleted and things get messy...
BB is not doing any kind of trade management or such, nor Recovery or Hedge, as long as this situation last. It's just waiting for the price to get back into the original path of that trade...eventually. Otherwise, stop at margin call...

BB is already attached on 12 Daily charts, but , as I changed it several times, as you updated it, I can't tell too much...yet
I don't say
 
 
  • Post #199
  • Quote
  • Aug 25, 2011 8:11pm Aug 25, 2011 8:11pm
  •  osthafen
  • | Joined Jun 2011 | Status: Member | 23 Posts
Quoting SteveHopwood
Disliked
Latest update in post 1...
Ignored
Hi Steve,

I'm testing all parts of the EA and while I was testing the Range-Trade without recovery the behaviour was strange.

I think I found something in the code where parts are for recovery where they shouldn't be and some parts where a range part is missing:

This part:
//Long
if (target == 0) target = 1000000;//Dummy value

if ( Var5 < Var3 && Bid < Var3 && Bid < target)

I think prevents the target variable in "no recovery mode" from stopping the condition - which is CORRECT.

But further down in the short part:

//Short
if ( Var5 > Var1 && Bid > Var1 && Bid > target)

the target variable is still 1000000 and Bid would never be this large...

Then in both parts (long/short) there is an OrderProfit() >= 0:

if (SellOpen && OpenTrades == 1)
if (OrderSelect(TicketNo, SELECT_BY_TICKET) && OrderCloseTime() == 0 && OrderProfit() >= 0)

which doesn't close a trade even if not in recovery mode...

Did I get that right ?

Cheers
 
 
  • Post #200
  • Quote
  • Aug 25, 2011 8:44pm Aug 25, 2011 8:44pm
  •  osthafen
  • | Joined Jun 2011 | Status: Member | 23 Posts
Quoting dragosd1
Disliked
IF there are still pendings unfilled(price has not reached them to trigger). So, if that one is not closed, pending are not deleted and things get messy...
Ignored
I think it's because the StartCarolco() function which includes the deletion of the pendings is only called if in trend mode:

PHP Code
 
   
if (trend != ranging && AllowTrendTrading && Volatility >= MinimumTrendTradingVolatility) 
   {
      if (!
UseCaterpillar && !UseCarolco && !StopTrading && TicketNo == -1) LookForTrendTradingOpps();
      if (
UseCaterpillar && !StopTrading) StartCaterpillar();
      if (
UseCarolco && !StopTrading) StartCarolco();
      
   } 
So if the trend switches to range there could be some pendings left open ?
 
 
  • Commercial Content
  • /
  • BigBob: Nanningbob V10 auto-trading robot by SteveHopwood
  • Reply to Thread
    • 1 89Page 101112 19
    • 1 9Page 1011 19
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023