bonjour
j'ai récupéré cet indicateur et quand je le compile j'ai cette erreur :
Erreur dans l'indicateur : Objectif10percent_sum null
D'ou cela peut t'il venir ?
je suis sous linux mais je ne pense pas que cela ai de l'importance
pouvez vous m'aider ?
voici le code :
//////// Calculate the rsi Signal /////////
IF (rsi[12] (DClose(0)) <= 30) AND (rsi[12] (DClose(0)) > rsi[12] (DClose(1))) THEN
RSISignal = 1
ELSIF (rsi[12] > 30) OR (rsi[12] (DClose(0)) <= rsi[12] (DClose(1))) THEN
RSISignal = 0
ENDIF
//////// Calculate the macd Signal /////////
IF (MACDline[5,9,4] (DClose(0)) <= 0) AND (MACDline[5,9,4] (DClose(0)) > MACDline[5,9,4] (DClose(1))) THEN
MACDSignal = 1
ELSIF (MACDline[5,9,4] > 0) OR (rsi[12] (DClose(0)) <= MACDline[5,9,4] (DClose(1))) THEN
MACDSignal = 0
ENDIF
//////// Calculate the Moneyf Flow Index (MFI) Signal /////////
IF (Moneyflow[12] (DClose(0)) <= 20) AND (Moneyflow[12] (DClose(0)) > Moneyflow[12] (DClose(1))) THEN
MoneyFlowSignal = 1
ELSIF (Moneyflow[12] > 20) OR (Moneyflow[12] (DClose(0)) <= Moneyflow[12] (DClose(1))) THEN
MoneyFlowSignal = 0
ENDIF
//////// Calculate the Smoothed Stochastic Signal /////////
IF (SmoothedStochastic[12,2] (DClose(0)) <= 20) AND (SmoothedStochastic[12,2] (DClose(0)) > SmoothedStochastic[12,2] (DClose(1))) THEN
SMSTOSignal = 1
ELSIF (SmoothedStochastic[12,2] > 20) OR (SmoothedStochastic[12,2] (DClose(0)) <= SmoothedStochastic[12,2] (DClose(1))) THEN
SMSTOSignal = 0
ENDIF
//////// Check if any support /////////
Old = (DLow(254))
Recent = (DLow(5))
IF (Old<=Recent) THEN
Support = 1
ELSIF (Old>Recent) THEN
Support = 0
ENDIF
/////// Definition of the trigger value ///////
SUM = RSISignal + MACDSignal + MoneyFlowSignal + SMSTOSignal + Support
RETURN SUM
j'ai récupéré cet indicateur et quand je le compile j'ai cette erreur :
Erreur dans l'indicateur : Objectif10percent_sum null
D'ou cela peut t'il venir ?
je suis sous linux mais je ne pense pas que cela ai de l'importance
pouvez vous m'aider ?
voici le code :
//////// Calculate the rsi Signal /////////
IF (rsi[12] (DClose(0)) <= 30) AND (rsi[12] (DClose(0)) > rsi[12] (DClose(1))) THEN
RSISignal = 1
ELSIF (rsi[12] > 30) OR (rsi[12] (DClose(0)) <= rsi[12] (DClose(1))) THEN
RSISignal = 0
ENDIF
//////// Calculate the macd Signal /////////
IF (MACDline[5,9,4] (DClose(0)) <= 0) AND (MACDline[5,9,4] (DClose(0)) > MACDline[5,9,4] (DClose(1))) THEN
MACDSignal = 1
ELSIF (MACDline[5,9,4] > 0) OR (rsi[12] (DClose(0)) <= MACDline[5,9,4] (DClose(1))) THEN
MACDSignal = 0
ENDIF
//////// Calculate the Moneyf Flow Index (MFI) Signal /////////
IF (Moneyflow[12] (DClose(0)) <= 20) AND (Moneyflow[12] (DClose(0)) > Moneyflow[12] (DClose(1))) THEN
MoneyFlowSignal = 1
ELSIF (Moneyflow[12] > 20) OR (Moneyflow[12] (DClose(0)) <= Moneyflow[12] (DClose(1))) THEN
MoneyFlowSignal = 0
ENDIF
//////// Calculate the Smoothed Stochastic Signal /////////
IF (SmoothedStochastic[12,2] (DClose(0)) <= 20) AND (SmoothedStochastic[12,2] (DClose(0)) > SmoothedStochastic[12,2] (DClose(1))) THEN
SMSTOSignal = 1
ELSIF (SmoothedStochastic[12,2] > 20) OR (SmoothedStochastic[12,2] (DClose(0)) <= SmoothedStochastic[12,2] (DClose(1))) THEN
SMSTOSignal = 0
ENDIF
//////// Check if any support /////////
Old = (DLow(254))
Recent = (DLow(5))
IF (Old<=Recent) THEN
Support = 1
ELSIF (Old>Recent) THEN
Support = 0
ENDIF
/////// Definition of the trigger value ///////
SUM = RSISignal + MACDSignal + MoneyFlowSignal + SMSTOSignal + Support
RETURN SUM