bonjour,
je recherche un screener
Cours support + croisements sma 5 et sma 10
merci d’avance
cordialement
hugo
Pourquoi pas, mais il faudrait définir de quel type de support on parle ? Il y a multitudes de façon de trouver un support et c’est également sujet à interprétation. Des idées ?
Voici un exemple très simple. Comme le dit Nicolas, il faudrait définir ce que signifie le terme “soutien”…
// --- Screener Parameters ---
fastPeriod = 5
slowPeriod = 10
supportLookback = 40
supportdist = 3 // %
// --- Calculations ---
smaFast = Average[fastPeriod](close)
smaSlow = Average[slowPeriod](close)
// Define support and Logic: Price is within 3% of the support level
supportLevel = lowest[supportLookback](low[1])
th = supportLevel * (1+supportdist/100)
nearSupport = close <= th
bullishCross = smaFast CROSSES OVER smaSlow
IF nearSupport AND bullishCross THEN
screenerCondition = 1
ELSE
screenerCondition = 0
ENDIF
SCREENER[screenerCondition] ((close / supportLevel-1)*100 AS "%SupportProx")
Salut Ivanmerci beaucoup.🙏cordialementHugo