PIVOT POINTS PERSONALIZZATI

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #184345 quote
    Gabriele Battista
    Participant
    Senior

    Buongiorno, vorrei costruire i punti pivot giornalieri, non su tutto l’orario di trading ma da ora…. a ora…., è possibile?

    #184429 quote
    robertogozzi
    Moderator
    Master

    Eccoli:

    Inizio = 090000
    Fine   = 130000
    IF OpenTime = Inizio THEN
       myOpen  = open
       myHigh  = high
       myLow   = low
       myClose = close
    ENDIF
    IF OpenTime >= Inizio AND OpenTime <= Fine THEN
       myHigh  = max(myHigh,high)
       myLow   = min(myLow,low)
       myClose = close
    ENDIF
    // Pivots
    Pivot = (High + Low + Close) / 3       //Pivot
    //
    ResR1 = Pivot + (Pivot - myLow)
    ResR2 = Pivot + (myHigh - myLow)
    ResR3 = myHigh + (2 * (Pivot - myLow))
    //
    SupS1 = Pivot - (myHigh - Pivot)
    SupS2 = Pivot - (myHigh - myLow)
    SupS3 = myLow - (2 * (myHigh - Pivot))
    RETURN Pivot AS "Pivot",ResR1 AS "R1",ResR2 AS "R2",ResR3 AS "R3",SupS1 AS "S1",SupS2 AS "S2",SupS3 AS "S3"
    Pivot-su-intervallo-oario.itf x-1.jpg x-1.jpg
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

PIVOT POINTS PERSONALIZZATI


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/02/2022
Status: Active
Attachments: 2 files
Logo Logo
Loading...