Baskety Holy Graily Bob

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: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Baskety Holy Graily Bob

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 concept of basket trading
BHGB is an attempt to avoid trading at the start of a retrace by using two accounts. There is a Control account that trades until it goes sufficiently into draw down to indicate that there has been a retrace of the kind that gives back all those pips we made the day before. It sends a signal to the second account, which is our trading account. The trades on the Control account are treated as a basket. You can treat the Live account trades as a basket or manage them individually.

You will find full details in "Baskety Holy Graily Bob.pdf".

I am not sure that all the functions are working correctly, so don't be surprised if bugs surface, especially in the communications features. We will sort them out as they arise.

Have fun.

:xm:


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. pianodoodler@hotmail.com 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
Geekster
Trader
Posts: 23
Joined: Sat Jun 06, 2015 10:20 pm

Baskety Holy Graily Bob

Post by Geekster »

Seems like a great idea! :mrgreen:
jiaxingx
Trader
Posts: 43
Joined: Fri Jun 22, 2012 10:45 am

Baskety Holy Graily Bob

Post by jiaxingx »

forward test it next week
cheers.
Image
MrLong

Baskety Holy Graily Bob

Post by MrLong »

Hi Steve,

Could possibly monitor and save the maximum draw down, could also send the message when draw down = % x.

Code: Select all

double maxDD;
double dD;



//int init()
if (!GlobalVariableCheck("_maxdd"))
    GlobalVariableSet("_maxdd", 200000.00);


if (GlobalVariableCheck("_maxdd"))
    maxDD = GlobalVariableGet("_maxdd");

//start

if (AccountBalance() > 100.00)
    dD = (countRunningProfit() * 100 / AccountBalance());

if (maxDD > dD)
{
    maxDD = dD;
    GlobalVariableSet("_maxdd", dD);
}

// Display
SM("Maximum DD %: " + "(" + DoubleToStr(maxDD, 2) + ")" + NL);
SM("Current DD %: " + "(" + DoubleToStr(dD, 2) + ")" + NL);


//+------------------------------------------------------------------+
//| Get profit/loss for all trades
//+------------------------------------------------------------------+
double countRunningProfit()
{
    double cash = 0;

    for (int i = 0; i < OrdersTotal(); i++)
    {
        if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
            if (OrderMagicNumber() == MagicNumber)
            {
                cash += (OrderProfit() + OrderSwap() + OrderCommission());
            }
    }
    return(cash);
}

Andy
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Baskety Holy Graily Bob

Post by SteveHopwood »

MrLong » Sat Jun 13, 2015 8:13 pm wrote:Hi Steve,

Could possibly monitor and save the maximum draw down, could also send the message when draw down = % x.

Code: Select all

double maxDD;
double dD;



//int init()
if (!GlobalVariableCheck("_maxdd"))
    GlobalVariableSet("_maxdd", 200000.00);


if (GlobalVariableCheck("_maxdd"))
    maxDD = GlobalVariableGet("_maxdd");

//start

if (AccountBalance() > 100.00)
    dD = (countRunningProfit() * 100 / AccountBalance());

if (maxDD > dD)
{
    maxDD = dD;
    GlobalVariableSet("_maxdd", dD);
}

// Display
SM("Maximum DD %: " + "(" + DoubleToStr(maxDD, 2) + ")" + NL);
SM("Current DD %: " + "(" + DoubleToStr(dD, 2) + ")" + NL);


//+------------------------------------------------------------------+
//| Get profit/loss for all trades
//+------------------------------------------------------------------+
double countRunningProfit()
{
    double cash = 0;

    for (int i = 0; i < OrdersTotal(); i++)
    {
        if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
            if (OrderMagicNumber() == MagicNumber)
            {
                cash += (OrderProfit() + OrderSwap() + OrderCommission());
            }
    }
    return(cash);
}

Andy
Could indeed.

: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. pianodoodler@hotmail.com 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
WorldsEnd
Trader
Posts: 97
Joined: Fri Aug 29, 2014 7:36 pm

Baskety Holy Graily Bob

Post by WorldsEnd »

Steve,

in the .pdf it says ...

"Set RequiredDrawDownPips to the point at which you want the Control manager to tell the Live manager to start trading. The default of 500 pips is pure guesswork.[...]"

Are those DrawDownPips (default 500) a per cross value or a per basket value? In case it's a basket draw down we may have to increase that value the more crosses we want to trade ... as you already said, it's pure guesswork. Anyway, I am trying to figure out a good value for a 28 crosses basket as a first test environment
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Baskety Holy Graily Bob

Post by SteveHopwood »

It is a per basket value.

: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. pianodoodler@hotmail.com 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
WorldsEnd
Trader
Posts: 97
Joined: Fri Aug 29, 2014 7:36 pm

Baskety Holy Graily Bob

Post by WorldsEnd »

I have set up BHGB according the manual. I do not understand how all this works or how each account should trade and what is normal and what is not ... anyway here is the link to my fxbook demo portfolio with BHGB Control and Trading accounts

https://www.myfxbook.com/members/worldsend

As you can see if you compare the open orders tab ... the accounts trade differently. While the trade account seems to work as aspected, the control account is wildly opening pendings every few minutes. Thing is ... I don't have any clue why this is happening. All is set up according Steve's manual, the charts are the same, the indi is the same version, settings of BHGB are identical except for the parts of that control and trading account stuff. I am somewhat helpless :?
pt2004
Trader
Posts: 40
Joined: Sun Nov 27, 2011 3:12 pm
Location: Portugal

Baskety Holy Graily Bob

Post by pt2004 »

WorldsEnd » Mon Jun 15, 2015 4:58 pm wrote:I have set up BHGB according the manual. I do not understand how all this works or how each account should trade and what is normal and what is not ... anyway here is the link to my fxbook demo portfolio with BHGB Control and Trading accounts

https://www.myfxbook.com/members/worldsend

As you can see if you compare the open orders tab ... the accounts trade differently. While the trade account seems to work as aspected, the control account is wildly opening pendings every few minutes. Thing is ... I don't have any clue why this is happening. All is set up according Steve's manual, the charts are the same, the indi is the same version, settings of BHGB are identical except for the parts of that control and trading account stuff. I am somewhat helpless :?

Hi

Please share your set files, i am getting completly different results.

Cheers

Pt
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Baskety Holy Graily Bob

Post by SteveHopwood »

There are still some problems with the coding of BHGB. The Control account is not closing trades when it passes trading over to the Live account. I will try to sort this out this week. Possibly. It will be something simple. Buggered if I can work out what it is.

In the meantime, close your Control trades manually when the Live account is trading.

My first estimate of -500 on the Control account before trading appears to be too little, so I am now trying -1000.

: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. pianodoodler@hotmail.com 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.
Post Reply

Return to “Thingy Bob EA's”