Erreur de calcul sur indicateur

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

    Salut,

    Est ce quelqu’un aurai une idée de pourquoi cet indicateur tout simple plante ?

    Sto = Stochastic[14,3](close)
    DZStoUp = DynamicZoneStochasticUp[20](close)
    DZStoDn = DynamicZoneStochasticDown[20](close)
    
    
    c1 = Sto > Sto[1] And DZStoUp > DZStoUp[1] And DZStoDn > DZStoDn[1]
    c2 = Sto < Sto[1] And DZStoUp < DZStoUp[1] And DZStoDn < DZStoDn[1]
    
    If c1 Then
    cDZSto = 1
    Elsif c2 Then
    cDZSto = -1
    Else
    cDZSto = 0
    Endif
    
    Return cDZSto Style(HISTOGRAM)

    Je dois être fatigué…

    #195626 quote
    Nicolas
    Keymaster
    Master

    Je réplique le problème également, je vais transmettre au support pour vérification de l’instruction DynamicZoneStochastic qui pose problème à priori.

    Dans l’immédiat, tu peux remplacer l’instruction par son code (bandes de bollinger appliqués au stochastic avec un facteur de 0.8 sur les bandes):

    if barindex>20 then 
    
    Sto = Stochastic[14,3](close)
    DZStoUp = average[20](sto)+std[20](sto)*.8//DynamicZoneStochasticUp[20](close)
    DZStoDn = average[20](sto)-std[20](sto)*.8//DynamicZoneStochasticDown[20](close)
    
    
    c1 = Sto > Sto[1] And DZStoUp > DZStoUp[1] And DZStoDn > DZStoDn[1]
    c2 = Sto < Sto[1] And DZStoUp < DZStoUp[1] And DZStoDn < DZStoDn[1]
    
    If c1 Then
    cDZSto = 1
    Elsif c2 Then
    cDZSto = -1
    Else
    cDZSto = 0
    Endif
    endif
    
    Return cDZSto Style(HISTOGRAM)
    P0lyTe55 thanked this post
    #195628 quote
    P0lyTe55
    Participant
    New

    Un grand merci, ça me rassure !

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

Erreur de calcul sur indicateur


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
P0lyTe55 @tessaeh Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/20/2022
Status: Active
Attachments: No files
Logo Logo
Loading...