Erreur dans l'indicateur : Objectif10percent_sum null

Forum d'entraide ProRealTime : prise en main, réglages, indicateurs, programmation ProBuilder et ProOrder, astuces entre utilisateurs de la plateforme.
mochel
Messages : 3
Enregistré le : 21 avr. 2012 13:53

Erreur dans l'indicateur : Objectif10percent_sum null

Message non lu par mochel »

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