Este error no se a qué se debe

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #235222 quote
    ANTONIUSU
    Participant
    Junior

    Buenos días.-

    A ver si alguien me puede ayudar.

    // Calcular MACD
    EMA12 = ExponentialAverage[12](close)
    EMA26 = ExponentialAverage[26](close)
    MACDLine = EMA12 – EMA26
    SignalLine = ExponentialAverage[9](MACDLine)

    Me aparece el triangulito de error en la línea: MACDLine = EMA12 – EMA26

    y no se a que se debe y tampoco puedo repararlo.

    Gracias y saludos

    #235223 quote
    druby
    Participant
    New

    MACDLine es una palabra clave incorporada para la línea MACD.

    Por lo tanto, no puede usarlo como una variable de usuario.

    Cambie el nombre de la variable a un nombre único.

    por ejemplo, iMACDline.

    robertogozzi and Iván González thanked this post
    #235224 quote
    GraHal
    Participant
    Master

    Intente usar myMACDLine

    robertogozzi thanked this post
    #235225 quote
    ANTONIUSU
    Participant
    Junior

    Ahora tengo más errores.

    Screenshot_849.png Screenshot_849.png
    #235227 quote
    ANTONIUSU
    Participant
    Junior

    Con myMACDLine SI que funciona!!

    Gracias

    #235228 quote
    druby
    Participant
    New

    Los nombres de variables solo pueden contener caracteres alfanuméricos, A-Z, a-z, 0-9.

    Deben comenzar con una letra y no distinguen entre mayúsculas y minúsculas, A = a.

    No se pueden utilizar caracteres especiales como el guión bajo ‘_’.

    El nombre de la variable resaltado en verde es para mostrar que el nombre de esta variable es una variable de palabra clave incorporada, similar a MACDline.

    GraHal and Iván González thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Este error no se a qué se debe


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
ANTONIUSU @antoniusu Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by druby
1 year, 7 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 07/13/2024
Status: Active
Attachments: 1 files
Logo Logo
Loading...