Bonjour,
Quelqu’un peu rajouter le sma 20 a ce code ?
merci d’avance 🙏
// — ProScreener “Fernanda” Setup —
// 1. Indicator Definitions
ma7 = Average[7](close)
tenkanLine = TenkanSen[9,26,52]
// 2. Condition: Price above MA7 and Tenkan-sen
priceCondition = close > ma7 AND close > tenkanLine
// 3. Condition: MA7 must be ascending
maAscending = ma7 > ma7[1]
// 4. Combine all filters
finalCondition = priceCondition AND maAscending
SCREENER[finalCondition] (roc[1](close) AS “Variation %”)
Bonjour, voici:
(c’est le bouton </> qui permet d’insérer un script de code PRT):
// — ProScreener "Fernanda" Setup —
// 1. Indicator Definitions
ma7 = Average[7](close)
tenkanLine = TenkanSen[9,26,52]
// 2. Condition: Price above MA7 and Tenkan-sen
priceCondition = close > ma7 AND close > tenkanLine
// 2bis. Demande d'ajoût SMA20 (sans précision supplémentaire, l'hypothèse faite est que le cours soit au-dessus de SMA20)
sma20= average[20](close)
addedSMA20condition = close>sma20
// 3. Condition: MA7 must be ascending
maAscending = ma7 > ma7[1]
// 4. Combine all filters
finalCondition = priceCondition AND maAscending AND addedSMA20condition
SCREENER[finalCondition] (roc[1](close) AS "Variation %")