PRT V11 – Un code qui ne fonctionne pas sur toutes les Uts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #111430 quote
    Marie-Eve Vergoz
    Participant
    Senior

    Nicolas,

    Encore moi – je teste la V11 direct PRT –
    j’ai transféré tous mes petits codes qui fonctionnent parfaitement bien sauf 1 qui m’alerte sur le croisement du SAR avec  les prix – c’est un SAR dit ATDMF dont les codes ont été donnés par son auteur PH. CAHEN – j’ai modifié pour rajouter des points un peu plus gros que le standard –

    Or sur la V11, il ne fonctionne pas en 5 et 10 mn – OK sur 1 – 2 – 3 – 4 – 9 – 11  et plus – ceci est u problème qui me dépasse –

    Je vous mets le code du sar et de mon indic – en 2 post séparés
    Merci Nicolas –

    //# - Sar Xt avec les prix
    
    mySARAtdmfVar = CALL "SAR-Atdmf-Var"[0.06, 0.025, 0.2]
    
    
    rge = averagetruerange[2](close)
    If mySARAtdmfVar CROSSES OVER close then
    DRAWARROWDOWN(barindex[0],high[1]+0.5*rge)coloured(0,0,255)
    //drawtext("●", barindex[0],high[1]+rge, Dialog,Bold,12) coloured(255,0,0)
    drawtext("xS", barindex[0],high[1]+rge, Dialog,Bolditalic,10) coloured(0,0,255)
    endif
    
    If mySARAtdmfVar CROSSES UNDER close then
    DRAWARROWUP(barindex[0],low[1]-0.5*rge)coloured(0,0,255)
    //drawtext("●",barindex[0],low[1]-rge,Dialog,Bold,12) coloured(255,255,255)
    drawtext("xS",barindex[0],low[1]-rge,Dialog,Bolditalic,10) coloured(0,0,255)
    endif
    
    RETURN
    #111431 quote
    Marie-Eve Vergoz
    Participant
    Senior

    parabolic sar

    if barindex < 1 then
    facteur =Init
    tmpsar=low
    extreme=high
    tendance=1
    else
    if tendance[1]=1 then
    extreme = max(extreme[1],high)
    if tmpsar[1] >low then
    tendance =-1
    facteur=Fact
    tmpsar=extreme
    extreme=low
    else
    if extreme>extreme[1] and facteur < Mini then
    facteur=min(Mini,facteur+Fact)
    endif
    tmpsar=tmpsar[1]+facteur*(extreme-tmpsar[1])
    tmp=min(low,low[1])
    tmpsar=min(tmpsar,tmp)
    drawtext(" ●", barindex[0],tmpSAR, Dialog,Standard,10) coloured(255,255,0)
    endif
    else
    extreme=min (extreme[1],low)
    if tmpsar[1]<high then
    tendance=1
    facteur=Fact
    tmpsar=extreme
    extreme=high
    else
    if extreme<extreme[1] and facteur<Mini then
    facteur=min(Mini,facteur+Fact)
    endif
    tmpsar=tmpsar[1]+facteur*(extreme-tmpsar[1])
    tmp=max(high, high[1])
    tmpsar=max(tmpsar,tmp)
    drawtext("●", barindex[0],tmpSAR, Dialog,Standard,10) coloured(255,15,131)
    endif
    endif
    endif
    return tmpSAR STYLE(point,5)

    Variables  init = 0.06 – Fact = 0.025  – Mini = 0.2

    #217289 quote
    metatrader
    Participant
    Average

    Bonjour,

    J’arrive a le faire fonctionner en UT 5 min et 10 min

    Quel est le souci exactement ?

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

PRT V11 – Un code qui ne fonctionne pas sur toutes les Uts


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 2 replies,
has 1 voice, and was last updated by metatrader
2 years, 8 months ago.

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