VOLUMI SETTIMANALI DAL LUNEDì AL VENERDì

Forums ProRealTime forum Italiano Supporto ProBuilder VOLUMI SETTIMANALI DAL LUNEDì AL VENERDì

  • This topic has 4 replies, 2 voices, and was last updated 1 year ago by avatarbyT77.
Viewing 5 posts - 1 through 5 (of 5 total)
  • #199165

    Buongiorno a tutti,

    Chiedo cortesemente il vostro supporto.

    Starei sviluppando un indicatore sui Volumi.

    Vorrei che prenda in considerazione solo i volumi settimanali escludendo le domeniche.

    Sareste così gentili da indicarmi il codice da inserire?

    Grazie mille

    #199166

    Ho generato così il codice, spero sia esatto.

    Period = 250

    FOR i = 0 To (Period – 1)
    IF OpenDayOfWeek => 1 and OpenDayOfWeek <= 5 then
    SVL1 = (Codice con Volume * n(period))
    SVL2 = (Codice con Volume * n(period))
    endif
    next

    #199169

    Ho corretto.

     

    FOR i = 0 To 5
    IF OpenDayOfWeek => 1 and OpenDayOfWeek <= 5 then
    SVL1 = (Codice con Volume * n(period))
    SVL2 = (Codice con Volume * n(period))
    endif
    next

    #199204

    Non c’è bisogno del ciclo FOR, in quanto l’indicatore parte dalle unità che hai sul grafico (ad esempio 500), oltre ad un certo numero in più precaricato, ed i giorni li identifichi mentre passano, giorno per giorno; devi solo evitare la Domenica (OpenDayOfWeek = 0):

     

     

    #199280

    Grazie mille. Gentile come sempre.

    Correggo subito.

     

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login