Indicators: ColorXADX_HTF

 

ColorXADX_HTF:

The ColorXADX indicator with the timeframe selection option available in the input parameters.

Figure 1. The ColorXADX_HTF indicator

Author: Nikolay Kositsin

 
When i compile this indicator,there is 7 warning with "expression not boolean".
 
Bonjour
Voici la correction, mais le code ne donne rien, le code ne marche pas pour moi.

Sinon pour les explications

expression not boolean dans 


if(CopyTime(Symbol(),TFrame,iTime[bar],1,IndTime)<=0) return(RESET);

Ce code est dans une fonction
bool CountIndicator().

Elle DOIT retourner un bool

Si tu cherche dans le le code, tu peux voir que RESET n'est pas un bool

#define RESET 0             

donc ça génère un avertissement

Correction


Change tous les reset en avertissement en false et hop

Exemple

if(CopyTime(Symbol(),TFrame,iTime[bar],1,IndTime)<=0) return(RESET);

if(CopyTime(Symbol(),TFrame,iTime[bar],1,IndTime)<=0) return(False);
 
oops

Good morning
Here is the correction, but the code does nothing, the code does not work for me.

Otherwise for the explanations
not boolean expression in




This code is in a function
bool CountIndicator().

It MUST return a bool

If you look in the code, you can see that RESET is not a bool

so it generates a warning

Correction



Change all reset warnings to false and presto

Example