Select single stock for coding

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #163668 quote
    bilsko
    Participant
    New

    Is it possible to select a single stock for the screener to run on?

    I have a list aready with the stock but i was wondering if the code allows you to bypass a list and screen of its ticker code?

    For example to select Apple.

    timeframe(30mn)
    
    stock= "AAPL"
    
    mnn= Close CROSSES OVER Average[4](close) and average[4]> average[20]
    
    Screener [mnn and stock]

    Thanks

    #163674 quote
    Vonasi
    Moderator
    Master
    #163676 quote
    Nicolas
    Keymaster
    Master

    You could try with:

    EQUITYFRAME("NASDAQ","AAPL")
    timeframe(30mn)
    mnn= Close CROSSES OVER Average[4](close) and average[4]> average[20]
    
    Screener [mnn]

    but replace “NASDAQ” with the exact list name where AAPL is present.

    #163775 quote
    bilsko
    Participant
    New

    Can you also select 2 stocks like that by duplicating the equityframe?

    Its also telling me i need to select a list when it runs this code.

    #163776 quote
    bilsko
    Participant
    New

    By list i mean selecting any list that i have saved. When i run the AAPL code in a equityframe from the US market it also wants me select a list from the screen menu and then it just dumps all the data from that saved list into the screener.

    I dont get a selective screening of Apple for the conditions meet.

    I even tinkered with different timeframes to make sure the conditions were meet on Apple and i still get all the stocks in my list highlighted.

    #163793 quote
    Nicolas
    Keymaster
    Master

    EQUITYFRAME is used to get values from other instruments for calculation, not for single stock selection in a list. Therefore, to identify the desired stock, I’m adding a condition based on its current price. You still have to select the list manually where the stock is listed though.

    EQUITYFRAME("NASDAQ","AAPL")
    timeframe(30 minutes)
    c = close
    
    equityframe(default)
    mnn= Close CROSSES OVER Average[4](close) and average[4]> average[20]
    myShare = close=c //identify AAPL as the current stock
    
    Screener [mnn and myShare](c)
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Select single stock for coding


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
bilsko @bilsko Participant
Summary

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

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