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
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Holy Graily Bob

Post by renexxxx »

Week 4 results of trading HGB OOTB on the majors:
Selection_049.jpg
After a mid week slump, HGB ended the week on a high, with 800+ pips. I haven't changed anything since the beginning of the test -- it is a bit hard to draw any conclusions if you do. It is already hard enough to draw any conclusions if you don't. But for the moment, this version with this setup on these pairs, in this market is doing well. A big round of applause to Steve! :clap: :clap: :clap:
You do not have the required permissions to view the files attached to this post.
art
Trader
Posts: 588
Joined: Fri Mar 02, 2012 3:51 pm

Holy Graily Bob

Post by art »

Nice one Renee i am getting good results also considering this is a crappy market, noticed you are including EJ in your pairs have you dropped GJ
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

Holy Graily Bob

Post by renexxxx »

art » Sat Apr 04, 2015 9:14 am wrote:Nice one Renee i am getting good results also considering this is a crappy market, noticed you are including EJ in your pairs have you dropped GJ
:oops: well spotted! I am not trading EJ but GJ. Updated the original post.
forexdj
Trader
Posts: 63
Joined: Fri Mar 22, 2013 4:40 am

Holy Graily Bob

Post by forexdj »

TraderJoeForex » Fri Apr 03, 2015 7:04 pm wrote:
Hey.. I only trade H1 from about 6am to 4pm. Entry criteria is Trend Arrow on 22pairs + gold - this is managed by HGB with close on 1st opposite (usually wavy or range arrow) although I usually exit manually before the opposite. 1 main trade only.

I don't set a SL (the close on opposite is my safety net) and I set TP 2x each pair's ATR.

