Indicatore delle attivita

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #205066 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Cerco un indicatore che mi dia la % di guadagno nei giorni della settimana riferito, se possibile, all’attività di un Trading system, oppure il volume delle attività sempre riferito ai giorni della settimana.

    Grazie

    #205073 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non è possibile per un indicatore conoscere qualcosa di un trading system.

    L’unica soluzione è quella di creare un indicatore partendo dal trading system.

    Cosa intendi per volume delle attività?

    #205109 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Mi sono espresso male, io vorrei un indicatore tipo quello di Vonassi  pubblicato in libreria “Attività nelle ore” , ma riferito ai giorni della settimana.

    Grazie

    #205114 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Puoi postare il link?

    #205116 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    //www.prorealcode.com/prorealtime-indicators/most-active-hours-and-months/

    Questo è il link

    #205140 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo (grazie a @Vonasi):

    //Most active Days Of Week, from the original code:
    //   Most Active Months
    //   By Vonasi (thanks to throwaway200 for the idea)
    //   20181211
    //
    //   https://www.prorealcode.com/prorealtime-indicators/most-active-hours-and-months/
    //
    //
    //defparam calculateonlastbars = 1000
    
    IF OpenDayOfWeek = 0 THEN
    D1 = (D1 + (High - Low))
    D1Count = (D1Count + 1)
    ThisDay = (D1 / D1Count)
    IF OpenDayOfWeek <> OpenDayOfWeek[1] THEN
    drawvline(barindex) coloured("Red")
    ENDIF
    ELSIF OpenDayOfWeek = 1 THEN
    D2 = (D2 + (High - Low))
    D2Count = (D2Count + 1)
    ThisDay = (D2 / D2Count)
    ELSIF OpenDayOfWeek = 2 THEN
    D3 = (D3 + (High - Low))
    D3Count = (D3Count + 1)
    ThisDay = (D3 / D3Count)
    ELSIF OpenDayOfWeek = 3 THEN
    D4 = (D4 + (High - Low))
    D4Count = (D4Count + 1)
    ThisDay = (D4 / D4Count)
    ELSIF OpenDayOfWeek = 4 THEN
    D5 = (D5 + (High - Low))
    D5Count = (D5Count + 1)
    ThisDay = (D5 / D5Count)
    ELSIF OpenDayOfWeek = 5 THEN
    D6 = (D6 + (High - Low))
    D6Count = (D6Count + 1)
    ThisDay = (D6 / D6Count)
    ENDIF
    
    avg = (D1 + D2 + D3 + D4 + D5 + D6)/(D1count + D2count + D3count + D4count + D5count + D6count)
    
    c = 155
    if ThisDay > Avg then
    c = 255
    endif
    
    RETURN ThisDay coloured (100,149,237,c) style(histogram, 2) as "Average Range", avg coloured(0,0,255) style(line,1) as "All Time Average"
    #205148 quote
    Ciccarelli FrancoCiccarelli Franco
    Participant
    Senior

    Grazie

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

Indicatore delle attivita


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Ciccarelli FrancoCiccarelli Franco
3 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 11/30/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...