200 day highs – coding help please

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #159439 quote
    timmmmmbo
    Participant
    Junior

    Hi I am wanting to scan for stocks that have made new 200 day highs in the last 60 days… that are currently up atleast 10% in the last 60 days… and are within 40% of the highs of the last 60 days…. is this even possible?

    The aim is to capture the first pullback/base after an explosive stage 1 base breakout?

    Any help or guidance appreciated thanks

    #159448 quote
    Nicolas
    Keymaster
    Master

    here is the code of the screener you requested:

    200 days highest high is not older than 60 days, the difference between the close and close 60 days ago is at least 10% higher, and the price is resting in the 40% area below the 60 days high.

    hh = highest[200](high)
    if hh<>hh[1] then 
    start=barindex
    endif 
    
    c1 = barindex-start<60
    c2 = close/close[60]>=1.10
    c3 = close/highest[60](high)>0.6 and close/highest[60](high)<1
    
    screener[c1 and c2 and c3] (close/highest[60](high))
    pullback-base-after-an-explosive-stage-1-base-breakout.png pullback-base-after-an-explosive-stage-1-base-breakout.png
    #159452 quote
    robertogozzi
    Moderator
    Master

    There you go:

    HI200 = highest[200](high)
    c1    = (highest[60](high) = HI200)
    c2    = (close >= (close[60] * 1.10))
    HI40  = (highest[60](high) * 0.60)
    c3    = close >= HI40
    Screener[c1 and c2 and c3]
    #159454 quote
    robertogozzi
    Moderator
    Master

    Ahahah…. you were faster Nicolas!

    Very different approach.

    #159462 quote
    Nicolas
    Keymaster
    Master

    😆 yes! I made almost the same thing for C3, but realize that if you are superior to 60%, the actual close could also be the 100%, so the current 60 periods highest high, so not in a pullback anymore.

    #159563 quote
    timmmmmbo
    Participant
    Junior

    Thanks gents – muchos appreciatos.

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

200 day highs – coding help please


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
timmmmmbo @timmmmmbo Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by timmmmmbo
5 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/26/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...