Holy Graily Bob 'n Sixths

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob 'n Sixths

Post by SteveHopwood »

SERIOUS WARNING
  • Most Forex traders lose all their money.
  • Using the robot posted here in trading Forex does not guarantee success.
  • Trading this robot could lead to serious financial loss.
  • Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
  • This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
  • At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
  • To trade this robot, you have to understand:
    • How to use EA's.
    • Bob's HGI indicator.
    • The concepts of swing high and swing low.
MAKE SURE YOU READ THIS POST http://www.stevehopwoodforex.com/phpBB3 ... 41#p111241 There was a Forex bloodbath on Jan 15th 2015 that you need to know about.

Intro

Holy Graily Bob 'n Sixths is inspired by RisklessPips' manual trading, described at http://www.stevehopwoodforex.com/phpBB3 ... =88&t=4720. Visit Charles' thread to see how he uses Sixths, Semafor and HGI. HGBnS is not an attempted automation of Charles' trading, although there are similarities.

You need Bob's Holy Grail Indicator. Download Bob's zipfile from http://www.stevehopwoodforex.com/phpBB3 ... 45#p105045. You need a version of HGI in your Indicators Folder - the latest version is attached to Bob's post 1. Remember to change HGBnG's HGI_Name input to the name of the version you are using, or he will be excessively rude to you.

Newbie traders, you are the luckiest noobs in the history of the train wreck that is retail Forex trading. HGI is the culmination of about 6 years work by nanningbob. You can trade manually by sitting at your console reading a book and simply reacting to the HGI signals. This is the most exciting development in my 8 years experience of the train wreck. Just make sure you absorb "HGI and so-called 'repainting'" from further down this post.

Are you a confused newbie? Don't clutter this thread with requests for basic information - I will delete them. Ask instead at http://www.stevehopwoodforex.com/phpBB3 ... 91#p105691 where friendly souls will help you out.

There are probably a few bugs as I coded this over the weekend and so could not test the code

Trading method
HGBnS is a counter trend trader whose trades are based on the principle that a market that has moved a long way is ready for a retrace. Pull a Fib over any swing high/low on any time frame, and you will notice a tendency for the market to return towards the middle.

Taking long trades as an example:
  • When the market is above the top blue line:
    • Following a 3 level semafor signal:
      • Send a pending sell stop just below the top line.
  • When the market is above the top yellow line:
    • Take an immediate market trade following an HGI blue wave or downtrend arrow.
I have included the usual optional grid features with offsetting etc. The grid includes the ability to send limit orders as well as stop orders (input is AddLimitOrders); remember to manually set a far-distant stop loss if you use this feature. I have not included hedging; the code is there but hidden from users, so we can always invoke it should it look useful to have. Download the HGBnG User Guide from http://www.stevehopwoodforex.com/phpBB3 ... =87&t=4525 for details of anything you do not understand.

Use the attached '3 level'. DigitalCrypto wrote to me a couple of days ago, pointing out that values of 0 for Period1 and Period2 saves a lot of cpu pressure.

You do not need the sixths indicator: HGBnS draws the lines for you.

Currency Slop Strength
We have added this after Bob revived interest in it at http://www.stevehopwoodforex.com/phpBB3 ... =88&t=4735. Enabling it turns HGBnS from a counter-trend trader into one that re-enters the prevailing trend following a deep retrace. Theoretically this should make for fewer, but safer and more profitable trades; we shall see.

Now that we are trend rather than retrace (counter-trend) retrace, it makes sense to set more distant take profit targets. I describe how in the next section.

You do not need a CSS indi on your chart or trading platform. The CSS lives inside the bot already.

Take profit, stop loss, breakeven trailing and jumping stops
You can make these 'hard' stops by entering their values yourself. The default of -1 tells HGBnS to calculate these from the Sixths lines:
  • Stop loss is one Sixth width above/below the trade price.
  • Take profit is the middle line - coloured magenta - unless TakeProfitBuyLine (buy trade) or TakeProfitSellLine (sell trade) lies within an acceptable range:
    • The lines are numbered 1 to 7 counting from the bottom up. Line 1 is the bottom line. Line 7 is the top line. A value of < 1 or > 7 will force HGBnS to use the middle line.
      • Buy trade: set TakeProfitBuyLine to your chosen line.
      • Sell trade: set TakeProfitSellLine to your chosen line.
    • HGBnS will adjust the take profit if it falls on the wrong side of the trade's open price.
  • BreakEvenTargetPips will be one Sixth width. BreakEvenTargetProfit will be one Sixth width /6.
  • Jumping/trailing stop: I leave you to work this out for yourself.
Chart snapshots.
Leave this feature enabled for now. A semafor signal above/below the highest/lowest Sixth will automatically be the high/low of the period, so the bot will adjust the lines at the next tick. The trade will look wrong, so we want to be able to check the snapshot to ensure the trade was taken correctly at the time.


That is all I can think of for now - I will edit this later as I think of thingies to add.

Have fun Gals and Galesses.


:xm:

Manual intervention
To those of you with the occasional firing brain cell who are not too stupid and lazy to take any notice of anything I write: congratulations on reading this bit. You are in a minority. Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... 77#p119077 You will not be sorry that you did so.


HGI and so-called 'repainting'
Members new to all this have difficulty grasping the implications of this deceptively simple fact: The Holy Grail Indicator works in the here and now:
  • what happened on the previous candle is irrelevant.
  • what happened 5 minutes ago is irrelevant.
  • what happened on the previous tick is irrelevant.
The only thing that matters is what HGI is showing now. There is a problem with this and here it is: the indicator generates a signal. The conditions that generated the trade can change but the signal does not leave the chart until you refresh it by changing time frames or restarting the platform. Thus it looks as though the indi is 'repainting'.

