derivative dérivée

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #92473 quote
    vivien76
    Participant
    New

    Bonjour à tous,

    Est ce que quelqu’un sait comment programmer une simple fonction dérivée ?

    Par exemple la dérivée du RSI ou de la moyenne mobile ?

    Merci d’avance

    #94584 quote
    manual_ice
    Participant
    Junior

    Est-ce qu’un simple code de ce genre convient ?

    moy=average[21](close)
    derivMOY=moy-moy[1]
    
    myRSI = rsi[14](close)
    derivRSI = myRSI-myRSI[1]
    
    return derivMOY as "deriv MOY", derivRSI as "deriv RSI"
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

derivative dérivée


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
vivien76 @vivien76 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by manual_ice
6 years, 11 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 02/27/2019
Status: Active
Attachments: No files
Logo Logo
Loading...