Modifica codice HH LL

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

    Buongiorno a tutti,

     

    mi chiedevo se fosse possibile integrare il seguente codice HH-LL, affinchè mostri anche i valori LH e HL.

    Trovo più confortevole differenziare le coppie di minimi e massimi in funzione del trend corrente, quindi

    HL —->HH in caso di trend rialzista

    LH—–> LL in caso di trend ribassista.

     

    Grazie e mille

    topf = high[4] < high[2] and high[3] <= high[2] and high[2] >= high[1] and high[2] > high[0]
    botf = low[4] > low[2] and low[3] >= low[2] and low[2] <= low[1] and low[2] < low[0]
    
    if topf then
    //if high[2]>higherhigh or lastsig=-1 then
    higherhigh=high[2]
    //lastsig=1
    //endif
    endif
    if botf then
    //if low[2]<lowerlow or lowerlow=0 or lastsig=1 then
    lowerlow=low[2]
    //lastsig=-1
    //endif
    endif
    
    atr=averagetruerange[14]
    
    if higherhigh>higherhigh[1] then
    drawtext("▼",barindex[2],higherhigh,dialog,bold,15)
    drawtext("HH",barindex[2],higherhigh+atr*0.2,dialog,bold,15)
    endif
    
    if lowerlow<lowerlow[1] then
    drawtext("▲",barindex[2],lowerlow,dialog,bold,15)
    drawtext("LL",barindex[2],lowerlow-atr*0.2,dialog,bold,15)
    endif
    
    return
    #214039 quote
    robertogozzi
    Moderator
    Master

    Qual’è la definizione di LH e HL?

    #214113 quote
    Msport71
    Participant
    Average

    Salve,

     

    ho trovato un alternativa cercando nel forum inglese.

    Grazie

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

Modifica codice HH LL


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Msport71 @carlo-pasca Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Msport71
2 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/31/2023
Status: Active
Attachments: No files
Logo Logo
Loading...