limite de validité indicateur

Viewing 7 posts - 61 through 67 (of 67 total)
  • Author
    Posts
  • #169898 quote
    pierre66
    Participant
    Senior

    Bonjour Roberto,

    Je voudrais mettre une date de validité de ce petit “screener” au 31122021, comme je ne peux pas mettre de message comment puis-je faire

    //DEFPARAM DrawOnLastBarOnly = True
    
    IF Date <=20211231 Then ?
     
    wup = low[0] > low[1] and low[1] <low[2]
     
    IF wup and close> high[1]THEN
     
    C= wup
    
     
    Screener [c](close as "close")
    
    #169903 quote
    robertogozzi
    Moderator
    Master

    Voilà:

    C = 0
    IF Date <=20211231 Then
       wup = low[0] > low[1] and low[1] <low[2]
       IF wup and close> high[1]THEN
          C = wup
       endif
    endif
    Screener [C](close as "close")
    #169910 quote
    pierre66
    Participant
    Senior

    OK ,

    Merci Roberto

    #174194 quote
    warningff
    Participant
    Average

    Bonjour,

    J’utilise le code suivant pour mettre disponible mon indicateur limité dans le temps

    DEFPARAM DrawOnLastBarOnly = true
     
    MyDate = 20191101
     
    haut=undefined
    bas=undefined
    milieu=undefined
     
    if opendate<=MyDate then 
    P      = 10 // number of high periods
    q      = 21 // name periods bas
    haut   = highest[p](high[1])
    bas    = lowest[q](low[1])
    milieu =(highest[p](high)+lowest[q](low))/2
    else
    DRAWTEXT("veuillez re télécharger l’indicateur",barindex,high + 5 * ticksize) coloured(255,100,2)
    ENDIF
     
    return haut,bas,milieu, opendate<=MyDate

    or je voudrais savoir ou je dois insérer mon indicateur que je rend temporaires.

    cordialement

    #174199 quote
    warningff
    Participant
    Average

    Je viens de trouvez désolé pour le dérangement

     

    DEFPARAM DrawOnLastBarOnly = true
     
    MyDate = 20191101
     
    haut=undefined
    bas=undefined
    milieu=undefined
     
    if opendate<=MyDate then 
    P      = 10 // number of high periods
    q      = 21 // name periods bas
    haut   = highest[p](high[1])
    bas    = lowest[q](low[1])
    milieu =(highest[p](high)+lowest[q](low))/2
    else
    DRAWTEXT("veuillez re télécharger l’indicateur",barindex,high + 5 * ticksize) coloured(255,100,2)
    ENDIF
    
    INDICATEUR
     
    return haut,bas,milieu, opendate<=MyDate, INDICATEUR
    #174200 quote
    warningff
    Participant
    Average

    Si je comprends bien

    my date  : c’est le date d’échéance ?

    Cela ne marche pas très bien.

    J’ai mis des backgroundcolor dans mon indicateur et il ne les enlèves pas avec ce code.

    Il enleve bien fleche signal etc.

    #174305 quote
    warningff
    Participant
    Average

    Je viens de trouver 🙂

    Malheureusement mon code est composé de flèche et background , les back ground restent mais les flèches ne restent pas.( éphémère sur la bougie et disparaisse) alors que sur mon indicateur les flèches restent. Désolé pour ces spams  ^^ mois de juillet les gens doivent être à la piscine ^^

    DEFPARAM DrawOnLastBarOnly = true
     
    MyDate = 20210729
     
    if opendate<=MyDate then
    indicator = call "Signal 2.0"
    else
    DRAWTEXT("veuillez re télécharger l’indicateur",barindex,high + 5 * ticksize) coloured(255,100,2)
    ENDIF
     
    return indicator ,opendate<=MyDate
Viewing 7 posts - 61 through 67 (of 67 total)
  • You must be logged in to reply to this topic.

limite de validité indicateur


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
remy92400 @remy92400 Participant
Summary

This topic contains 66 replies,
has 5 voices, and was last updated by warningff
4 years, 7 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 11/13/2019
Status: Active
Attachments: 5 files
Logo Logo
Loading...