Cruce de medias en diferentes velas

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #190877 quote
    Fr7Fr7
    Participant
    Master

    Hola, quería hacer el screener e indicador siguiente:

    1)En las 22 últimas velas la media 50 cruza por encima la media 200

    2)En la vela actual la media wilder 5 cruza por encima la media weighted 30

    A ver si alguien me puede decir si el código está correcto y por qué no obtengo resultados….

    result = 0
    FOR i = 1 TO 22 DO
    if ExponentialAverage[50](close) crosses over Average[200](close) then
    result = 1
    break
    endif
    NEXT
    c1=wilderAverage[5](close) crosses over WeightedAverage[30](close)
    SCREENER[c1 and result=1]
    #190878 quote
    Fr7Fr7
    Participant
    Master

    Y aquí tampoco me dibuja ninguna flecha:

    result = 0
    FOR i = 1 TO 22 DO
    if ExponentialAverage[50](close) crosses over Average[200](close) then
    result = 1
    break
    endif
    NEXT
    c1=wilderAverage[5](close) crosses over WeightedAverage[30](close)
    if result = 1 AND c1 then
    drawarrowup(barindex,lowest[10](low)) coloured(0,51,255)
    endif
    RETURN
    #190880 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La línea 3 debe decir:

    if ExponentialAverage[50](close)[i] crosses over Average[200](close)[i] then
    Fr7 thanked this post
Viewing 3 posts - 1 through 3 (of 3 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

Cruce de medias en diferentes velas


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Fr7 @fr7 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 03/31/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...