Old and defunct Holy Graily Bob

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Locked
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob

Post by Gertje »

oliverjp » Wed Dec 10, 2014 2:21 am wrote:Hi Steve

Assuming suggested reason for immediate deletion of open orders is correct, I have slightly tweaked your ReadIndicatorValues() function to amend the logic so a wavy line detection is ignored if it occurs on the same candle as a Trend or Range signal. The wavy lines will still show on the chart because it is displaying from the indicator, but the EA will know to ignore the wavy lines and give preference to the Trend or Range signal.

Hope this allows you time for another cup of coffee in the morning. If not, please do chuck it away and code something more all encompassing :mrgreen:

All the best

Jeff
Isn't this depending on what signal is fired first? The arrow or the waves?
In my opinion the wave signal overrules all others.
User avatar
oliverjp
Trader
Posts: 36
Joined: Mon May 06, 2013 8:39 am

Holy Graily Bob

Post by oliverjp »

Hiya

Sorry if I misinterpreted your comment and produced the wrong logic effect. All I added were a few lines to basically ignore Wave signals if they occur at the same time as Trend or Range arrows. I thought this was the priority you were after so that you didn't get competing signals but it is, of course, possible to set a different precedence for the signals.

What is your preference for what should happen when these signals occur together? Or are you after something more sophisticated logic wise?

All the best

Jeff


[/quote]

Isn't this depending on what signal is fired first? The arrow or the waves?
In my opinion the wave signal overrules all others.[/quote]
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob

Post by Gertje »

oliverjp » Wed Dec 10, 2014 11:43 am wrote:Hiya

Sorry if I misinterpreted your comment and produced the wrong logic effect. All I added were a few lines to basically ignore Wave signals if they occur at the same time as Trend or Range arrows. I thought this was the priority you were after so that you didn't get competing signals but it is, of course, possible to set a different precedence for the signals.

What is your preference for what should happen when these signals occur together? Or are you after something more sophisticated logic wise?

All the best

Jeff


Isn't this depending on what signal is fired first? The arrow or the waves?
In my opinion the wave signal overrules all others.
Hi,

No problem.

My thoughts are dual;

1. arrow prints -> EA sets orders -> waves prints -> cancel orders
2. waves print -> EA cancels orders -> Arrow prints -> EA refuses to sets orders

Problem is that if the waves dissappear after a while, and THEN the arrow prints, the arrow would be valid in my opinion, untill a new wave prints.

I have no clue if this is possible at all to programm, and even if this is in line with Bob's thoughts about how to trade this particular event. Maybe it is best to stick to 1. & 2. because for sure we don't have a lack of orders.
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

Holy Graily Bob

Post by BobbyT »

I'm not sure if this has come up in this thread but there are 2 buffers for the waves. One marks entering weakness from up/down trend and the other marks exiting weakness from up/down trend.
In Bobs user manual for HGI he discusses the extreme effectiveness of large trade arrow appearing in conjunction with a wave. I can only assume these are waves from buffer 8.
Load up the indicator, change colours of these two buffers so you can see which is which and look for a buffer 8 wave in conjunction with a trend arrow. The resulting move is generally fricking awesome.

As for the basket management, I was thinking along the same line as Gertje. Something like %/0.01 lots/$1000 dollars. This way differing lot sizes and account sizes will be accounted for in any basket closures.
Procrastination provides exponentially negative returns - BobbyT
User avatar
Eamonn
Trader
Posts: 87
Joined: Wed Nov 16, 2011 6:45 am

Holy Graily Bob

Post by Eamonn »

BobbyT » Wed Dec 10, 2014 1:14 pm wrote:I'm not sure if this has come up in this thread but there are 2 buffers for the waves. One marks entering weakness from up/down trend and the other marks exiting weakness from up/down trend.
In Bobs user manual for HGI he discusses the extreme effectiveness of large trade arrow appearing in conjunction with a wave. I can only assume these are waves from buffer 8.
Load up the indicator, change colours of these two buffers so you can see which is which and look for a buffer 8 wave in conjunction with a trend arrow. The resulting move is generally fricking awesome.

