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