NunoParticipant
Average
Bonjour
est il possible d’afficher les bandes de bollinger d’un graphique Month (calculé à partir de (close+high+low)/3 sur 20 periodes) sur un graphique daily?
c’est ok pour recuperer le High / Low du mois précedent, mais il reste à avoir Close , puis à recuperer cela sur 20 periodes et ensuite faire le calcul des bandes de bollinger
once monthlyHigh=undefined
once monthlyLow=undefined
once monthlyClose=undefined
dailyHigh= DHigh(1)
dailyLow= DLow(1)
// monthly high/low
If Month <> Month[1] then
monthlyHigh = Highest[BarIndex - lastMonthBarIndex](dailyHigh)
monthlyLow = Lowest[BarIndex - lastMonthBarIndex](dailyLow)
lastMonthBarIndex = BarIndex
ENDIF
return monthlyHigh as "Prev Month High", monthlyLow as "Prev Month Low"
merci
nuno