It is not. When loaded, it cannot print a signal for trading conditions that do not exist. The fact that they existed 5 minutes ago is irrelevant; the indi works in the here and now and cannot know that they existed 5 minutes ago? 'Historic' signals are on the chart because the conditions that created them were still in place at the candle close; there is no way of telling how early in the development of that candle those conditions first came into being.

Got it? Tough if not because I do not care. What I do care about is being dragged here to read yet another whinge about 'repainting' by a dimwit too thick to understand the basic concept of 'here and now'. I shall delete posts about it - along with the writer if I am in a bad mood. Sorry to sound harsh, but I am doing some 'heading off at the pass' here.


Matters of general interest
Go here to download and run the script that will fill your platform's missing chart history: http://www.stevehopwoodforex.com/phpBB3 ... f=15&t=254
Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... p?f=6&t=78 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration.

Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179

EA coding
I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here. If you want me to code your EA without sharing, then my fee is $100 payable into my paypal account. I explain why at http://www.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79, at the bottom of the post.

Useful utilities/EA's/scripts -

-
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Peepaws
Trader
Posts: 121
Joined: Thu Nov 27, 2014 11:19 pm

Holy Graily Bob 'n Sixths

Post by Peepaws »

Thanks Steve, I too have a 28 pair demo running 24/5 to see how it goes!
User avatar
TraderJoeForex
Trader
Posts: 1157
Joined: Fri Mar 08, 2013 10:29 pm
Location: South London

Holy Graily Bob 'n Sixths

Post by TraderJoeForex »

Great stuff :clap:
User avatar
Boulder
Trader
Posts: 115
Joined: Sun Feb 28, 2016 5:16 pm
Location: Belgium

Holy Graily Bob 'n Sixths

Post by Boulder »

Absolutely fantastic news (though for some reason I had a hunch this one would come rather swiftly :smile: )
I have a terminal set up too with all the pairs (except the NZD pairs, just to spare my computer a bit) with the usual BE (100 and 20) and JS (50) inputs. Using the standard 120 bars for the Sixths as well. Very curious to see how this plays out. Thanks Steve !
viltsu
Trader
Posts: 13
Joined: Tue Apr 09, 2013 2:05 pm

Holy Graily Bob 'n Sixths

Post by viltsu »

Nice work Steve! Just fired up a fresh demo! Your work here is so amazing! :clap:
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Oops

Post by SteveHopwood »

:arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:

As those of us whose demo's have taken trades have discovered, I had the trade directions upside down. :oops:

Did I ever mention how lethal I would be if I possessed a firing synapse?

:arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:

Fix in V 1a in post 1. Own change makers, copy this over lines 2261 - 2300:

Code: Select all

      //Code to compare all the indi values and generate a signal if they all pass
      if (SemStatus == highsemafor)
         if (SemVal >= SixthLineVal[7])//Must be at or above the high line
            SellSignal = true;
      
      if (SemStatus == lowsemafor)
         if (SemVal <= SixthLineVal[1])//Must be at or below the bottom sixth
            BuySignal = true;
      
      //Wavy lines
      if (!BuySignal)
         if (!SellSignal)
         {
            if (HgiStatus == Wavebuytrend)
               if (Bid > SixthLineVal[5])
                  SellSignal = true;
         }//if (!SellSignal)
         
         if (!BuySignal)
         {
            if (HgiStatus == Waveselltrend)
               if (Bid < SixthLineVal[2])
                  BuySignal = true;
         }//if (!BuySignal)
         
      //Trend arrows
      if (!BuySignal)
         if (!SellSignal)
         {
            if (HgiStatus == Trenduparrow)
               if (Bid > SixthLineVal[5])
                  SellSignal = true;
         }//if (!SellSignal)
         
         if (!BuySignal)
         {
            if (HgiStatus == Trenddownarrow)
               if (Bid < SixthLineVal[2])
                  BuySignal = true;
         }//if (!BuySignal)
Look on the bright side. We know the damn thing trades.

:arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg: :arrrg:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob 'n Sixths

Post by SteveHopwood »

V 1b is in post 1. All those take profit error messages were the result of a simple operator precedence bloop of the kind I usually avoid.

Fix yourselfers, go to line 1970:
SixthLineVal[cc] = SixthsLow + (SixthsHeight * cc - 1);

needs an extra pair of brackets:
SixthLineVal[cc] = SixthsLow + (SixthsHeight * (cc - 1));

You might want to remove the three lines beginning at 2008, although I do not think they have any effect.

A couple of easily-fixed bloops is not bad going for something I coded over the weekend, and I am loving the early positive equity at the mo.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob 'n Sixths

Post by SteveHopwood »

V 1c is in post 1.

I noticed that I had not coded the bot to close trades on an opposite direction HGI. Adding the code highlighted that some of the trading decision code was still upside down.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Holy Graily Bob 'n Sixths

Post by SteveHopwood »

V 1d is in post 1 for those of us using the middle line as an automatic take profit. There is code to prevent stop orders being placed on the wrong side of the line and causing all those 'invalid stop' errors.

:xm:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Peepaws
Trader
Posts: 121
Joined: Thu Nov 27, 2014 11:19 pm

Holy Graily Bob 'n Sixths

Post by Peepaws »

:shock: Equity is up 20 percent in a day and a half. :shock:

Seeing as it is on demo I will let it run. No way I would do this live, but that's the fun of demo.

I cannot believe the performance so far!!!

EDIT: in the time it took me to write this on my phone, the equity already went up to 22 percent!
Post Reply

Return to “Thingy Bob EA's”