iNDICADOR Y SCREENER QUE MARQUE CON UNA FLECHA EL MOMENTO DE CORTE ENTRE 2 MEDIA

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #251843 quote
    JAVIERGJAVIERG
    Participant
    New
    INDICADOR Y SCREENER que marque con una flecha el momento de corte entre 2 medias ( por ejemplo 150 y 450 ponderada ) en cualquier tempralidad y screener que nos cuente velas desde el momento que se dió el corte. En el ejemplo necesitaría que el indicador mostrra la flecha como en el adjunto y en el screener que nos dijera que lleva x velas ( 28 velas en el ejemplo ) desde que se cortaron al alza. Y a la baja igual. Muchas gracias anticipadas.
    Corte-medias.jpg Corte-medias.jpg
    #251851 quote
    JAVIERGJAVIERG
    Participant
    New
    Perdón porque no puse si se podría hacer, no he dicho ni un hola ni un buenos días, disculpas.
    #251859 quote
    JSJS
    Participant
    Master

    Hola,

    Este es el indicador…

    Once FastPeriod=150
    Once SlowPeriod=450
    
    WAFast=WeightedAverage[FastPeriod](Close)
    WASlow=WeightedAverage[SlowPeriod](Close)
    
    If WAFast crosses over WASlow then
    DrawArrowUp(BarIndex,WAFast-Range)Coloured("Green")
    EndIf
    
    If WAFast crosses under WASlow then
    DrawArrowDown(BarIndex,WAFast+Range)Coloured("Red")
    EndIf
    
    Return WAFast as "Fast" Coloured("Red"), WASlow as "Slow" Coloured("Green")

    robertogozzi and Iván González thanked this post
    Scherm­afbeelding-2025-09-26-om-16.23.41.png Scherm­afbeelding-2025-09-26-om-16.23.41.png
    #251863 quote
    JSJS
    Participant
    Master
    Hola, Aquí tienes el screener… En el screener verás dos columnas con “CrossOver” y “CrossUnder”. Los números en estas columnas indican cuántas velas atrás tuvo lugar un determinado cruce. Cuando utilizas PRT Complete, el número máximo de velas históricas es de 256 y cuando utilizas PRT Premium, el número máximo es de 1024.
    Once FastPeriod=150
    Once SlowPeriod=450
    
    WAFast=WeightedAverage[FastPeriod](Close)
    WASlow=WeightedAverage[SlowPeriod](Close)
    
    COBars=BarsSince(WAFast crosses over WASlow)
    CUBars=BarsSince(WAFast crosses under WASlow)
    
    c1=COBars=1//WAFast crosses over WASlow
    c2=CUBars=1//WAFast crosses under WASlow
    
    Screener[c1 or c2](COBars as "CrossOver", CUBars as "CrossUnder")
    Iván González thanked this post
    Scherm­afbeelding-2025-09-26-om-17.14.48.jpg Scherm­afbeelding-2025-09-26-om-17.14.48.jpg
    #251910 quote
    JAVIERGJAVIERG
    Participant
    New
    Muchísimas gracias, Es justo lo que buscaba.
    JS thanked this post
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

iNDICADOR Y SCREENER QUE MARQUE CON UNA FLECHA EL MOMENTO DE CORTE ENTRE 2 MEDIA


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
JAVIERG @javierg Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by JAVIERGJAVIERG
1 year ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 09/26/2025
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...