7 day sma trending up with volume higher than the 200 day average

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #108894 quote
    egosbar
    Participant
    Junior

    jd008 im very sorry to ask a question here , i just cannot see how to start a new thread

    Nicolas im hoping you can help me code a very simple or at least is would be compared to the coding i’ve seen but im struggling with the codes

    i’m simply after a code to screen for the below

    7 day sma trending up but below 50 day sma with volume higher than the 200 day average

    again sorry jd008 for posting here but it looks like nicolas has answered your query , nicolas thanks in advance if you can help me or at least help me post a new thread

    #108912 quote
    Nicolas
    Keymaster
    Master

    Post moved to a new topic. There is a new topic form at the end of each page of the forum.

    The screener you request could be coded as below:

    //7 day sma trending up but below 50 day sma
    //with volume higher than the 200 day average
    
    ma7=average[7](close)
    ma50=average[50](close)
    
    test = ma7>ma7[1] and ma7<ma50 and volume>highest[200](volume)
    
    screener[test]

    Code not tested, please do and give feedback 😉

    #108914 quote
    Vonasi
    Moderator
    Master

    egosbar – you clearly worked out how to create a new thread as a one has appeared now asking an identical question. Please do not double post as it just leads to wasted time for those trying to help you. Also you gave your topic the meaningless title of ‘request for simple code please thanks in advance’. All topics must be given titles that describe in some way what the topic is about otherwise we will just end up with forums full of ‘Help please?’ titled topics.

    I will delete your other topic as Nicolas moved your first post to this new topic and has answered your question here.

    #108934 quote
    egosbar
    Participant
    Junior

    thank you kindly yes i see you point regarding explanation in the title ,

    i tested the code and no stocks came up so i think the word highest had to be replaced with greater than average

    //7 day sma trending up but below 50 day sma
    //with volume higher than the 200 day average
    
    ma7=average[7](close)
    ma50=average[50](close)
    
    test = ma7>ma7[1] and ma7<ma50 and volume>average[200](volume)
    
    screener[test]
    #108935 quote
    robertogozzi
    Moderator
    Master

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    #108936 quote
    egosbar
    Participant
    Junior

    Nicolas the code works well i’ve amended it a little to 7 day sma trend up 2 bars , i would like to add volume is 150%  greater than 50 day average

    your a genius thank you so much

    //7 day sma trending up 2 bars min but below 50 day sma
    //with volume 150% higher than the 50 day average
    
    ma7=average[7](close)
    ma50=average[50](close)
    
    test = ma7>ma7[2] and ma7<ma50 and volume>average[50](volume)
    
    screener[test]
    #108938 quote
    robertogozzi
    Moderator
    Master

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
    >> Pour la clarté des messages sur les forums de ProRealCode, merci d’utiliser le bouton “insert PRT code” pour séparer la partie texte de la partie code, merci ! <<

    #108939 quote
    egosbar
    Participant
    Junior

    i see roberto thank you below is just a test of the button you mentioned , i am looking to add volume greater than 150% of 50 day average if anyone could help please

    //7 day sma trending up 2 bars min but below 50 day sma
    //with volume 150% higher than the 50 day average
     
    ma7=average[7](close)
    ma50=average[50](close)
     
    test = ma7>ma7[2] and ma7<ma50 and volume>average[50](volume)
     
    screener[test]
    #108940 quote
    robertogozzi
    Moderator
    Master

    line 7 should read:

    test = ma7>ma7[2] and ma7<ma50 and volume>(average[50](volume) * 1.5)
    #108941 quote
    egosbar
    Participant
    Junior

    awesome thank you very much

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

7 day sma trending up with volume higher than the 200 day average


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
egosbar @egosbar Participant
Summary

This topic contains 9 replies,
has 4 voices, and was last updated by egosbar
6 years, 5 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 09/30/2019
Status: Active
Attachments: No files
Logo Logo
Loading...