Valeur de Slope pour la prise de position

Viewing 15 posts - 16 through 30 (of 55 total)
  • Author
    Posts
  • #134106 quote
    Fantasio2020
    Participant
    Senior

    Slt Zigo,

     

    Disons que pour l’instant je suis pas encore suffisamment satisfait de mon code….!

    Il mérite encore quelques amélioration sur la prise de position le long de Slope pour être optimum…et la syntaxe du code pour se faire m’échappe un peu pour le moment.

    Slts

    #134107 quote
    Zigo
    Participant
    Master
    #134109 quote
    Fantasio2020
    Participant
    Senior

    tu utilises quelle partie du code?

    #134111 quote
    Zigo
    Participant
    Master
    P=21
    N=26
     
    EMA = EndPointAverage[P](Close)
     
    If EMA >= EMA[N] Then
    Slope = (EMA - EMA[N])/EMA[N]
    elsif EMA < EMA[N] Then
    Slope = (EMA - EMA[N])/EMA
    Endif
    
    if slope>0 then
    slope=+1
    elsif slope <0 then
    slope =-1
    endif
    res= sin(atan(slope+slope[1]+slope[2]))
    Fin=res-res[1]
    
    return res, fin
    #134112 quote
    Fantasio2020
    Participant
    Senior

    Si tu as amélioré ….fais profiter!

    #134115 quote
    Fantasio2020
    Participant
    Senior

    Tu sais, moi je suis en pavé en programmation…..

    tu intègres comment res et fin dans le code pour les conditions …etc

    #134116 quote
    Zigo
    Participant
    Master

    le serie des possibilities (ligne 13 et ligne 15) :

    a)+1 +1 +1 = 3       sin(atan(3)) = 0.94868

    b) +1 +1 -1 = 1       sin(atan(1)  = 0.70710

    c)+1-1-1 = -1          sin(atan(-1) = -0.70710

    d) -1-1-1 = -3         sin(atan(-3) = -0.94868

    #134117 quote
    Fantasio2020
    Participant
    Senior

    Je te suis pas Zigo…. tu me parle en chinois 🙂 avec tout mon respect…

    //Tu intègre ça comment ci-dessous?
    
    //Position acheteuse
    BuyConditionA = (Close > Pivot and Close > MMA100 and Close > MMA300 and Close > MMA600)
    BuyConditionB = Bull
    BuyConditionC = MyRSI < 38.2
    if buyconditionA and BuyConditionB and BuyConditionC and not daysForbiddenEntry then
    buy n share at market
    endif
     
    //Position Vendeuse
    SellConditionA = (Close < Pivot and Close < MMA100 and Close < MMA300 and Close < MMA600)
    SellConditionB = Bear
    SellConditionC = MyRSI > 61.8
    if SellConditionA and SellconditionB and SellConditionC and not daysForbiddenEntry then
    sellshort n share at market
    endif

    Merci

    #134135 quote
    Fantasio2020
    Participant
    Senior

    Slt Zigo,

    je suis resté tard hier soir pour essayer de comprendre ta stratégie et intégrer les bribes de code que tu as posté…un peu d’explication sur le fonctionnement serait bienvenu ….Merci

    Slts

    #134162 quote
    Fantasio2020
    Participant
    Senior

    Bjr Nicolas,

    As tu quelques explications pour que je comprenne la démarche de Zigo?

    a te lire

    #134174 quote
    Zigo
    Participant
    Master

    Je ne peux pas expliquer en Français.

    #134175 quote
    Fantasio2020
    Participant
    Senior

    Slt Zigo,

     

    c’est pas grave, explique dans ta langue, je traduirai!

    parce que la je comprends pas….

    poste à la limite le code complet que tu utilise, ca me permettra de comprendre.

    Slts

    #134180 quote
    Zigo
    Participant
    Master

    Cce sont des “Booleaanse operatoren”

    Booleaanse-operatoren.png Booleaanse-operatoren.png
    #134182 quote
    Fantasio2020
    Participant
    Senior

    ???

     

    C’est un super partage ça!

    #134184 quote
    Zigo
    Participant
    Master

    Aujourd’hui.

    Dow-vandaag.png Dow-vandaag.png
Viewing 15 posts - 16 through 30 (of 55 total)
  • You must be logged in to reply to this topic.

Valeur de Slope pour la prise de position


ProOrder : Trading Automatique & Backtests

New Reply
Author
Summary

This topic contains 54 replies,
has 3 voices, and was last updated by Fantasio2020
5 years, 9 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 05/28/2020
Status: Active
Attachments: 11 files
Logo Logo
Loading...