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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
ColorXADX_HTF:
The ColorXADX indicator with the timeframe selection option available in the input parameters.
Author: Nikolay Kositsin