Holy Graily Bob Basics - ask your questions here.

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.

Holy Graily Bob Basics - ask your questions here.

Post by SteveHopwood »

mistertortoise » Wed Sep 23, 2015 8:46 pm wrote:Sorry Steve,

I had a feeling I was going to get flamed for trying to clumsily answer Simon's problem. As someone just getting my feet wet in mql I was doing it as much as a problem solving exercise to see if I could figure out how to do it.

Will stick to just reading coding posts from now on until I have some more experience :oops:
When getting my Crapql4 feet wet, I learned vast amounts by hacking code from people who had learned vast amounts.....................

Understanding somehow transfers itself through repetition. Repeat the exercise you have just hacked often enough and you come to understand it. This is an exponential process. The more you understand here, the more falls into place there, and there and there.........

Guess how I know?

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

Holy Graily Bob Basics - ask your questions here.

Post by AnotherBrian »

Here's a tip
Put the cursor on the function, press F1.

Then up pops this

double iCustom(
string symbol, // symbol
int timeframe, // timeframe
string name, // path/name of the custom indicator compiled program
... // custom indicator input parameters (if necessary)
int mode, // line index
int shift // shift
);

look at the field you want to play with, it tells you what it needs to be initialized as. shift is int (not string that uses quotes. Simple eh?

mistertortoise » Wed Sep 23, 2015 7:09 am wrote:Simon

Have you tried putting the shift string in quotes. So

iCustom(Symbol(),0,"HGI_v16.07",0,"shift"); <-----

EDIT:

Hmm. Nope, that seemed to work for a moment than stopped :smile:

I got it to work making the shift into a double rather than an "int" but not sure why.

Code: Select all

 double shift = 11;
      
      double HGI_TrendUp = iCustom(NULL,0,"HGI_v16.07",0,shift);
      double HGI_TrendDn = iCustom(NULL,0,"HGI_v16.07",1,shift);
      double HGI_Wavy_G =  iCustom(NULL,0,"HGI_v16.07",6,shift);
      double HGI_Wavy_B =  iCustom(NULL,0,"HGI_v16.07",7,shift);
    
      Comment("TrendUp is: "+HGI_TrendUp+"\nHGI_TrendDn is: "+HGI_TrendDn+"\nHGI_Wavy_G is: "+HGI_Wavy_B+"\nHGI_Wavy_G is: "+HGI_Wavy_G);
     
olric2000
Trader
Posts: 30
Joined: Fri Oct 30, 2015 12:01 pm
Location: Ankara

Holy Graily Bob Basics - ask your questions here.

Post by olric2000 »

Hi everyone,

I've been trying to follow Bob's and Steve's works for some time. I am new to forex platform and amazed by their work. Thank you so much for all your efforts!

I tried to understand all the instructions by myself in order not to bother you guys, but unfortunately I cannot overpass the last one with HGB ea. When I drag HGB to the chart, I change the HGI_Name section with "HGI_v17.00". But it still does not accept it and call me demented lazy :)
I have the HGI_v17.00 in my platform and on my chart but it still says "the required indicator HGI_v17.00 does not axist".

I searched the forum for this problem. It seems when they change the indi name it resolves, but not in my case.
I'd appreciate If anybody could help me.
Thanks in advance.

Ahmet
olric2000
Trader
Posts: 30
Joined: Fri Oct 30, 2015 12:01 pm
Location: Ankara

Holy Graily Bob Basics - ask your questions here.

Post by olric2000 »

olric2000 » Thu Nov 05, 2015 2:00 pm wrote:Hi everyone,

I've been trying to follow Bob's and Steve's works for some time. I am new to forex platform and amazed by their work. Thank you so much for all your efforts!

I tried to understand all the instructions by myself in order not to bother you guys, but unfortunately I cannot overpass the last one with HGB ea. When I drag HGB to the chart, I change the HGI_Name section with "HGI_v17.00". But it still does not accept it and call me demented lazy :)
I have the HGI_v17.00 in my platform and on my chart but it still says "the required indicator HGI_v17.00 does not axist".

I searched the forum for this problem. It seems when they change the indi name it resolves, but not in my case.
I'd appreciate If anybody could help me.
Thanks in advance.

Ahmet
Hi again,

I finally solve it. Indi was in a folder under Indicators. Taht's why EA did not see it (as far as I understand).
Sorry for taking time. It works :)
TMany thanks again.
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 Basics - ask your questions here.

Post by SteveHopwood »

