Needs Help to build a Screener. Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #132052 quote
    Khaled
    Participant
    Veteran

    Hi, I’ve found a useful Indictor courtesy of “kallaganne” which provides Buy and Sell signals.

    I’d like to build a Screener based on the same selection methodology. Can you please HELP!!!

    Much appreciated.

    Indicator code:

    once rr=1
    mb=average[20](typicalprice)
    k=48
    n=(k*2)-4
    p=(n/2)-1
    
    
    h1=DPO[n](high)
    
    
    moyh=high-h1
    hi=(moyh-moyh[1]+(high[p])/n)*n
    hi=(round(hi*100))/100
    l1=dpo[n](low)
    
    
    moyl=low-l1
    lo=(moyl-moyl[1]+(low[p])/n)*n
    lo=(round(lo*100))/100
    clo1=dpo[n](close)
    
    
    moyc=close-clo1
    clot=(moyc-moyc[1]+(close[p])/n)*n
    clot=(round(clot*100))/100
    cond1=(high>high[1] and high>high[2])
    cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1)
    if cond1 and cond2 then
    flagg=1
    targeth=high
    targetl=lo[46]
    else
    flagg=0
    signa=mb
    endif
    for zz=0 to 45
    if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1  then
    signa=high+(averagetruerange[20](close))*.5
    rr=1
    bari=barindex+zz+2
    break
    elsif     hi[45-zz]>targeth then
    signa=mb
    break
    endif
    next
    condi=(low<low[1] and low<low[2]) and low<lo[46] and (barindex>bar or rr=1)
    if condi then
    fflag=1
    target1=low
    target2=hi[46]
    else
    fflag=0
    siigna=mb
    endif
    for kk=0 to 45
    if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then
    siigna=low-(averagetruerange[20](close))*.5
    rr=-1
    bar=barindex+kk+2
    break
    elsif lo[45-kk]<target1 then
    siigna=mb
    break
    endif
    next
    if barindex < 100 then
    signa=undefined
    siigna=undefined
    endif
    golong = (siigna < mb)
    goshort = (signa > mb)*-1
    atr=AverageTrueRange[14](close)
    if golong<>0 then
    drawarrowup(barindex,low-atr/2) coloured(0,200,0)
    endif
    if goshort<>0 then
    drawarrowdown(barindex,high+atr/2) coloured(200,0,0)
    endif
    
    
    return golong as  "LONG",goshort as "SHORT",0

     

    #132059 quote
    JC_Bywan
    Moderator
    Master

    Welcome, but please help to be helped, by respecting the rules of the yellow box just above the “submit” button of any message :

    – you have posted in the wrong language forum, I now move your topic from French proscreener forum to English proscreener forum as you chose to speak English in your topic

    – you have not used the “insert PRT code” button, and without proper code formatting, the members who help other members just won’t read your message if it doesn’t highlight in appropriate color the prt keywords, not just for eye comfort but also to see bugs faster. See attached image to locate the button if you haven’t found it yet. I’ll spend time reformatting your message this time, but please use the “insert prt code” button without need for moderator intervention next time

    – you have not given your topic a meaningful title. Vast majority of topics are about needing help, but the forum is a huge database for search and in your future searches on titles you will be happy that everybody used words on what the search is about rather than words like “help screener” which would make the search result unusable. Please choose another title and the next moderator reading the message will edit your title

    InsertPRTcode2-2.png InsertPRTcode2-2.png
    #132103 quote
    Nicolas
    Keymaster
    Master

    The screener code below should work, it gives alerts each time a green or a red arrow is detected.

    once rr=1
    mb=average[20](typicalprice)
    k=48
    n=(k*2)-4
    p=(n/2)-1
    
    
    h1=DPO[n](high)
    
    
    moyh=high-h1
    hi=(moyh-moyh[1]+(high[p])/n)*n
    hi=(round(hi*100))/100
    l1=dpo[n](low)
    
    
    moyl=low-l1
    lo=(moyl-moyl[1]+(low[p])/n)*n
    lo=(round(lo*100))/100
    clo1=dpo[n](close)
    
    
    moyc=close-clo1
    clot=(moyc-moyc[1]+(close[p])/n)*n
    clot=(round(clot*100))/100
    cond1=(high>high[1] and high>high[2])
    cond2=(cond1 and high>hi[46]) and (barindex>bari or rr=-1)
    if cond1 and cond2 then
    flagg=1
    targeth=high
    targetl=lo[46]
    else
    flagg=0
    signa=mb
    endif
    for zz=0 to 45
    if clot[45-zz]<targetl and hi[45-zz]<=targeth and flagg=1 then
    signa=high+(averagetruerange[20](close))*.5
    rr=1
    bari=barindex+zz+2
    break
    elsif hi[45-zz]>targeth then
    signa=mb
    break
    endif
    next
    condi=(low<low[1] and low<low[2]) and low<lo[46] and (barindex>bar or rr=1)
    if condi then
    fflag=1
    target1=low
    target2=hi[46]
    else
    fflag=0
    siigna=mb
    endif
    for kk=0 to 45
    if clot[45-kk]>target2 and lo[45-kk]>=target1 and fflag=1 then
    siigna=low-(averagetruerange[20](close))*.5
    rr=-1
    bar=barindex+kk+2
    break
    elsif lo[45-kk]<target1 then
    siigna=mb
    break
    endif
    next
    if barindex < 100 then
    signa=undefined
    siigna=undefined
    endif
    golong = (siigna < mb)
    goshort = (signa > mb)*-1
    //atr=AverageTrueRange[14](close)
    //if golong<>0 then
    //drawarrowup(barindex,low-atr/2) coloured(0,200,0)
    //endif
    //if goshort<>0 then
    //drawarrowdown(barindex,high+atr/2) coloured(200,0,0)
    //endif
    
    
    screener[golong or goshort]
    
    #132111 quote
    Khaled
    Participant
    Veteran

    @Noobywan

    Sincèrement désolé d’être passé très rapidement sur les conditions générales et merci encore pour avoir remis le post dans le bon forum.

    Sincerely sorry to have passed very quickly on the general conditions and thank you again for putting the post in the right forum.

    #132112 quote
    Khaled
    Participant
    Veteran

    @Nicolas

    Merci pour ton aide. Je vais l’essayer…

    Thank you for your help. I’m going to try it …

    #132118 quote
    Vonasi
    Moderator
    Master

    Khaled – Please pay attention to the forum rules! English only in the English language forums…. and French only in the French language forums. Noobywan has already had to remind you of this rule and then in your reply to him you break the rule again! Moderators have better things to do with their time than continuously tidy up after you.

    #132124 quote
    Khaled
    Participant
    Veteran

    @Vonasi

    Really sorry, I got mixed up, I thought i was in the French Forum. Thank you.

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

Needs Help to build a Screener. Thanks


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Khaled @khaled Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by Khaled
5 years, 10 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/18/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...