Modifier bande de Bollinger sup et inf
Forums › ProRealTime forum Français › Support ProBuilder › Modifier bande de Bollinger sup et inf
- This topic has 7 replies, 3 voices, and was last updated 8 months ago by Iván.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
03/29/2024 at 8:38 AM #230682
Bonjour, est il possible de modifier les bandes de Bollinger sup et inf. En effet au lieu de prendre des écarts types, c’est de calculer comme le RSI moyenne des hausses pour la bande sup et moyenne des baisses pour la bande inf.
Cordialement
03/29/2024 at 1:01 PM #23070603/29/2024 at 1:27 PM #230707Ou ça12345678910111213141516//Bollinger Bands RSIREM variationrialzo = MAX(0, CLOSE - CLOSE[1])ribasso = MAX(0, CLOSE[1] - CLOSE)REM average of up closeREM average of down closemmRialzo = WILDERAVERAGE[20](rialzo)mmRibasso = WILDERAVERAGE[20](ribasso)BBUp = Average[20](close) + (9 * mmRialzo)BBDown = Average[20](close) - (9 * mmRialzo)return BBup,BBDown03/29/2024 at 1:37 PM #230708Holà. Ici, vous trouverez l'indicateur Bandas de Bollinger pour que vous puissiez modifier votre enthousiasme.
12345678// Inputsperiod = 20 //Bollinger Bands Calculations = 2 // Offset Bollinger Bands//-------Bollinger Bands---------//avgclose = average[period,0](close)bbtop = avgclose + s*STD[period](close)bbdown = avgclose - s*STD[period](close)RETURN bbtop AS "Upper Band", bbdown AS "Lower Band", avgclose as "Average" coloured("red")style(line,2)Vous avez ici un calcul du RSI et des bandes créées pour le support mobile qui compte les valeurs du RSI.
123456789101112131415161718192021// Contributionspériode = 20periodrsi = 7 //période RSImulti = 0,1//-------Calcul de la moyenne-----------//avgclose = moyenne[période](fermeture)//-------Calcul des bandes RSI--------------//// Calculer les différences de prixhaut = max(0, fermer - fermer[1])down = max(0, fermer[1] - fermer)// Calculer les moyennes diff Up & DownmmUp = wilderAverage[periodrsi](haut)mmDown = wilderAverage[periodrsi](vers le bas)// Calculer le RSIRS = mmHaut / mmBasmonRSI = 1 - 1 / (1 + RS)// Définir les bandesupperBand = avgclose*(1+multi*(1-myRSI))bande inférieure = avgclose*(1-multi*(1-myRSI))// Tracer des bandesRETurn upperBand AS "Upper Band", lowerBand AS "Lower Band", avgclose comme "Average" coloured("red")style(line,2)03/29/2024 at 1:37 PM #23071003/29/2024 at 1:49 PM #230711ok123456789101112131415161718192021// Contributionsperiode = 20periodrsi = 7 //période RSImulti = 0.1//-------Calcul de la moyenne-----------//avgclose = average[periode](close)//-------Calcul des bandes RSI--------------//// Calculer les différences de prixhaut = max(0, close - close[1])down = max(0, close[1] - close)// Calculer les moyennes diff Up & DownmmUp = wilderAverage[periodrsi](high)mmDown = wilderAverage[periodrsi](low)// Calculer le RSIRS = mmup / mmdownmyRSI = 1 - 1 / (1 + RS)// Définir les bandesupperBand = avgclose*(1+multi*(1-myRSI))lowerband = avgclose*(1-multi*(1-myRSI))// Tracer des bandesRETurn upperBand AS "Upper Band", lowerBand AS "Lower Band", avgclose as "Average" coloured("red")style(line,2)1 user thanked author for this post.
03/29/2024 at 10:03 PM #23072604/02/2024 at 11:10 AM #230885Hola
No sé muy bien por qué pero al copiar el código cogió “,” en lugar de “.”123456789101112131415161718192021// Contributionsperiode = 20periodrsi = 7 //période RSImulti = 0.1//-------Calcul de la moyenne-----------//avgclose = average[periode](close)//-------Calcul des bandes RSI--------------//// Calculer les différences de prixhaut = max(0, close - close[1])down = max(0, close[1] - close)// Calculer les moyennes diff Up & DownmmUp = wilderAverage[periodrsi](high)mmDown = wilderAverage[periodrsi](low)// Calculer le RSIRS = mmup / mmdownmyRSI = 1 - 1 / (1 + RS)// Définir les bandesupperBand = avgclose*(1+multi*(1-myRSI))lowerband = avgclose*(1-multi*(1-myRSI))// Tracer des bandesRETurn upperBand AS "Upper Band", lowerBand AS "Lower Band", avgclose as "Average" coloured("red")style(line,2) -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: