need help for iCustom Call for Bob's HGI_v16.04

User avatar
PIPone
Trader
Posts: 22
Joined: Fri Jun 28, 2013 4:58 pm

need help for iCustom Call for Bob's HGI_v16.04

Post by PIPone »

I am trying to call into an expert NanningBob's last version of HGI_v16.04.ex4 indicator here
http://www.stevehopwoodforex.com/phpBB3 ... p?id=45892

I coded this lines for Trend Arrows but it does not works: :arrrg:
Could some expert coder help me pointing out where I am doing wrong?

double HGI_Trend_UpArrow = iCustom (NULL,0,"HGI_v16.04",false,false,30,false,true,false,false,false,true,"",
false,false,false,"",true,true,true,true,"","","","","","","Green","Crimson","Lime","Red","Lime","Red", "Gold","DodgerBlue","White",
3,0,0,3,1, 0, 0);

double HGI_Trend_DownArrow = iCustom (NULL,0,"HGI_v16.04",false,false,30,false,true,false,false,false,true,"",
false,false,false,"",true,true,true,true,"","","","","","","Green","Crimson","Lime","Red","Lime","Red", "Gold","DodgerBlue","White",
3,0,0,3,1, 1, 0);
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

need help for iCustom Call for Bob's HGI_v16.04

Post by milanese »

PIPone » Sat Feb 14, 2015 10:19 am wrote:I am trying to call into an expert NanningBob's last version of HGI_v16.04.ex4 indicator here
http://www.stevehopwoodforex.com/phpBB3 ... p?id=45892

I coded this lines for Trend Arrows but it does not works: :arrrg:
Could some expert coder help me pointing out where I am doing wrong?

double HGI_Trend_UpArrow = iCustom (NULL,0,"HGI_v16.04",false,false,30,false,true,false,false,false,true,"",
false,false,false,"",true,true,true,true,"","","","","","","Green","Crimson","Lime","Red","Lime","Red", "Gold","DodgerBlue","White",
3,0,0,3,1, 0, 0);

double HGI_Trend_DownArrow = iCustom (NULL,0,"HGI_v16.04",false,false,30,false,true,false,false,false,true,"",
false,false,false,"",true,true,true,true,"","","","","","","Green","Crimson","Lime","Red","Lime","Red", "Gold","DodgerBlue","White",
3,0,0,3,1, 1, 0);
You have to call the HGI like this:

Code: Select all

bool HGI_Trend_UpArrow=false;
bool HGI_Trend_DownArrow=false;

if (iCustom(Symbol(),TF,"HGI_v16.04",  0, shift)!= EMPTY_VALUE) HGI_Trend_UpArrow=true;
if (iCustom(Symbol(),TF,"HGI_v16.04",  1, shift)!= EMPTY_VALUE) HGI_Trend_DownArrow=true;
//and so on..... 
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
User avatar
PIPone
Trader
Posts: 22
Joined: Fri Jun 28, 2013 4:58 pm

need help for iCustom Call for Bob's HGI_v16.04

Post by PIPone »

milanese » Sat Feb 14, 2015 11:45 am wrote: You have to call the HGI like this:

Code: Select all

bool HGI_Trend_UpArrow=false;
bool HGI_Trend_DownArrow=false;

if (iCustom(Symbol(),TF,"HGI_v16.04",  0, shift)!= EMPTY_VALUE) HGI_Trend_UpArrow=true;
if (iCustom(Symbol(),TF,"HGI_v16.04",  1, shift)!= EMPTY_VALUE) HGI_Trend_DownArrow=true;
//and so on..... 
Cheers :)

Tommaso

Thank you a lot Tommaso !
Your iCustom code works smootly :good:

cheers :!!:
Massimo
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.

need help for iCustom Call for Bob's HGI_v16.04

Post by SteveHopwood »

Tommaso and Elixe coded this stuff really cleverly, so that all that is needed is Tommaso's basic call. From there, to interrogate the contents of the other buffers you merely need to know what they hold - and the Data Window will tell you this.

If unsure, ask here or pm Tommaso for a description of what buffers hold what information.

