Probleme avec DayOfWeek

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

    Bonjour,

    je rencontre un curieux problème avec DayOfWeek.

    Par exemple, je cherche la différence entre le plus haut de le veille et celui du jour.

    Voici le code :

    If DayOfWeek = j then
    Delta = High – High[1]
    else
    Delta = 0
    endif

    return Delta

     

    Si je fais varier j,

    pour 1 j’ai les résultats des dimanches

    pour2 j’ai les résultats des lundis

    pour 3 j’ai les résultats des mardis

    pour 4 j’ai les résultats des mercredis

    pour 5 j’ai les résultats des jeudis et vendredi ensemble

     

    Comment rétablir la correspondance, et séparer le jeudi du vendredi ?

    Merci

    #170810 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    utilise OpenDayOfWeek.

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

Probleme avec DayOfWeek


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 3 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/30/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...