Inside Week Scan

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #190985 quote
    dkotecha1dkotecha1
    Participant
    New

    Hi Guys,

    I am currently using the below scans to find Inside  Candles on Weekly and Monthly timeframes

    c1= high[0] < high[1]

    c2= low[0] > low[1]

    insidebar = c1 and c2

    screener[insidebar]

    This provides inside candles for the prior week , however if want to run the scan on the weekend for the current week is there a way to modify this ?

    Any help would be appreciated

    #190993 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    This will only work on Mondays:

    timeframe(Daily)
    IF DayOfWeek < DayOfWeek[1] THEN
       PreviousHigh = high[1]
       PreviousLow  = low[1]
    ENDIF
    c1 = 0
    c2 = 0
    IF DayOfWeek = 1 OR (DayOfWeek > 1 AND DayOfWeek < DayOfWeek[1]) THEN
       c1 = high[0] < PreviousHigh
       c2 = low[0]  > PreviousLow
    ENDIF
    timeframe(default)
    insidebar = (c1 and c2)
    screener[insidebar]
    #191266 quote
    dkotecha1dkotecha1
    Participant
    New

    Hi,

     

    Thanks for the response, the current scan i have also works on Mondays. Is there a way that it would work on a saturday or Sunday ?

    #191312 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Try this one:

    timeframe(Daily)
    IF OpenDayOfWeek = 5 THEN
       PreviousHigh = high
       PreviousLow  = low
    ENDIF
    c1 = 0
    c2 = 0
    IF DayOfWeek > 5 OR DayOfWeek = 0 THEN
       c1 = high < PreviousHigh
       c2 = low  > PreviousLow
    ENDIF
    timeframe(default)
    insidebar = (c1 and c2)
    screener[insidebar]
    #191535 quote
    dkotecha1dkotecha1
    Participant
    New

    Hi,

    Thanks for the updated code, however unfortunately it does not bring up results when tried, would you know of any other solution?

    #191544 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You’ll have to apply it to instruments/assets being traded on Saturday and Sunday.

    #191560 quote
    dkotecha1dkotecha1
    Participant
    New

    I am looking to apply to it to UK shares that would not be traded on the weekend. I want to be able to run a scan on a Sat/Sunday for the current week is that not possible with Prorealtime ?

    #191562 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You can scan anytime, but when the market is closed, you will be reported conditions at closing time (till it opens again).

    #191573 quote
    dkotecha1dkotecha1
    Participant
    New

    not sure I follow, are you saying that on a weekend the weekly candle has not closed ? Therefore I need to wait till monday ?  and there is no way to screen based on the week having closed on last trading day which would be friday ?

    #191583 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Screeners scan live markets, how could they scan price movements  when markets are closed?

    #191588 quote
    dkotecha1dkotecha1
    Participant
    New

    not sure what you mean.. by that logic you shouldn’t be able to scan in the evening (whilst the market is closed) for a daily inside candle, however that seems to work perfectly fine

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Inside Week Scan


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
dkotecha1 @dkotecha1 Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/01/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...