Bonjour, je ne réussis pas à rajouter l’indicateur ci-dessous sur pro real time
Un message d’erreur s’affiche sur les lignes 11 et 12
Je ne vois pas l’erreur car je ne suis pas programmateur
Pouvez vous m’aider?
Je vous remercie d’avance
//1
indicator1 = BollingerUp[20](typicalPrice)
indicator2 = BollingerDown[20](typicalPrice)
c1 = (indicator1 > indicator1[1]) and (indicator2 < indicator2[1]) and (high> indicator1)
c2 = (indicator1[1] > indicator1[2])and (indicator2[1] < indicator2[2]) and (high[1]> indicator1[1])
c3 = (indicator1[2] > indicator1[3])and (indicator2[2] < indicator2[3]) and (high[2]> indicator1[2])
tromp=(c1 or c2 or c3)
//2
indicator10 = BollingerBandWidth[20](typicalPrice)
indicator20 = Average[7](BollingerBandWidth[20](typicalPrice))
c10 = ((indicator10 < indicator20) or (indicator10[1] < indicator20[1])or (indicator10[2] <
indicator20[2])) and (high<Indicator1 and low>Indicator2)
ok=c10 or tromp
return ok
bonsoir
il marche
ci joint
//1
indicator1 = BollingerUp[20](typicalPrice)
indicator2 = BollingerDown[20](typicalPrice)
c1 = (indicator1 > indicator1[1]) and (indicator2 < indicator2[1]) and (high> indicator1)
c2 = (indicator1[1] > indicator1[2])and (indicator2[1] < indicator2[2]) and (high[1]> indicator1[1])
c3 = (indicator1[2] > indicator1[3])and (indicator2[2] < indicator2[3]) and (high[2]> indicator1[2])
tromp=(c1 or c2 or c3)
//2
indicator10 = BollingerBandWidth[20](typicalPrice)
indicator20 = Average[7](BollingerBandWidth[20](typicalPrice))
c10 = ((indicator10 < indicator20) or (indicator10[1] < indicator20[1])or (indicator10[2]<indicator20[2])) and (high<Indicator1 and low>Indicator2)
ok=c10 or tromp
return ok
Je vous remercie mais qu’avez vous fait?
Je ne suis programmateur mais curieux?
Ensuite j’ai un autre indicateur pour vous également.
Pouvez vous m’aider?
Je vous remercie d’avance
/1
Indicator1 = BollingerUp[20](typicalPrice)
Indicator2 = BollingerDown[20](typicalPrice)
c1 = (indicator1 > indicator1[1]) and (indicator2 < indicator2[1]) and (low< indicator2)
c2 = (indicator1[1] > indicator1[2])and (indicator2[1] < indicator2[2]) and (low[1]< indicator2[1])
c3 = (indicator1[2] > indicator1[3])and (indicator2[2] < indicator2[3]) and (low[2]< indicator2[2])
tromp=(c1 or c2 or c3)
//2
indicator10 = BollingerBandWidth[20](typicalPrice)
indicator20 = Average[7](BollingerBandWidth[20](typicalPrice))
c10 = ((indicator10 < indicator20) or (indicator10[1] < indicator20[1])or (indicator10[2] <
indicator20[2])) and (high<Indicator1 and low>Indicator2)
ok=c10 or tromp
return ok
Je suis désolé du dérangement j’en ai encore deux
Si vous pouvez me trouver la solution, je vous remercie d’avance
//Le premier :
indicator1 =highest[100](high)
c1 = (indicator1 <= indicator1[1])and(indicator1[1] <= indicator1[2])and(indicator1[2] <=
indicator1[3])and(indicator1[3] <= indicator1[4])and(indicator1[4] <=
indicator1[5])and(indicator1[5] <= indicator1[6])and(indicator1[6] <= indicator1[7])
mm=close>Average[50](close) and close>Average[150](close) and
Average[50](close)>Average[150]
ok=c1 and mm
return ok
//Le deuxième :
indicator1 = Average[20](typicalPrice)+2*std[20](typicalPrice)
c1 = (close > indicator1) and (close[1]<indicator1[1])
indicator2 = CALL “PreBreakout Up”(close)
c2 = (indicator2 = 1) or (indicator2[1] = 1) or (indicator2[2] = 1)or (indicator2[3] = 1)or
(indicator2[4] = 1)
volum=(volume>500) and volume*close>20000
ok=c1 AND c2 and volum
return ok
@Ben Ji
>> Pour la clarté des messages sur les forums de ProRealCode, merci d’utiliser le bouton “insert PRT code” pour séparer la partie texte de la partie code, merci ! <<
bonjour
il y avait une coupure la la ligne.
la ligne 11 et 12 sur la même ligne
comme dans l’autre algo “premier”
la ligne 3 ,4 et 5 sont la même ligne pas de saut de ligne.
cordialement