ACCUMLATION/DISTRIBUTION + EMA200

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #181990 quote
    maxlys
    Participant
    Senior

    Bonjour à tous, une stratégie consiste de prendre des trades lorsque le cours casse le PP our et que l’indicteur ACCUMULATION/DISTRIBUTION est en dessous ou au dessus dune EMA 200

    Voci le code réalisé par une personne nommée JBNETO sur une autre plateforme :

    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © jbneto
    
    //@version=4
    study(title="Accumulation/Distribution", shorttitle="Accum/Dist, 200 EMA", overlay=false)
    ad = cum(close==high and close==low or high==low ? 0 : ((2*close-low-high)/(high-low))*volume)
    
    plot(ad, title = "Accumulation/Distribution", color=#808000)
    plot(ema(ad, 200), color=#FF7000, linewidth=1, title='200 Day EMA')

    Sur PRT si j’installe l’indicateur ACCUMULATION/DISTRIBUTION puis une EMA200, aurais-je la même chose que ci dessus ?

    Si tel n’est pas le cas, comment pourrais-t-on le coder ( en y intégrant directement la EMA 200) ?

    En vous remerciant

    #182030 quote
    Nicolas
    Keymaster
    Master

    L’Accumulation Distribution dans la plateforme est calculé de cette manière :

    AD = sum(volume*((CloseLow) (HighClose)) / (HighLow))

    Ce qui me semble être différent de la formule que tu as posté (et qui à mon avis est incorrect, mais je ne connais pas la démarche de l’auteur).

    Donc tu n’auras pas la même chose. Mais on peut très bien recoder sous PRT ce code TV.

    #182050 quote
    maxlys
    Participant
    Senior

    Bonjour Nicolas,

    Merci pour ces informations, pourrais tu m’indiquer quel serait le code PRT pour ce code TV ? Merci

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

ACCUMLATION/DISTRIBUTION + EMA200


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
maxlys @maxlys Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by maxlys
4 years, 3 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 11/21/2021
Status: Active
Attachments: No files
Logo Logo
Loading...