Ayuda error de codigo

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #209931 quote
    Jose
    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
    robertogozzi
    Moderator
    Master

    ¿Qué error se informa?

    #209999 quote
    Jose
    Participant
    New

    línea 18:

    Error: comando desconocido

    #210008 quote
    fifi743
    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.

Ayuda error de codigo


Soporte ProBuilder

New Reply
Author
author-avatar
Jose @jose_luis_perez Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by fifi743
2 years, 11 months ago.

Topic Details
Forum: Soporte ProBuilder
Language: Spanish
Started: 02/18/2023
Status: Active
Attachments: No files
Logo Logo
Loading...