Kijun mensuelle dans ProScreener

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #152751 quote
    elgato83
    Participant
    New

    Bonjour,

     

    Je voudrais programme le franchissement de la kijun mois à la hausse comme signal de retournement de tendance moyen terme long terme.

    Pouvez vous m’aider j’ai essayé comme suis mais le résultat n’est pas le même que dans PRT en mensuel.

    //kijun semaine
    timeframe(weekly)
    Kijunsen2 = (highest[26](high)+lowest[26](low))/2
    highm=highest[5](high)
    lowm=lowest[5](low)
    //kijun mois, calculée à partide la kijun sem
    Kijunsenm = (highest[26](highm)+lowest[26](lowm))/2
    #152796 quote
    Nicolas
    Keymaster
    Master

    C’est normal puisque ton calcul n’est par correct. Tu utilises les 26 derniers calculs des chandeliers hebdomadaires dans ta variable “kijunsenm”, alors qu’il faudrait utiliser celui des chandeliers mensuels.

    Tu peux essayer avec ce code pour récupérer la Kijun mensuel grâce au timeframe weekly:

    timeframe(weekly)
    //test recup Kijun mensuel
    count=0
    mid=0
    if openmonth <> openmonth[1] then
    monthindex = monthindex + 1
    monthhigh = 0
    monthlow = close
    monthopen = open
    //monthclose = close
     
    if monthindex > monthlookback and count<26 then
    for j = 1 to barindex
    if monthindex[j] = monthindex - monthlookback then
    mymonthhigh = monthhigh[j]
    mymonthlow = monthlow[j]
    mymonthopen = monthopen[j]
    //mymonthclose = monthclose[j]
    mid = mid+((mymonthhigh+mymonthlow)/2)
    kijun=mid
    break
    endif
    next
    endif
    endif
     
    monthhigh = max(monthhigh,high)
    monthlow = min(monthlow,low)
    
    if mymonthopen = 0 then
    mymonthopen = close
    //mymonthclose = close
    mymonthhigh = close
    mymonthlow = close
    endif
    #152885 quote
    elgato83
    Participant
    New

    Merci Nicolas, je teste ton code ce soir ! en effet je trouve le signal kijun mensuel plus pertinent que les mm longues type 200 semaines.

    A bientot

    Laurent

    #153264 quote
    elgato83
    Participant
    New

    Bonsoir,

    Pouvez vous définir l’instruction monthlookback SVP ?

    Merci

    Laurent

    #153318 quote
    elgato83
    Participant
    New

    J’ai essayé avec monthlookback=2, le resultat de calcul de la kijun mensuelle ne colle pas avec la valeur affichée dans le graphique période mensuelle (en ajoutant l’indicateur ichimoku)

    Cordialement

     

    Laurent

    #153359 quote
    Nicolas
    Keymaster
    Master

    On va essayer autrement, vu qu’avec la v11 on peut avoir accès à l’instruction DonchianChannelLine soit la ligne du milieu d’un canal de Donchian, qui est la même chose qu’une Kijun. Je vais regarder ce que je peux faire.

    #153375 quote
    Nicolas
    Keymaster
    Master

    Suis-je bête, il y a aussi l’instruction KIJUNSEN qu’on peut utiliser, en multipliant la période par 4 (26*4=104), on obtient la bonne valeur avec le screener lancé en weekly.

    k=KijunSen[9,104,52]
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Kijun mensuelle dans ProScreener


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
elgato83 @elgato83 Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Nicolas
5 years, 2 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 12/06/2020
Status: Active
Attachments: No files
Logo Logo
Loading...