If I close at a loss ( I usually let the trade run to the opposite) then I increase the lot size from 0.01 to 0.02 in HGB for the next trade on that pair. If I loose again then I increase to 0.03 etc.. (I would hold at 0.05 but haven't had 5 losses in a row yet).

After winning trade back to 0.01.

Hope this helps :jump:
Thanks for the info TJF. I have been trading on H1 too but I now want to move on to H4. I have been forward testing H4 Trend and Blue Wave signals and confirming with the H1 and D1 CSS and Stochs. Might sound complicated but once you get used it becomes as easy as ABCD and the DD is also low. Let's see how it works out.
UKIONA VYAELEA JUA VIMEUNDWA!
User avatar
Iamshakey
Trader
Posts: 55
Joined: Wed Nov 16, 2011 7:29 am
Location: Midwest USA

Holy Graily Bob

Post by Iamshakey »

Here are results from EA on the daily time frame. On Demo. Trading all usual pairs except CHF

Started April 1st thru Friday close (about 72 hours).

0.02 main trade lot size 0.01 secondary trade size (pretty conservative) Max trades per pair 2

Looks pretty invincible on the Daily time frame. Pretty much hands off about 1150 pips in 3 days.

Looks like this EA a winner Thanks Steve and all contributors :good:

Three Days HGI thingy Daily time frame.png
You do not have the required permissions to view the files attached to this post.
It's Better to Burn Out, than it is to Rust
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.

Holy Graily Bob

Post by SteveHopwood »

Anybody here know of a way to force a chart period change in code? It just occurred to me that enforcing this every 5 minutes or so would deal with the signals that come and go, yet leave us with pending trades in place that are no longer relevant.

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

Holy Graily Bob

Post by SteveHopwood »

I just had an idea guys.

Ok, so we know that HGB does fantastically well, then he gives back all of those lovely pips he made - happened to me yet again last week.

Here is the idea. We run HGB on demo until he loses a shed load. Then we load him up on our live accounts, let him do his thingy and bank the profits, then shut down live and wait until the demo does crap again.

Anyone with the spare capacity to test this out on two separate demos with Global Prime?

: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.
MrLong

Holy Graily Bob

Post by MrLong »

Code: Select all

#include <WinUser32.mqh>

//+------------------------------------------------------------------+
//| Open a new chart                                                 |
//+------------------------------------------------------------------+
int ChartWindow(string SymbolName,int timeframe,int tempNo,int tf)
  {
   int hFile,SymbolsTotal,hTerminal,hWnd,handlechart;
   int intCmd;
//if window is already open, don't open another one
   if(WindowHandle(SymbolName,timeframe)!=0)
     {
      Print("Chart already open ",WindowHandle(SymbolName,timeframe));
      // switch to existing chart
      hTerminal=GetParent(GetParent(WindowHandle(Symbol(),Period())));
      SendMessageA(hTerminal,WM_MDIACTIVATE,GetParent(WindowHandle(SymbolName,timeframe)),0);
      return(0);
     }

   Print("Chart handle ",WindowHandle(SymbolName,timeframe));

   hFile=FileOpenHistory("symbols.sel",FILE_BIN|FILE_READ);
   if(hFile<0)
      return(-1);

   SymbolsTotal=(int)(FileSize(hFile)-4)/128;
   FileSeek(hFile,4,SEEK_SET);

   hTerminal=GetAncestor(WindowHandle(Symbol(),Period()),2);

   Print("hTerminal: ",hTerminal);
   hWnd=GetDlgItem(hTerminal,0xE81C);
   Print("hTerminal: ",hWnd);
   hWnd=GetDlgItem(hWnd,0x50);
   Print("hTerminal: ",hWnd);
   hWnd=GetDlgItem(hWnd,0x8A71);
   Print("hTerminal: ",hWnd);

   PostMessageA(hWnd,WM_KEYDOWN,VK_HOME,0);

   for(int i=0; i<SymbolsTotal; i++)
     {
      if(FileReadString(hFile,12)==SymbolName)
        {
         PostMessageA(hTerminal,WM_COMMAND,33160,0);
         i=SymbolsTotal;
        }
      PostMessageA(hWnd,WM_KEYDOWN,VK_DOWN,0);
      FileSeek(hFile,116,SEEK_CUR);
     }
// wait until new chart is open
   Sleep(2000);

// seems Empty4 always open a new chart in H1 timeframe
   handlechart=WindowHandle(SymbolName,PERIOD_H1);

// loading the *first* available template
   PostMessageA(handlechart,WM_COMMAND,34800+tempNo,0);

   intCmd=-1;
   switch(tf)
     {
      case PERIOD_M1:
         intCmd=33137;
         break;
      case PERIOD_M5:
         intCmd=33138;
         break;
      case PERIOD_M15:
         intCmd=33139;
         break;
      case PERIOD_M30:
         intCmd=33140;
         break;
      case PERIOD_H1:
         intCmd=35400;
         break;
      case PERIOD_H4:
         intCmd=33136;
         break;
      case PERIOD_D1:
         intCmd=33134;
         break;
      case PERIOD_W1:
         intCmd=33141;
         break;
      case PERIOD_MN1:
         intCmd=33334;
         break;
     }
   PostMessageA(handlechart,WM_COMMAND,intCmd,0);
   FileClose(hFile);

   return(-1);
  }
And call:

ChartWindow(Symbol(),PERIOD_M5,templetNumber,PERIOD_M5);

Should do the trick.

Andy
gringoh

Holy Graily Bob

Post by gringoh »

SteveHopwood » 05 Apr 2015, 22:45 wrote:Anybody here know of a way to force a chart period change in code? It just occurred to me that enforcing this every 5 minutes or so would deal with the signals that come and go, yet leave us with pending trades in place that are no longer relevant.

:xm:

Code: Select all

bool  ChartSetSymbolPeriod(
   long             chart_id,     // Chart ID
   string           symbol,       // Symbol name
   ENUM_TIMEFRAMES  period        // Period
   );
Cheers,
G
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.

Holy Graily Bob

Post by SteveHopwood »

Thanks gringoh. It doesn't quite do the trick as the function also stops whatever uses it from running.

Thanks Andy. I will play with yours tomorrow. I would have done so today but it is complicated for me, and I am working with Zennor on a variant of PPoS that is proving an absolute bugger to convert.

Cheers guys

: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.
Locked

Return to “Thingy Bob EA's”