Saturday, December 17, 2016

Python script for finding NR7 stocks




It is difficult to upload the NR7 stocks everyday. So, I am sharing the python script here.

import re
import urllib2
import json
import matplotlib.pyplot as plt
import time


print("NR7 Stocks")
def check(stockname):
   

    proxy_support = urllib2.ProxyHandler({"http":"http://61.233.25.166:80"})
    opener = urllib2.build_opener(proxy_support)
    opener.addheaders = [('User-agent', 'Mozilla/5.0')]
    urllib2.install_opener(opener)
   
    url="https://www.google.com/finance/getprices?q="+stockname+"&x=NSE&i=86400&p=7d&f=d,c,h,l,o,v"
    html = urllib2.urlopen(url).read()
 
    min_diff=1000000
    for line in html.split()[7:]:
        diff=float(line.split(',')[2])-float(line.split(',')[3])
      
        if(min_diff>diff):
            min_diff=diff
        #print(stockname,diff,min_diff,float(line.split(',')[2]),float(line.split(',')[3]))
    if(abs(diff-min_diff)<0.01):
        print(stockname)
    return;
  

symbolslist=["ABIRLANUVO", "ACC", "ADANIENT", "ADANIPORTS", "ADANIPOWER", "AJANTPHARM", "ALBK", "AMARAJABAT", "AMBUJACEM", "ANDHRABANK", "APOLLOHOSP", "APOLLOTYRE", "ARVIND", "ASHOKLEY", "ASIANPAINT", "AUROPHARMA", "AXISBANK", "BAJAJ-AUTO", "BAJFINANCE", "BANKBARODA", "BANKINDIA", "BATAINDIA", "BEL", "BEML", "BHARATFIN", "BHARATFORG", "BHARTIARTL", "BHEL", "BIOCON", "BOSCHLTD", "BPCL", "BRITANNIA", "CADILAHC", "CAIRN", "CANBK", "CASTROLIND", "CEATLTD", "CENTURYTEX", "CESC", "CIPLA", "COALINDIA", "COLPAL", "CONCOR", "CROMPGREAV", "CUMMINSIND", "DABUR", "DCBBANK", "DHFL", "DISHTV", "DIVISLAB", "DLF", "DRREDDY", "EICHERMOT", "ENGINERSIN", "EXIDEIND", "FEDERALBNK", "GAIL", "GLENMARK", "GMRINFRA", "GODREJCP", "GODREJIND", "GRANULES", "GRASIM", "HAVELLS", "HCLTECH", "HDFC", "HDFCBANK", "HDIL", "HEROMOTOCO", "HEXAWARE", "HINDALCO", "HINDPETRO", "HINDUNILVR", "HINDZINC", "IBREALEST", "IBULHSGFIN", "ICICIBANK", "ICIL", "IDBI", "IDEA", "IDFC", "IDFCBANK", "IFCI", "IGL", "INDIACEM", "INDUSINDBK", "INFRATEL", "INFY", "IOC", "IRB", "ITC", "JETAIRWAYS", "JINDALSTEL", "JISLJALEQS", "JPASSOCIAT", "JSWENERGY", "JSWSTEEL", "JUBLFOOD", "JUSTDIAL", "KOTAKBANK", "KPIT", "KSCL", "KTKBANK", "LICHSGFIN", "LT", "LUPIN", "MARICO", "MARUTI", "MCDOWELL-N", "MCLEODRUSS", "MINDTREE", "MOTHERSUMI", "MRF", "NCC", "NHPC", "NIITTECH", "NMDC", "NTPC", "OFSS", "OIL", "ONGC", "ORIENTBANK", "PAGEIND", "PCJEWELLER", "PETRONET", "PFC", "PIDILITIND", "PNB", "POWERGRID", "PTC", "RCOM", "RECLTD", "RELCAPITAL", "RELIANCE", "RELINFRA", "RPOWER", "SAIL", "SBIN", "SIEMENS", "SINTEX", "SOUTHBANK", "SRF", "SRTRANSFIN", "STAR", "SUNPHARMA", "SUNTV", "SYNDIBANK", "TATACHEM", "TATACOMM", "TATAELXSI", "TATAGLOBAL", "TATAMOTORS", "TATAMTRDVR", "TATAPOWER", "TATASTEEL", "TCS", "TECHM", "TITAN", "TORNTPHARM", "TORNTPOWER", "TV18BRDCST", "TVSMOTOR", "UBL", "ULTRACEMCO", "UNIONBANK", "UPL", "VEDL", "VOLTAS", "WIPRO", "WOCKPHARMA", "YESBANK", "ZEEL"]
index=0
while(index<len(symbolslist)):
    check(symbolslist[index])
    index=index+1
    #time.sleep(1)

