previous day volume

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #171440 quote
    samdsamd
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    x = volume >= (volume[1] * 3)
    #171458 quote
    samdsamd
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
5 years, 4 months ago.

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