Cours arrondi dans ProsSreener

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #222764 quote
    nikodu62
    Participant
    New

    Bonjour,

    Dans ProScreener, j’ai mis le code suivant :

    A=Variation(close)[21]
    B=A<-10

    Je pensais que cette valeur du Nasdaq serait détectée :

    ICU dont le graphique ProRealtime affiche pour les cours de clôture :

    • du 20/09/2023–> 0,208
    • du 21/09/2023 –> 0,186 -10.58%

    Donc je suppose que les cours ont été arrondis à 0.21 & 0.19 , ce qui donne une variation journalière de -9,52%…

    Auriez-vous une astuce pour supprimer l’arrondi ?

    En vous remerciant,

    Nicolas

    #222847 quote
    nikodu62
    Participant
    New

    Même problème avec une autre valeur.

    Le ProScreener utilise les données à 2 chiffres après la virgule, au lieu de 3 chiffres après la virgule : ce qui fausse la variation des cours

    #222848 quote
    fifi743
    Participant
    Master

    j’ai fait ci joint ce code
    teste le et dit moi

    if pointsize=1 then
    nbvirg=0
    elsif pointsize=0.1 then
    nbvirg=1
    elsif pointsize=0.01 then
    nbvirg=2
    elsif pointsize=0.001 then
    nbvirg=3
    elsif pointsize=0.0001 then
    nbvirg=4
    endif
    round(close,nbvirg)
    #222865 quote
    nikodu62
    Participant
    New

    Merci pour le code.

    Comment dois-je l’utiliser ?

    “A=Variation(close)[21]
    B=A<-10

    if pointsize=1 then
    nbvirg=0
    elsif pointsize=0.1 then
    nbvirg=1
    elsif pointsize=0.01 then
    nbvirg=2
    elsif pointsize=0.001 then
    nbvirg=3
    elsif pointsize=0.0001 then
    nbvirg=4
    endif
    round(close,nbvirg)

    screener[B]”

    ROUND.jpg ROUND.jpg
    #222873 quote
    fifi743
    Participant
    Master

    je pense comme ceci

    if pointsize=1 then
    nbvirg=0
    elsif pointsize=0.1 then
    nbvirg=1
    elsif pointsize=0.01 then
    nbvirg=2
    elsif pointsize=0.001 then
    nbvirg=3
    elsif pointsize=0.0001 then
    nbvirg=4
    endif
    A=round(Variation(close)[21],nbvirg)
    
    B=A<-10
    
    screener[B]
    #222916 quote
    nikodu62
    Participant
    New

    Merci beaucoup.

    Il faudrait que je retrouve une autre valeur pour tester ton code parce que ICU est maintenant détecté en faisant uniquement :

    A=Variation(close)[23]
    B=A<-10

    J’ai un peu de mal à comprendre ce changement…

    Une explication ?

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

Cours arrondi dans ProsSreener


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
nikodu62 @nikodu62 Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by nikodu62
2 years, 4 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 10/22/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...