As for the basket management, I was thinking along the same line as Gertje. Something like %/0.01 lots/$1000 dollars. This way differing lot sizes and account sizes will be accounted for in any basket closures.

Agree
User avatar
TheWolfInsideUs
Trader
Posts: 12
Joined: Mon Oct 27, 2014 1:59 pm

Holy Graily Bob

Post by TheWolfInsideUs »

SteveHopwood » Wed Dec 10, 2014 10:58 am wrote:
rdg281 » Tue Dec 09, 2014 9:59 pm wrote:

This pattern happened since we started. First plus than minus, plus, minus etc
So case is when to take the profit and when restarting again.
I think that will be the game. Almost like the manual strategy of Bob :smile:
I think most of us are seeing this. Imagine being new here and starting HGB at the top end of the retrace. :arrrg:

Wolf, I am going to adopt your idea of shutting up shop for the day once a certain percentage of profit is hit; this will be a user input.

So, StopTradingAtProfitPercent = ?

Please post your suggestions for the default value.

:xm:
All suggestions made by the other members are very good. Thanks to everyone for their contribution. However, my suggestion is a little bit different. (Although this can also be a question of other wording.)

I would like to make the suggestion, if technically and in terms of time possible, to implement both a feature where the EA stops trading for the day after gaining a fixed percentage. And a feature where the EA will close all the open trades + pending orders when a fixed percentage is gained but won't stop trading for the day. It's just resets the portfolio to better market conditions. (Perhaps these options could also work together?)

Possible additions:
- Closure after fixed percentage indicated in cash.

Default settings:
- For the first option I would say a fixed percentage of 3 - 10% depending on the fact whether it interacts with the other option.
- For the second option I would say a fixed percentage of 3% per '' basket ''.

Little explanation:
- With '' gained '' I mean the result after closing down all the open trades. (Closing down the floating result.)

My sincere respect once again,

The Wolf.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob

Post by Gertje »

BobbyT » Wed Dec 10, 2014 12:14 pm wrote:I'm not sure if this has come up in this thread but there are 2 buffers for the waves. One marks entering weakness from up/down trend and the other marks exiting weakness from up/down trend.
In Bobs user manual for HGI he discusses the extreme effectiveness of large trade arrow appearing in conjunction with a wave. I can only assume these are waves from buffer 8.
Load up the indicator, change colours of these two buffers so you can see which is which and look for a buffer 8 wave in conjunction with a trend arrow. The resulting move is generally fricking awesome.
Yes, I mentioned it before but it might be overlooked between all the "error" and "thank you" messages.

My suggestion was:
- close all trades when a buffer7 wave prints,
- send trades when a buffer8 wave prints.

In between we stay out of the market.
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

Holy Graily Bob

Post by BobbyT »

Oops my bad. Sorry, must completely overlooked it :oops: :oops:
Procrastination provides exponentially negative returns - BobbyT
kwchau
Trader
Posts: 305
Joined: Tue Jan 03, 2012 3:37 pm

Holy Graily Bob

Post by kwchau »

Gertje » Wed Dec 10, 2014 8:36 pm wrote:
BobbyT » Wed Dec 10, 2014 12:14 pm wrote:I'm not sure if this has come up in this thread but there are 2 buffers for the waves. One marks entering weakness from up/down trend and the other marks exiting weakness from up/down trend.
In Bobs user manual for HGI he discusses the extreme effectiveness of large trade arrow appearing in conjunction with a wave. I can only assume these are waves from buffer 8.
Load up the indicator, change colours of these two buffers so you can see which is which and look for a buffer 8 wave in conjunction with a trend arrow. The resulting move is generally fricking awesome.
Yes, I mentioned it before but it might be overlooked between all the "error" and "thank you" messages.

My suggestion was:
- close all trades when a buffer7 wave prints,
- send trades when a buffer8 wave prints.

In between we stay out of the market.
From observation of the H4 charts, your suggestion makes a lot of sense.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Holy Graily Bob

Post by Gertje »

BobbyT » Wed Dec 10, 2014 12:39 pm wrote:Oops my bad. Sorry, must completely overlooked it :oops: :oops:
No excuse necessary, the information flows so fast at the moment I have trouble to keep up.
Locked

Return to “Thingy Bob EA's”