olric2000 » Thu Nov 05, 2015 2:06 pm wrote:
olric2000 » Thu Nov 05, 2015 2:00 pm wrote:Hi everyone,

I've been trying to follow Bob's and Steve's works for some time. I am new to forex platform and amazed by their work. Thank you so much for all your efforts!

I tried to understand all the instructions by myself in order not to bother you guys, but unfortunately I cannot overpass the last one with HGB ea. When I drag HGB to the chart, I change the HGI_Name section with "HGI_v17.00". But it still does not accept it and call me demented lazy :)
I have the HGI_v17.00 in my platform and on my chart but it still says "the required indicator HGI_v17.00 does not axist".

I searched the forum for this problem. It seems when they change the indi name it resolves, but not in my case.
I'd appreciate If anybody could help me.
Thanks in advance.

Ahmet
Hi again,

I finally solve it. Indi was in a folder under Indicators. Taht's why EA did not see it (as far as I understand).
Sorry for taking time. It works :)
TMany thanks again.
Well done. Always better to solve our own problems where possible - we learn more. :clap:

: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.
ashland
Posts: 2
Joined: Mon Oct 05, 2015 2:52 am

Holy Graily Bob Basics - ask your questions here.

Post by ashland »

Ok. My dumb question got deleted from the HGB thread. So here I try again. Sorry for being a noob!!

What's the purpose a refreshing the chart to detect false signals? Doesn't the indicator prevent redrawing of only older signals. tomasso said in update 15.6 that the indi will initialize the last bar and calculate.

So why are we refreshing the charts??

Thanks,
Ash.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Holy Graily Bob Basics - ask your questions here.

Post by milanese »

ashland » Fri Nov 13, 2015 6:48 pm wrote:Ok. My dumb question got deleted from the HGB thread. So here I try again. Sorry for being a noob!!

What's the purpose a refreshing the chart to detect false signals? Doesn't the indicator prevent redrawing of only older signals. tomasso said in update 15.6 that the indi will initialize the last bar and calculate.

So why are we refreshing the charts??

Thanks,
Ash.
You should read the first post in the HGB main thread with attention and the entire HGB thread, this should answer your question..
http://www.stevehopwoodforex.com/phpBB3 ... 65#p119165
http://www.stevehopwoodforex.com/phpBB3 ... 96#p119296
Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
ashland
Posts: 2
Joined: Mon Oct 05, 2015 2:52 am

Holy Graily Bob Basics - ask your questions here.

Post by ashland »

In OnTick function.

The HistoryOK function will always be executed because the variable is re-initialized just before the check. You might want to fix this :)
static bool NeedToCheckHistory=true;
if (NeedToCheckHistory)
---
---
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 Basics - ask your questions here.

Post by SteveHopwood »

ashland » Sat Nov 14, 2015 4:11 am wrote:In OnTick function.

The HistoryOK function will always be executed because the variable is re-initialized just before the check. You might want to fix this :)
static bool NeedToCheckHistory=true;
if (NeedToCheckHistory)
---
---
static variables do not re-initialise.

: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 Basics - ask your questions here.

Post by SteveHopwood »

ashland » Sat Nov 14, 2015 4:11 am wrote:In OnTick function.

The HistoryOK function will always be executed because the variable is re-initialized just before the check. You might want to fix this :)
static bool NeedToCheckHistory=true;
if (NeedToCheckHistory)
---
---
I am returning to this.

I must have been in an exceptionally mellow mood earlier, because normally this would have attracted the blast that is now coming your way.

Code such as the snippet you questioned has been up and running flawlessly for years. It has usually been donated by one of the Proper Coders here - people who have forgotten more about coding than I will ever learn. This particular snippet was provided by Goerge. He visits here rarely these days and contributes never; I miss him greatly; his early work in this forum did much to shape its success.

Talking about the Proper Coders, I am bloody good, so imagine how fantastic those people are. Unbelievably good. Awesome.

Only an idiot with a forum death wish questions code provided by these people.

Especially when the questioner demonstrates a woeful lack of understanding the most basic of CrapQl4 variable declarations.

I see that one of the mods has removed you to the On Moderation group and so you can do nothing other than read posts and download attachments. No idea whom it was, nor do I care; clearly you have irritated one of the valued members here.

Your best way of moving forward in this forum is to attempt to add intelligent posts that the moderator notes and passes and eventually, perhaps, grants you full posting rights. If you have nothing intelligent to offer, then stay quiet.

: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”