Many 'custom indicators' are absolute abortions to try to work with - hence my nickname Crap Custom Abortions.

HGI is the absolute opposite of this - joy to deal with.

: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
PIPone
Trader
Posts: 22
Joined: Fri Jun 28, 2013 4:58 pm

need help for iCustom Call for Bob's HGI_v16.04

Post by PIPone »

SteveHopwood » Sat Feb 14, 2015 11:53 pm wrote:Tommaso and Elixe coded this stuff really cleverly, so that all that is needed is Tommaso's basic call. From there, to interrogate the contents of the other buffers you merely need to know what they hold - and the Data Window will tell you this.

If unsure, ask here or pm Tommaso for a description of what buffers hold what information.

Many 'custom indicators' are absolute abortions to try to work with - hence my nickname Crap Custom Abortions.

HGI is the absolute opposite of this - joy to deal with.

:xm:


Hi Steve,

first of all , thank you for the support and awesome job done in this great forum.
The information provided by HGI_v16.04 buffers is very clear, and indeed easy to be called into EAs (thank again to Bob, Tommaso and Elixe for the development of this smart indicator !).
In case of any further difficulty or doubt I will surely ask Tommaso.

All the best
Massimo
User avatar
traderduke
Trader
Posts: 306
Joined: Mon Nov 28, 2011 7:30 pm
Location: East Coast USA

need help for iCustom Call for Bob's HGI_v16.04

Post by traderduke »

Tommaso
I found the answer and deleted post

Thanks
Ray
Last edited by traderduke on Wed Mar 25, 2015 12:34 pm, edited 2 times in total.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

need help for iCustom Call for Bob's HGI_v16.04

Post by milanese »

traderduke » Wed Mar 25, 2015 12:22 pm wrote:Tommaso
A follow up question to icustom.
I'm trying to determine if the Blue wavy is above or below, The
code below fails to compile with "Close - invalid array access" . Can you direct me to the correct input?

Code: Select all

 bool BuySignal() 
{
  ReadIndicatorValues();
 if (
   (HGI_Trend_UpArrow == true || 
   (HGI_Wavy_Blue == true && Close > HGI_Wavy_Blue))
     
   && TimeCondition()) return(true);  return(false);
}  
Thanks
Ray
you must always use

Code: Select all

Close[bar]

bar is the candle you want to look at, if it is the last closed you have to use Close[1], Close[0] would be the actual open candle ecc...
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
User avatar
traderduke
Trader
Posts: 306
Joined: Mon Nov 28, 2011 7:30 pm
Location: East Coast USA

need help for iCustom Call for Bob's HGI_v16.04

Post by traderduke »

Your quick
Using close[1] for the wavy will sync with iCustom using Shift = 1, but will it sync with arrow which is real time??
Thanks

Ray
User avatar
traderduke
Trader
Posts: 306
Joined: Mon Nov 28, 2011 7:30 pm
Location: East Coast USA

need help for iCustom Call for Bob's HGI_v16.04

Post by traderduke »

Tommaso
It compiles & runs on backtest but no trades, just checking to see it runs & trades. It loads on charts but never trades. No errors or peculiar data in the expert and plenty of HGI alerts but still no trades. Any help would be appreciated.
I attached the screen shot with the alerts and the backtest run. I heard somewhere that HGI won't work on backtest, so I ran it on 12 pair for 3 days using H4, then I tried it on H1 still no trades.
Thanks
Ray
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

need help for iCustom Call for Bob's HGI_v16.04

Post by milanese »

traderduke » Fri Mar 27, 2015 3:25 pm wrote:Tommaso
It compiles & runs on backtest but no trades, just checking to see it runs & trades. It loads on charts but never trades. No errors or peculiar data in the expert and plenty of HGI alerts but still no trades. Any help would be appreciated.
I attached the screen shot with the alerts and the backtest run. I heard somewhere that HGI won't work on backtest, so I ran it on 12 pair for 3 days using H4, then I tried it on H1 still no trades.
Thanks
Ray
Best is you look in the HGB code to understand how you have to call HGI as there is one of the problems in your code, your code will never open a trade...

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
Post Reply

Return to “Coders Hangout”