previous day volume

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #171440 quote
    samd
    Participant
    New

    I wanted to write a simple line of code to check that todays volume is 3 times the previous day volume. How do you call up the previous days volume?

    #171441 quote
    robertogozzi
    Moderator
    Master

    There you go:

    x = volume >= (volume[1] * 3)
    #171458 quote
    samd
    Participant
    New

    Thanks Roberto. I tried that initially but it was not showing any results turns out I was trying to early after the market closed. Just a quick one how do you set a minimum for the market cap of stocks to screen for?

    #171459 quote
    robertogozzi
    Moderator
    Master

    To check it works try replacing 3 with 1, or 1.5 or 2.

    Minimum price:

    MinPrice = close >= 5
    SCREENER[MinPrice](close AS "Price")

    Minimum cap (I think you mean volume_traded * price):

    Cap    = close * volume
    MinCap = Cap >= 5000000
    SCREENER[MinCap](Cap AS "Volume*Price")
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

previous day volume


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
samd @samd Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 9 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/08/2021
Status: Active
Attachments: No files
Logo Logo
Loading...