Code for % increase of volume between 2 bars

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #141493 quote
    Marcel van Vliet
    Participant
    Veteran

    Hi,

    For a new stock screener I am looking for a code to filter the volume higher then 0%. Instead of volume<0. This way the negative volume can be filtered out. The code volume<0% seems not to work. Does anyone have a solution to tackle this?

    Thank you.

    #141495 quote
    Nicolas
    Keymaster
    Master

    Percentage of what please? In order to calculate of percentage of something, the Volume must be compared to another Volume, but on what basis? The Volume from yesterday or .. ?

    #141499 quote
    Marcel van Vliet
    Participant
    Veteran

    Hi Nicolas,

    Thanks for your quick reply. I am looking for the daily volume and the percentage which is generated with it of a stock symbol . I would like to filter this  mentioned percentage above zero and from high percentage volume to low. This way the screener select only stocks with an upward volume and place the stocks with the most upward volume on top of the screening results.

    I hope this make sense to you.

    Best regards,

    Marcel van Vliet

    #141502 quote
    Nicolas
    Keymaster
    Master

    ok, but:

    In order to calculate of percentage of something, the Volume must be compared to another Volume

    Which volume to compare with? The ones from X days ago? An average of Y period? Please explain.

    #147420 quote
    Marcel van Vliet
    Participant
    Veteran

    Hi Nicolas,

    The code for volume>0% compared with the volume[1] is what I am still looking for. I posted another question for a similar kind of code today in which the same coding rule is also required.

    Please help me out on this.

    #147482 quote
    Nicolas
    Keymaster
    Master

    Change of volume between 2 bars in percentage:

    a = (volume-volume[1])/volume[1]*100
    
    return a
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Code for % increase of volume between 2 bars


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

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

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