I appear to be missing several signals on HGI, Trend being the worst. I see changes to HGI_16.09 and I was wondering if there was any change to the icustom code for calling the HGI? I've added the redundant code, " HGI_Trend_UpArrow == true || HGI_TrendUp > 0 ||", but that didn't seem to help,
The latest I have was by Tommaso in March, 2015. See Code:
Code: Select all
void ReadIndicatorValues() //shift=0 is on
{
// NEWEST CALL for v16.09 from Tommaso 3-1-2015; //coders hangout; custom call for 16.04
// reset the signals
HGI_Trend_UpArrow=false;
HGI_Trend_DownArrow=false;
HGI_Wavy_Gold=false;
HGI_Wavy_Blue=false;
HGI_Trend_Up = 0;
HGI_Trend_Dn = 0;
HGI_Wavy_G = 0;
HGI_Wavy_B = 0;
//Indic_Name = "HGI_v16.09";
if (iCustom(Symbol(),TFHGI,Indic_Name, 0, Shift)!= EMPTY_VALUE) HGI_Trend_UpArrow=true;
if (iCustom(Symbol(),TFHGI,Indic_Name, 1, Shift)!= EMPTY_VALUE) HGI_Trend_DownArrow=true;
if (iCustom(Symbol(),TFHGI,Indic_Name, 6, Shift)!= EMPTY_VALUE) HGI_Wavy_Gold=true;
if (iCustom(Symbol(),TFHGI,Indic_Name, 7, Shift)!= EMPTY_VALUE) HGI_Wavy_Blue=true;
HGI_TrendUp = iCustom(Symbol(),TFHGI,Indic_Name, 0, Shift);
HGI_TrendDn = iCustom(Symbol(),TFHGI,Indic_Name, 1, Shift);
HGI_Wavy_G = iCustom(Symbol(),TFHGI,Indic_Name, 6, Shift);
HGI_Wavy_B = iCustom(Symbol(),TFHGI,Indic_Name, 7, Shift);
}
bool BuySignal()
{
ReadIndicatorValues();
if (((HGI_Trend_UpArrow == true ||
HGI_TrendUp > 0 ||
HGI_Wavy_Blue == true ||
HGI_Wavy_B >0) &&
(Close[1] > HGI_Wavy_B))
&& TimeCondition()) return(true); return(false);
}
bool SellSignal()
{
ReadIndicatorValues();
if (((HGI_Trend_DownArrow == true ||
HGI_TrendDn > 0 ||
HGI_Wavy_Blue == true ||
HGI_Wavy_B >0) &&
(Close[1] < HGI_Wavy_B))
&& TimeCondition()) return(true); return(false);
}
bool BuyExitSignal()
{
ReadIndicatorValues();
if (( ExitMode ==0 && (OrderType()==OP_BUY) &&
((HGI_Wavy_Gold == true && Close[1] < HGI_Wavy_G)|| (HGI_Wavy_Blue == true && Close[1] < HGI_Wavy_B)||(HGI_Trend_DownArrow == true))
)|| !TimeCondition()) return(true); return(false);
}
bool SellExitSignal()
{
ReadIndicatorValues();
if (( ExitMode ==0 && (OrderType()==OP_SELL) &&
((HGI_Wavy_Gold == true && Close[1] > HGI_Wavy_G)|| (HGI_Wavy_Blue == true && Close[1] > HGI_Wavy_B)||(HGI_Trend_UpArrow == true))
)|| !TimeCondition()) return(true); return(false);
}
Ray