Predictive EMA

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35295 quote
    bolsatrilera
    Participant
    Master

    Esta es una adaptación de un código aparecido en la plataforma Tradingview :https://es.tradingview.com/script/IUskHZy5-Predictive-EMA/

    A su vez es una traducción de un indicador de mq4

    He hecho esta adaptación para Prorealtime v10.3 :

    REM PREDICTIVE EMA
    //adaptación para Prorealtime v10.3
    //del indicador EMAPredictive de mq4
    
    //@version=3
    //+------------------------------------------------------------------+
    //|                                               EMAPredictive3.mq4 |
    //|                                      Matthew ("Dr Chaos") Kennel |
    //|                            ftp://lyapunov.ucsd.edu/pub/nonlinear |
    //+------------------------------------------------------------------+
    
    LongPeriod=25.0
    ShortPeriod=8.0
    ExtraTimeForward=1.0
    
    p1=2.0/(LongPeriod+1.0)
    p3=2.0/(ShortPeriod+1.0)
    t1=(LongPeriod-1.0)/2.0
    t3=(ShortPeriod-1.0)/2.0
    t=ShortPeriod + ExtraTimeForward
    
    ma1=close
    ma3=ma1
    val=ma1
    slope1=ma1
    predict=ma1
    ExtBuffer=ma1
    for i=1 to LongPeriod
    val=close[i]
    ma1=p1*val + (1.0-p1)*ma1
    ma3=p3*val + (1.0-p3)*ma3
    slope1=(ma3-ma1)/(t1-t3)
    predict=ma3 + slope1*t
    ExtBuffer= predict
    next
    
    if close>ExtBuffer then
    r=0
    g=153
    b=0
    else
    r=255
    g=0
    b=0
    endif
    
    return ExtBuffer coloured (r,g,b)as "Predictive EMA"
    
    GraHal thanked this post
    #35299 quote
    GraHal
    Participant
    Master
    Esto se ve bien bolsatrilera que usted mucho!
    
    Me refiero al sitio web de tradingview, como al menos un comerciante hace un muy buen análisis de Elliott Waves.
    
    GraHal
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Predictive EMA


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by GraHal
8 years, 9 months ago.

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