ADAPTATION DE CET INDICATEUR SUR AUTRE TIMEFRAME

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241258 quote
    Gigi
    Participant
    Senior

    Momentum multiple timeframes

    Bonjour, est il possible pour cet indicateur (trouver dans la librairie) de l’adapter sur Timeframe (Day, hebdo et mensuel).

    Par avance, merci.

    #241259 quote
    jacquesgermain
    Participant
    Senior

    Bonjour

    par exemple cette adaptation à utiliser en 510minutes (soit un jour)

    timeframe(510 minutes, updateonclose)
    Momday= momentum[20](close)

    timeframe(2550 minutes, updateonclose)
    Momweek= momentum[4](close)

    timeframe(10200 minutes, updateonclose)
    Mommonth= momentum[1](close)

    timeframe (default)

    rood=0
    roze=0
    oranje=0
    groen=0
    lichtgroen=0
    geelgroen=0

    If (((Momday>0) and (Momweek>0)) and (Mommonth>0)) then
    groen=1
    else
    groen=0
    If (Momday>0) and (Momweek>0) then
    lichtgroen=1
    else
    lichtgroen=0
    If Momday>0 then
    geelgroen=1
    else
    geelgroen=0
    endif
    endif
    endif

    If (((Momday<0) and (Momweek<0)) and (Mommonth<0)) then
    rood=1
    else
    rood=0
    If (Momday<0) and (Momweek<0) then
    roze=1
    else
    roze=0
    If Momday<0 then
    oranje=1
    else
    oranje=0
    endif
    endif
    endif

    return rood coloured(245,0,0), roze coloured(255,0,255),groen coloured(0,102,40), lichtgroen coloured(0,204,0),geelgroen coloured(153,255,153), oranje coloured (255,178,102)

    Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

ADAPTATION DE CET INDICATEUR SUR AUTRE TIMEFRAME


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Gigi @gigi Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by jacquesgermain
1 year, 1 month ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 12/08/2024
Status: Active
Attachments: No files
Logo Logo
Loading...