Bug étrange soustractif

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #134971 quote
    Strade
    Participant
    New

    Bonjour

    J’ai un bug étrange.

    En gros j’ai une boucle qui me cherche le nombre du twist et la position du premier qu’il trouve sur un plage donnée.

    Ensuite je veux faire des calculs mais en partant du twist pour revenir vers le présent.

    Dans mon débbugage avec 1 action en sortie de boucle j’ai premier = 42 donc je peux faire le calcul SpanB[premier-1]-SpanB[premier] sans problème car correspond à SpanB[42-1]-SpanB[42] (là c’est Ok)

    tel quel j’ai une erreur “Ce ProScreener n’a pas pu être exécuté : l’une des instructions contient un offset négatif ou trop élevée (ex : low[-1] ou low[300]).”

    Par contre après ma boucle si je fais premier=42, pas de bug. Pourtant en sortie de boucle premier est bien égal à 42 je l’ai fait afficher en retour !!

    premier = -1
    for i=0 to plage
    twist1=SpanA[i] crosses over  SpanB[i]
    twist2=SpanB[i] crosses over  SpanA[i]
    if (twist1 or twist2) then
    nbtwist=nbtwist+1
    if( premier=-1) then
    premier = i
    endif
    endif
    next
    
    if (premier>0) then
    retour= SpanB[premier-1]-SpanB[premier]
    endif

    Si vous avez une explication je suis preneur.

    Merci

    Strade

    #134973 quote
    fifi743
    Participant
    Master

    bonjour,

    dans le screener c’est 255 bar  max

    #134984 quote
    Strade
    Participant
    New

    Merci

    Mais ma plage fait 52 ! donc pas de problème de dépassement. Ce qui est étrange c’est que si premier = 42 en dur ça marche si premier = 42 par attribution de calcul dans la boucle ça ne marche pas. Comme si on avait une sorte d’attribution par pointeur qui pointe pas correctement !

    #135031 quote
    fifi743
    Participant
    Master

    tu fait peux pas une sortie quand ta condition est bonne

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

Bug étrange soustractif


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Strade @verdier-st Participant
Summary

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

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