dernier plus haut / dernier plus bas

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #59574 quote
    ludo6977
    Participant
    Average

    Bonjour à tous,

    Je cherche a programmer un indicateur qui tracerait le dernier plus haut et le dernier plus bas en mensuel , en hebdo , en journalier , en 4 heures et en 1 heures .

    Je ne sais pas par ou commencer .

    Merci à tous.

    Hello everyone,

    I am looking to program an indicator that would draw the last highest and the lowest in monthly, weekly, daily, 4 hours and 1 hour.

    I do not know where to start .

    Thank you all.

    #59636 quote
    ghary
    Participant
    Veteran

    Bonjour ludo j’ai trouvé ceci si cela peut t’aider…

    Petite question comment en faire un screener ?

    #59637 quote
    ghary
    Participant
    Veteran
    ////ONCE DAY////
    once currenthighday=high
    once currentlowday=low
    once previoushighday=undefined
    once previouslowday=undefined
     
    ////ONCE WEEK////
    once currenthighweek=high
    once currentlowweek=low
    once previoushighweek=undefined
    once previouslowweek=undefined
     
    ////ONCE MONTH////
    once currenthighmonth=high
    once currentlowmonth=low
    once previoushighmonth=undefined
    once previouslowmonth=undefined
     
    ////ONCE TRIMESTRIAL////
    trimH=max(trimH,high)
    trimL=min(trimL,low)
     
    ////ONCE ANNUEL////
    once currenthighannuel=high
    once currentlowannuel=low
    once previoushighannuel=undefined
    once previouslowannuel=undefined
     
    ////OPEN DAY////
    if openday <> openday[1] then
    previoushighday=currenthighday
    previouslowday=currentlowday
    currenthighday=high
    currentlowday=low
    else
    currenthighday=max(high,currenthighday)
    currentlowday=min(low,currentlowday)
    endif
     
    ////OPEN WEEK////
    if DayOfWeek<DayOfWeek[1] then
    previoushighweek=currenthighweek
    previouslowweek=currentlowweek
    currenthighweek=high
    currentlowweek=low
    else
    currenthighweek=max(high,currenthighweek)
    currentlowweek=min(low,currentlowweek)
    endif
     
    ////OPEN MONTH////
    if openmonth<>openmonth[1]then
    previoushighmonth=currenthighmonth
    previouslowmonth=currentlowmonth
    currenthighmonth=high
    currentlowmonth=low
    else
    currenthighmonth=max(high,currenthighmonth)
    currentlowmonth=min(low,currentlowmonth)
    endif
     
    ////OPEN  TRIMESTRIAL////
    If openMonth<>openMonth[1] then
    if openmonth=4 or openmonth=7 or openmonth=10 or openmonth=1 then
    trimestrialH=trimH
    trimestrialL=trimL
    trimL=close*100
    trimH=0
    endif
     
    endif
     
    ////OPEN ANNUEL////
    if openyear <> openyear[1] then
    previoushighannuel=currenthighannuel
    previouslowannuel=currentlowannuel
    currenthighannuel=high
    currentlowannuel=low
    else
    currenthighannuel=max(high,currenthighannuel)
    currentlowannuel=min(low,currentlowannuel)
    endif
     
    return previoushighday coloured(46, 134, 193) as "Précédent haut journalier", previouslowday coloured(46, 134, 193) as "Précédent bas journalier", previoushighweek coloured(0,0,0) as "Précédent haut semaine", previouslowweek coloured(0,0,0) as "Précédent bas semaine", previoushighmonth coloured(250, 47, 47) as "Précédent haut mensuel", previouslowmonth coloured(250, 47, 47) as "Précédent bas mensuel", trimestrialH coloured(255, 195, 0) as "Précédent haut trimestriel", trimestrialL coloured(255, 195, 0) as "Précédent bas trimestriel", previoushighannuel coloured(176, 0, 165) as "Précédent haut annuelle", previouslowannuel coloured(176, 0, 165) as "Précédent bas annuelle"
    
    
    #59639 quote
    ghary
    Participant
    Veteran

    ce code provient de cette file : https://www.prorealcode.com/topic/configuration-plus-haut-plus-bas-precedent/

    Possible d’en faire un screener ou trop complexe ?

    merci à tous…

    #59721 quote
    ludo6977
    Participant
    Average

    oui il est possible d’en faire un screener .. je pense …

    #59786 quote
    ghary
    Participant
    Veteran

    Bonjour, tu as réussi a rejouté le 4 heure alors ?

    bah j’ai essayé de le transformer en screener mais erreur car y’a divers condition, soit le prix est au dessus du dernier plus haut journalier, semaine mensuel…, soit il est en dessous idem que le plus haut soit il est situé entre les bornes…

    donc des conditions à différentes dans le même screener ça à l’air compliqué…

    #60105 quote
    ghary
    Participant
    Veteran

    Bonsoir pas d’idee Pour le screener ?

    Comment placer cette file sur la file pro screener ?

     

    Merci

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

dernier plus haut / dernier plus bas


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
ludo6977 @ludo6977 Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by ghary
8 years ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/15/2018
Status: Active
Attachments: No files
Logo Logo
Loading...