Bonjour Nicolas,
J’utilise encore toujours cet indicateur mais je souhaiterais un screener listant les départs à la hausse uniquement (fleche bleue) durant les 3 derniers jours. Est-ce possible?
J’ai cherché si un tel screener existe déjà mais pas trouvé.
Merci
En repartant de ce code de screener pour cet indicateur: https://www.prorealcode.com/topic/codage-dun-screener-a-partir-dun-indicateur-de-signaux-dachat-et-de-vente/#post-144226 ,
ci-dessous la version “flèche bleue dans les 3 dernières bougies” uniquement :
//PRC_Trend Impulse Filter | screener
//https://www.prorealcode.com/topic/codage-dun-screener-a-partir-dun-indicateur-de-signaux-dachat-et-de-vente/
// --- settings
length = 100
mid = 1
// --- end of settings
once b = medianprice
if barindex>length then
src = (highest[length](high)+lowest[length](low))/2
rising = src-src[length]>0
falling = src-src[length]<0
a = rising or falling
b = exponentialaverage[mid](a*src+(1-a)*b[1])
//—-
if b>b[1] then
os=1
elsif b<b[1] then
os=-1
endif
test = summation[3](os <> os[1] and os=1)>0
endif
screener[test]