Señalizar maximos y minimos relativos
- This topic has 6 replies, 3 voices, and was last updated 6 days ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
Similar topics:
Forums › ProRealTime foro Español › Soporte ProBuilder › Señalizar maximos y minimos relativos
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 posteriores
Gracias
Hola
Aquí tienes una forma de hacerlo:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
////////pivothigh ph1 = high < high[prd] ph2 = highest[prd](high) < high[prd] ph3 = high[prd] > highest[prd](high)[prd+1] if ph1 and ph2 and ph3 then pivotH = high[prd] drawtext("▼",barindex[prd],high[prd])coloured("red") else pivotH = pivotH endif ////////pivotlow pl1 = low > low[prd] pl2 = lowest[prd](low) > low[prd] pl3 = low[prd] < lowest[prd](low)[prd+1] if pl1 and pl2 and pl3 then pivotL = low[prd] drawtext("▲",barindex[prd],low[prd])coloured("green") else pivotL = pivotL endif return //pivotH as "PivotHigh", pivotL as "PivotLow", lowest[prd](low) as "LLL" coloured("red") |
Buen 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
pon en la primera linea prd=10 por ejemplo
genial, 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?
Find exclusive trading pro-tools on