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

need help for iCustom Call for Bob's HGI_v16.04
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4109
Page 1 of 2
Author:  PIPone [ Sat Feb 14, 2015 10:19 am ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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);
Author:  milanese [ Sat Feb 14, 2015 10:45 am ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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
Author:  PIPone [ Sat Feb 14, 2015 12:50 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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
Author:  SteveHopwood [ Sat Feb 14, 2015 10:53 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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:
Author:  PIPone [ Sun Feb 15, 2015 8:44 am ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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
Author:  traderduke [ Wed Mar 25, 2015 12:22 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

Tommaso
I found the answer and deleted post

Thanks
Ray
Author:  milanese [ Wed Mar 25, 2015 12:31 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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
Author:  traderduke [ Wed Mar 25, 2015 12:35 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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
Author:  traderduke [ Fri Mar 27, 2015 3:25 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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
Author:  milanese [ Fri Mar 27, 2015 4:17 pm ]
Post subject:  need help for iCustom Call for Bob's HGI_v16.04

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