Alléger code PRT

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #49871 quote
    PlscapPlscap
    Participant
    Veteran

    Bonjour Nicolas,

    j’ai crée un petit code de signal à partir de deux indicateurs que l’on peut retrouver dans la Library.

    Ce code malheureusement engendre un retard, et j’ai sur mes graphiques un message d’alerte disant “Graphique Lent” (voir capture), du coup j’aurais voulu savoir s’il y avait un moyen d’alléger ce code, le rendre plus fluide pour qu’enfin mes graphiques redeviennent comme avant, pas de lenteur, pas de décalage de quelques secondes?

    Voici le code et la capture

    DevH, DevL, ignored, ignored = CALL "average distribution"[20, 200, 5]
    
    ARLS, ignored, ignored, ignored, ignored, ignored = CALL "PRC_AndersonRegressionLine"[1000]
    
    // PUT
    
    If ARLS >= DevH THEN
    xPUT=1
    ELSE
    xPUT=0
    ENDIF
    
    // CALL
    
    If ARLS <= DevL THEN
    xCALL=-1
    Else
    xCall=0
    ENDIF
    
    
    Return xPUT coloured(204,0,0) style(histogram), xCALL coloured(0,153,0) style(histogram)
    

    Je te remercie par avance

    Capture-d’écran-2017-10-18-à-19.42.17.png Capture-d’écran-2017-10-18-à-19.42.17.png Capture-d’écran-2017-10-18-à-19.45.23.png Capture-d’écran-2017-10-18-à-19.45.23.png
Viewing 1 post (of 1 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

Alléger code PRT


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Plscap @flodefacebook Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/18/2017
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...