Close[0] = High[0] avec un écart de 0.01 ou 0.001

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #217889 quote
    nikodu62nikodu62
    Participant
    New

    Bonjour,

    J’aurais besoin de votre aide pour mon code ProScreener.

    Je souhaiterais filtrer les Close[0] qui sont = High[0] avec un écart de 0.01 ou 0.001

    Par exemple si Close[0] = 1.78 et High[0] = 1.79

    Par exemple si Close[0] = 0.35 et High[0] = 0.36

    Par exemple si Close[0] = 0.149 et High[0] = 0.150

    Comment dois-je procéder ?

    En vous remerciant par avance,

    Bien à vous,

    Nicolas

    #217924 quote
    NicolasNicolas
    Keymaster
    Legend

    On peut faire une soustraction, pour tester si la différence absolue est inférieure ou égale à 0.01 :

    test = abs(close-high) <= 0.01
    
    return test
    #217967 quote
    nikodu62nikodu62
    Participant
    New

    Merci beaucoup Nicolas

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

Close[0] = High[0] avec un écart de 0.01 ou 0.001


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
nikodu62 @nikodu62 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by nikodu62nikodu62
3 years, 2 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 07/19/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...