stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Baskety Holy Graily Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4294
Page 1 of 1
Author:  SteveHopwood [ Sat Jun 13, 2015 3:08 pm ]
Post subject:  Baskety Holy Graily Bob

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 -

-
Author:  Geekster [ Sat Jun 13, 2015 3:24 pm ]
Post subject:  Baskety Holy Graily Bob

Seems like a great idea! :mrgreen:
Author:  jiaxingx [ Sat Jun 13, 2015 3:46 pm ]
Post subject:  Baskety Holy Graily Bob

forward test it next week
cheers.
Author:  MrLong [ Sat Jun 13, 2015 8:13 pm ]
Post subject:  Baskety Holy Graily Bob

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
Author:  SteveHopwood [ Sat Jun 13, 2015 8:46 pm ]
Post subject:  Baskety Holy Graily Bob

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:
Author:  WorldsEnd [ Sun Jun 14, 2015 8:42 am ]
Post subject:  Baskety Holy Graily Bob

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
Author:  SteveHopwood [ Sun Jun 14, 2015 9:03 am ]
Post subject:  Baskety Holy Graily Bob

It is a per basket value.

:xm:
Author:  WorldsEnd [ Mon Jun 15, 2015 3:58 pm ]
Post subject:  Baskety Holy Graily Bob

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 :?
Author:  pt2004 [ Sun Jun 21, 2015 7:45 pm ]
Post subject:  Baskety Holy Graily Bob

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
Author:  SteveHopwood [ Sun Jun 21, 2015 8:15 pm ]
Post subject:  Baskety Holy Graily Bob

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:
All times are UTC Page 1 of 1