alertes signal d’achat et vente

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #241439 quote
    ARLEQUIN49
    Participant
    Veteran

    Bonjour,

    Serait-il possible de coder en screener et alertes cet indicateur signal  d’achat & vente.

    Voici le code:

    topf = high[4] < high[2] and high[3] <= high[2] and high[2] >= high[1] and high[2] > high[0]
    botf = low[4] > low[2] and low[3] >= low[2] and low[2] <= low[1] and low[2] < low[0]

    if topf then
    //if high[2]>higherhigh or lastsig=-1 then
    higherhigh=high[2]
    //lastsig=1
    //endif
    endif
    if botf then
    //if low[2]<lowerlow or lowerlow=0 or lastsig=1 then
    lowerlow=low[2]
    //lastsig=-1
    //endif
    endif

    atr=averagetruerange[5]

    if higherhigh>higherhigh[1] then
    drawtext(“▼”,barindex[2],higherhigh,dialog,bold,10) coloured(255,127,80)
    drawtext(“V”,barindex[2],higherhigh+atr*0.2,dialog,bold,30) coloured(255,127,80)
    endif

    if lowerlow<lowerlow[1] then
    drawtext(“▲”,barindex[2],lowerlow,dialog,bold,10) coloured(0,250,154)
    drawtext(“A”,barindex[2],lowerlow-atr*0.2,dialog,bold,30) coloured(0,250,154)
    endif

    return

    Sans-titre.png Sans-titre.png
    #241455 quote
    JC_Bywan
    Moderator
    Master

    Bonjour,

    transformé en code screener, avec colonne critère mise à +1 si higherhigh>higherhigh[1], -1 si lowerlow<lowerlow[1]

    topf = high[4] < high[2] and high[3] <= high[2] and high[2] >= high[1] and high[2] > high[0]
    botf = low[4] > low[2] and low[3] >= low[2] and low[2] <= low[1] and low[2] < low[0]
    
    if topf then
    //if high[2]>higherhigh or lastsig=-1 then
    higherhigh=high[2]
    //lastsig=1
    //endif
    endif
    if botf then
    //if low[2]<lowerlow or lowerlow=0 or lastsig=1 then
    lowerlow=low[2]
    //lastsig=-1
    //endif
    endif
    
    //atr=averagetruerange[5]
    //
    //if higherhigh>higherhigh[1] then
    //drawtext("▼",barindex[2],higherhigh,dialog,bold,10) coloured(255,127,80)
    //drawtext("V",barindex[2],higherhigh+atr*0.2,dialog,bold,30) coloured(255,127,80)
    //endif
    //
    //if lowerlow<lowerlow[1] then
    //drawtext("▲",barindex[2],lowerlow,dialog,bold,10) coloured(0,250,154)
    //drawtext("A",barindex[2],lowerlow-atr*0.2,dialog,bold,30) coloured(0,250,154)
    //endif
    
    c1= higherhigh>higherhigh[1]
    c2= lowerlow<lowerlow[1]
    
    //return
    
    SCREENER[c1 or c2](c1-c2)
    Iván González thanked this post
    #241588 quote
    ARLEQUIN49
    Participant
    Veteran

    Super merci

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

alertes signal d’achat et vente


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
ARLEQUIN49 @arlequin49 Participant
Summary

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

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