Screener para calcular la distancia entre el precio y el pivot point

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14519 quote
    curses
    Participant
    Average

    Necesito ayuda saber la distancia en % entre el precio de cierre una vela diaria con el Pivot Point semanal

    no logro tener resultados

     

    Gracias

    #14553 quote
    Nicolas
    Keymaster
    Master

    Este código debe hacer lo que usted espera. Devuelve el porcentaje del Primer actual desde el punto de pivote semanal en el marco de tiempo actual filtrada. Voy a publicar tal vez este código en la biblioteca, ya que sería de interés de la otra persona.

    Puede cambiar el modo de cálculo punto de giro también. El archivo de la ITF también se une a ser importados en la plataforma.

    //Pivot calculation method
    mode = 1
    
    If DayOfWeek<DayOfWeek[1] then
     weeklyHigh = Highest[BarIndex - lastWeekBarIndex](High)[1]
     weeklyLow = Lowest[BarIndex - lastWeekBarIndex](Low)[1]
     lastWeekBarIndex = BarIndex
    
     If mode = 0 then
      weeklyPivot = (weeklyHigh + weeklyLow + Close[1]) / 3
     Elsif mode = 1 then
      weeklyPivot = (Open + weeklyHigh + weeklyLow + Close[1]) / 4
     Elsif mode = 2 then
      weeklyPivot = (weeklyHigh + weeklyLow + Close[1]*2) / 4
     Else
      weeklyPivot = (Open*2 + weeklyHigh + weeklyLow) / 4
     Endif
    endif
    
    distance = ((close/weeklypivot)-1)*100
    
    screener [close>1] (distance as "% Distance")
    #14802 quote
    curses
    Participant
    Average

    Buenos dias, lo estudiaré 🙂

    Otra duda, ¿es posible hacerlo tambien con el Pivot Point mensual?

    muchas gracias

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Screener para calcular la distancia entre el precio y el pivot point


Soporte ProScreener

New Reply
Author
author-avatar
curses @curses Participant
Summary

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

Topic Details
Forum: Soporte ProScreener
Language: Spanish
Started: 10/09/2016
Status: Active
Attachments: No files
Logo Logo
Loading...