Señalizar maximos y minimos relativos
Forums › ProRealTime foro Español › Soporte ProBuilder › Señalizar maximos y minimos relativos
- This topic has 6 replies, 3 voices, and was last updated 7 months ago by
jantongarciaf.
-
-
04/11/2024 at 5:24 PM #231416
Hola,
estoy tratando de hacerlo pero no me señaliza lo que yo quiero y no se si es posible.
Quiero dibujar un indicador que me señale con flechas en el grafico del precio los minimos y maximos relativos definiendolos de la siguiente manera:
Maximo relativo = sería aquella vela cuyo maximo sea mayor a los maximos de las “n” velas anteriores y posteriores
minimo relativo = sería aquella vela cuyo minimo sea menor a los minimos de las “n” velas anteriores y posterioresGracias
04/12/2024 at 7:33 AM #231425Hola
Aquí tienes una forma de hacerlo:12345678910111213141516171819202122232425////////pivothighph1 = high < high[prd]ph2 = highest[prd](high) < high[prd]ph3 = high[prd] > highest[prd](high)[prd+1]if ph1 and ph2 and ph3 thenpivotH = high[prd]drawtext("▼",barindex[prd],high[prd])coloured("red")elsepivotH = pivotHendif////////pivotlowpl1 = low > low[prd]pl2 = lowest[prd](low) > low[prd]pl3 = low[prd] < lowest[prd](low)[prd+1]if pl1 and pl2 and pl3 thenpivotL = low[prd]drawtext("▲",barindex[prd],low[prd])coloured("green")elsepivotL = pivotLendifreturn //pivotH as "PivotHigh", pivotL as "PivotLow", lowest[prd](low) as "LLL" coloured("red")04/12/2024 at 7:35 AM #23142604/12/2024 at 8:06 PM #23146904/15/2025 at 6:40 PM #245922Buen aporte, lo he intentado integrar en el prorealtime pero me indica que la variable prd no está definida ¿por qué puede ser? hay forma de corregirlo?
gracias
04/16/2025 at 7:37 AM #245944pon en la primera linea prd=10 por ejemplo
1 user thanked author for this post.
04/20/2025 at 5:52 PM #246148genial, Ivan . habría forma de incluir en el indicador el procentaje de incremento en positivo o negativo de un máximo y mínimo relativo con el anterior?
-
AuthorPosts
Find exclusive trading pro-tools on 