Ayuda error de codigo

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #209931 quote
    JoseJose
    Participant
    New

    Podrían ayudarme? no tengo conocimientos de programación y no consigo validar el indicador.

    gracias

    //--- Definición de variables de entrada
    x1 = 0 //--- Desplazamiento de la onda
    x2 = 10 //--- Desplazamiento de la onda
    x3 = 20 //--- Desplazamiento de la onda
    
    //--- Calculo de las ondas
    wave1 = highest[barssince(high>x1)][high]
    wave2 = lowest[barssince(low<x2)][low]
    wave3 = highest[barssince(high>x3)][high]
    
    //--- Dibujar las ondas
    DRAWLINE(x1, wave1, x2, wave2) COLOURED(0,0,255)
    DRAWLINE(x2, wave2, x3, wave3) COLOURED(0,0,255)
    
    //--- Verificar situación actual del mercado
    if close > wave3 then
        DRAWTEXT("Tercera onda completada", x3, wave3) COLOURED(0,255,0)
    elseif close > wave2 then
        DRAWTEXT("Segunda onda completada", x2, wave2) COLOURED(255,255,0)
    elseif close > wave1 then
        DRAWTEXT("Primera onda completada", x1, wave1) COLOURED(255,0,0)
    else
        DRAWTEXT("Ninguna onda completada", x1, wave1) COLOURED(0,0,0)
    endif
    
    return
    #209934 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    ¿Qué error se informa?

    #209999 quote
    JoseJose
    Participant
    New

    línea 18:

    Error: comando desconocido

    #210008 quote
    fifi743fifi743
    Participant
    Master

    sostituire elseif con elsif

    robertogozzi thanked this post
Viewing 4 posts - 1 through 4 (of 4 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

Ayuda error de codigo


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Jose @jose_luis_perez Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by fifi743fifi743
3 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 02/18/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...