Center of Gravity

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #19126 quote
    Duck74Duck74
    Participant
    Average

    Buongiorno e Buone Feste a tutti

    nei miei sistemi di trading spesso uso su MT5 il Center of Gravity

    per caso esiste anche su Prorealtime ?

     

    Grazie

    #19168 quote
    supertitisupertiti
    Participant
    Master

    Hola Duck

     

    Aqui tienes el centro de gravedad de J Ehlers

    ////////////////centre gravité John Ehlers
    /////////////////
    
    // variable = n - par défaut =10
    
    sum = 0
    wgt = 0
    
    b=(customclose)  // défaut =medianprice
    
    FOR i = 0 TO n - 1
     sum = sum + (1 + i) * b[i]
     wgt = wgt + b[i]
    NEXT
    
    IF wgt <> 0 THEN
     cG =( - sum / wgt)  + ( (n+1)/2)
     
     
    ENDIF
    
    
    RETURN cg as"centre gravité",cg[1] as "trigger",0 as "zero" 

    http://sohocool.over-blog.com/article-31158096.html

    Bard thanked this post
    #19169 quote
    Duck74Duck74
    Participant
    Average

     

    scusami ma non sono pratico di programmazione

    mi dice    ( Errore Variabile  N  )  ??

     

    Grazie

    #19170 quote
    Duck74Duck74
    Participant
    Average

    Capito !!!!     🙂

     

    Grazie mille per la Gentilezza

    Buone Feste

    #19216 quote
    bolsatrilerabolsatrilera
    Participant
    Master

    Ciao Duck.
    È necessario mettere nelle variabili scatola n come n = 10.
    Si può anche mettere il codice directamnte sostituendo n 10

    spera capite, questo è con google traduttore

    #19219 quote
    bolsatrilerabolsatrilera
    Participant
    Master

    Un centro de gravita Belkhayate .

    REM centro de gravedad de Belkhayate
    k=p3 // Variable p3= 65
    de48=DPO[k*2] (close)
    if de48=de48[1] and de48[1]=de48[ 2] and de48[2]<>de48[ 3] then
    flag=1
    endif
    n=(k*2)-4
    p=(n/2)-1
    d100=DPO[n]( close)
    moy100=close- d100
    co=(moy100-moy100[ 1]+(close[ p])/n)*n
    if flag[1]=1 and flag[2]=0 then
    hh=co[1]
    endif
    if flag[1]=1 then
    co=hh
    endif
    n=p3 mod 2
    p=(p3-n)/2
    p3=(2*p)+1
    once x=0
    w=abs((p-x)/ p)
    w=w*w*w
    w=(1-w)
    w=w*w*w
    x=x+1
    if barindex=p3 then
    a=0
    b=0
    e=0
    for i=1 to p3
    z=barindex-i+ 1
    a=a+w[z]
    b=b+w[z]*(i)
    e=e+(i)*(i)* w[z]
    next
    endif
    if barindex>p3 then
    c=0
    d=0
    for i=1 to p3
    z=barindex-i+ 1
    c=c+co[p3+p- i]*w[z]
    d=d+co[p3+p- i]*w[z]*( i)
    next
    endif
    alpha=(a*d-b* c)/(a*e-b* b)
    beta=(c*e-b* d)/(a*e-b* b)
    lowess=alpha* (p+1)+beta
    if barindex < p3*2 then
    lowess=undefined
    endif
    
    zz = close - lowess
    zzsigma = STD[p3](zz)
    bb1 = lowess + zzsigma
    bb2 = lowess +1.618* zzsigma
    bb3 = lowess +2* zzsigma
    bl1 = lowess - zzsigma
    bl2 = lowess - 1.618* zzsigma
    bl3 = lowess - 2* zzsigma
    
    return lowess, bb1, bb2, bb3, bl1, bl2, bl3
    
    Bard thanked this post
    telecinco.png telecinco.png
    #19258 quote
    Duck74Duck74
    Participant
    Average

    Ciao

    si si ho capito

    ti ringrazio 🙂

    #19369 quote
    supertitisupertiti
    Participant
    Master

    ~@ Bolsatrilera

    El centro de gravidad de Belkhayate est una mierda !!! este indicador tiene un brillo para atraer los pajajos que empiecan a volar !!

    Este indicador dibuja perfectamente el pasado, es un engaño total !!

    Coje una foto hoy de un valor, coje una foto la semana que viene de la misma y despues otra y otra … te vas a dar cuenta de lo que pasa con este indicador ?

    y este sigue con los seminarios etc … cuidadin !!

    El centro de Ehlers si funcciona (un matematico formal ) … el de Belkhayate es aquel de un vendedor de paraguas en el mercadillo .

    #19393 quote
    bolsatrilerabolsatrilera
    Participant
    Master

    Tiene usted toda la razón supertiti, el centro de gravedad de Belkhayate… REPINTA , es una curva mentirosa.

    El hecho de traerlo por aquí es por la cabecera del hilo: CENTRO DE GRAVEDAD.

    Solamente como curiosidad por el que lo quiera tener,sin ánimo de otra cosa más que el compartir.

    #19418 quote
    NicolasNicolas
    Keymaster
    Legend

    @supertiti
    Por favor, utilice palabras amables, gracias 🙂
    Incluso si estoy de acuerdo con usted acerca de este indicador, el propósito de este sitio web sigue siendo para ayudar a las personas con sus peticiones sobre código prorealtime y eso es lo que ha hecho bolsatrilera, y estoy agradecido a él por esto.


    @bolsatrilera

    Gracias por publicar este código, aunque se repinta, creo que este código es el que Duck esperaba tener.

    #89177 quote
    jeloguijelogui
    Participant
    Junior

    Hi Mr Bolsatrilera, thanks the your code but it doesn’t work !

    error message : “Un paramètre de type entier positif est attendu avec DPO”

    so, ?!?

    #89185 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Siete sul forum Italiano, quindi, per favore, usate l’italiano (Google Translator may help).

    #89200 quote
    NicolasNicolas
    Keymaster
    Legend

    @jelogui

    aggiungi una variabile nella parte superiore del codice per impostare il periodo di calcolo

    p3 = 65
    #91878 quote
    BardBard
    Participant
    Master

    Ciao Nicolas, spero che tu stia bene.

    Stavo dando un’altra occhiata a questo indicatore di Belkhayate (che ri-dipinge) che bolsatrilera ha pubblicato per fortuna e mi sono imbattuto nella discussione sul DPO qui: https://www.prorealcode.com/topic/dpo/

    Può il Belkhayate incorporare quel Passato DPO? Ho provato come aggiungo ma non mi piace il (vicino) in questo bit del codice: de48 = myDPO [k * 2] (chiudi)

    Può essere modificato per utilizzare dati passati e non dati futuri?

    #91895 quote
    NicolasNicolas
    Keymaster
    Legend

    L’indicatore DPO in questo indicatore viene utilizzato solo per conoscere il futuro del grafico (poiché il DPO nella sua forma originale in Prorealtime conosce i futuri valori di chiusura), quindi non è correlato al calcolo del centro di gravità e l’idea non è utile in questo Astuccio.. 🙂

Viewing 15 posts - 1 through 15 (of 29 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

Center of Gravity


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Duck74 @duck74 Participant
Summary

This topic contains 28 replies,
has 10 voices, and was last updated by NicolasNicolas
4 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 12/26/2016
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...