Se puede colorear una media creada dentro de un indicicador

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56598 quote
    Polnet
    Participant
    Senior

    He creado un oscilador y la media que forma ese oscilador la quería colorearla con colores diferentes, en función de lo que hagan los valores que la componen, pero me da error y no se si puede hacer dentro del indicador, un ejemplo como este y me da error.

    // Media  im= x+y
    
    M=ExponentialAverage[r](im) 
    
    If  X[1] < X and Y[1] < Y then 
    
    M coloured (255,255,0)
    
    endif  
    
    If  X[1] > X and Y[1] > Y then 
    
    M coloured (255,0,0)
    
    endif
    #57819 quote
    vitatrader35
    Participant
    Average

    Hola, Polnet

    Prueba así a ver si cuela…

    If  X[1] < X and Y[1] < Y then
     
    M1=255
    M2=255
    M3=0
    //coloured (255,255,0)
     
    endif
     
    If  X[1] > X and Y[1] > Y then
    M1=255
    M2=0
    M3=0
    //M coloured (255,0,0)
    endif
    return M coloured (M1,M2,M3)
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Se puede colorear una media creada dentro de un indicicador


ProBuilder: Indicadores y Herramientas

New Reply
Author
author-avatar
Polnet @polnet Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by vitatrader35
8 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 12/27/2017
Status: Active
Attachments: No files
Logo Logo
Loading...