Script Link

http://pastebin.com/KQH5PYcn




Friday, December 16, 2016

NIfty Range for the last couple of years

This graphs below are showing nifty range(high-low) for different years.








Python script for doing the same.

http://pastebin.com/6K724iv1



Wednesday, December 14, 2016

NR7 stocks on 14 dec

NR7 Stocks
ADANIPOWER
AJANTPHARM
AMBUJACEM
APOLLOTYRE
ASHOKLEY
ASIANPAINT
BEML
BRITANNIA
CEATLTD
CROMPGREAV
CUMMINSIND
DISHTV
DLF
DRREDDY
EXIDEIND
GLENMARK
HDFC
HINDALCO
JINDALSTEL
JSWSTEEL
JUSTDIAL
LUPIN
MRF
OFSS
PAGEIND
PCJEWELLER
VOLTAS
YESBANK

How to identify trend days

Identifying trend days

1. Few of the trend days that I observed starts with a gap. Now, it doesn't mean the market is going to close in the direction of gap. Sometimes, markets even does the opposite, it will open 100 points up and will close 100 points down.

2. First 5 min bar will be a WRB(Wide range bar - big in size) bar. 

3. The correction bars will be very small in size.

4. On some trend days it will touch the 21 ema and on some days it will maintain a distance from 21 ema.

5. It is better to wait till the end of day to extract the full juice out of it.

On those days you need to make a entry fast if a doji appears on chart by keeping SL at doji low or on pullback. Better option would be wait for pullback and make an entry when pullback gets over.

Why I am insisting on pullback?
Because some non trending days will also match the characteristics of trending day.  On sideways days, there will be many days following pt.1 and pt.2 but the pullback bars will itself be large in size and pullback will be big.

See some charts below to analyze what I am trying to say.











Tuesday, December 13, 2016

NR7 stocks on 13 Dec

NR7 Stocks
ANDHRABANK
ARVIND
AUROPHARMA
BAJAJ-AUTO
BEML
EICHERMOT
ENGINERSIN
HAVELLS
HCLTECH
HEROMOTOCO
ICICIBANK
ICIL
INDUSINDBK
INFRATEL
JISLJALEQS
JSWENERGY
JUSTDIAL
LT
MARUTI
RCOM
RELCAPITAL
RPOWER
SIEMENS
SRF
TATACOMM
TV18BRDCST
UNIONBANK

WOCKPHARMA

Monday, December 12, 2016

NR7 stocks on 12 Dec



BHARTIARTL
CADILAHC
CAIRN
DIVISLAB
GAIL
HCLTECH
HDFC
HDFCBANK
ITC
NHPC
OFSS
POWERGRID

WIPRO


Sunday, December 11, 2016

NR 7 and NR21 Trading

Link : NR7 tutorial


NR21 stocks
AUROPHARMA
BATAINDIA
BHARATFIN
BRITANNIA
CAIRN
CENTURYTEX
COLPAL
CONCOR
CROMPGREAV
DHFL
EXIDEIND
HINDUNILVR
JETAIRWAYS
JISLJALEQS
LICHSGFIN
MINDTREE
NCC
NHPC
OIL
PETRONET
POWERGRID
SINTEX
SRF
TATAGLOBAL
TORNTPHARM
ULTRACEMCO

WIPRO