Select single stock for coding

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #163668 quote
    bilskobilsko
    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
    VonasiVonasi
    Moderator
    Master
    #163676 quote
    NicolasNicolas
    Keymaster
    Legend

    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
    bilskobilsko
    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
    bilskobilsko
    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
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
5 years, 6 months ago.

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