changement direction regression lineaire

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #247223 quote
    sounsoun
    Participant
    Junior

    bonjour je souhaiterais avoir l indication quand une courbe de regression lineaire change de sens du meme genre que le code ci dessous qui  été fait pour une  pour une mm simple

    merci a vous

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    // PRC Changement de sens de mm
    // 22.09.2020
    // Sharing ProRealTime Knowledge
    // Forum ProBuilder user request
    // — Settings
    N=20 // Période de la moyenne mobile mm=average[N](close)
    mmbaissehausse=0
    mmhaussebaisse=0
    // — End of ettings
    mmbaisse=close<close[N]
    mmhausse=close>close[N]
    mmbaissehausse=mmbaisse[1] and mmhausse
    mmhaussebaisse= (mmhausse[1] and mmbaisse)
    return mmbaissehausse as “retournement haussier de la mm”, mmhaussebaisse as “retournement baissier de la mm”
    #247224 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    N=20 // Param de de la regression lineaire
    mareglin= LinearRegression[N](close)
    baissehausse= mareglin[2]>mareglin[1] and mareglin[1]<mareglin
    haussebaisse= mareglin[2]<mareglin[1] and mareglin[1]>mareglin
    
    return baissehausse as "retournement haussier de la regression lineaire", -haussebaisse as "retournement baissier de la regression lineaire"
    Iván González thanked this post
    #247244 quote
    sounsoun
    Participant
    Junior

    merci beaucoup   bon week end

Viewing 3 posts - 1 through 3 (of 3 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

changement direction regression lineaire


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
soun @soun Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by sounsoun
1 year, 4 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/17/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...