Erreur dans un KST modifié

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #40170 quote
    laurenzo
    Participant
    Average

    Je voulais m’amuser à modifier un KST, et là encore une erreur mystique que je ne comprends pas.

    Je colle le code dessous.

    X1 = 10
    P1 = 10
    
    ROC1 = ROC[X1](Close)
    
    // AVG1 - Period 1
    
    a1avg1 = EXP(-1.414 * 3.14159 / P1)
    b1avg1 = 2 * a1avg1 * COS(1.414 * 180 / P1)
    
    coef2avg1 = b1avg1
    coef3avg1 = -a1avg1 * a1avg1
    coef1avg1 = 1 - coef2avg1 - coef3avg1
    
    AVG1 = coef1avg1 * ROC1 + coef2avg1 * AVG1[1] + coef3avg1 * AVG1[2]
    
    RETURN coef1avg1 AS "coef1avg1", ROC1 as "ROC1", AVG1 AS "AVG1"
    

    En gros AVG1 n’est jamais affiché sur le graphique. Indicateur vide. Alors que je sais que coef1avg1 est bon et ROC1 est bon.

    Quelqu’un à une idée du problème ??

    #40180 quote
    Nicolas
    Keymaster
    Master

    Il faut au moins 10 barindex pour que ton code se calcule correctement du début à la fin. Il faut donc ajouter cette condition.

    C’est quoi un KST ? ❓

    laurenzo thanked this post
    #40185 quote
    Madrosat
    Participant
    Master

    Bonjour

    Le KST  ” know sure thing ” est un indicateur mis au point par Martin Pring

    il est construit à partir du Roc .

    Je me demande si  son nom ” know sur thing” n’est pas un peu présomptueux.

    Quelqu’un a  t il une stratégie gagnante basée sur les KST  ???

    Bonne journée

    Madrosat

    #40186 quote
    Nicolas
    Keymaster
    Master

    Ah oui bien sûr 🙂 merci pour l’explication Madrosat !

    #40298 quote
    laurenzo
    Participant
    Average

    Merci, super ça fonctionne avec un BarIndex à 10 🙂

    KST pour Know Sure Thing effectivement. J’aime bien si il est construit avec des moyennes mobiles rapides.

    Après j’utilise en weekly avec d’autres indicateurs, pas tout seul!

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

Erreur dans un KST modifié


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
laurenzo @laurenzo Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by laurenzo
8 years, 7 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/09/2017
Status: Active
Attachments: No files
Logo Logo
Loading...