Just wanted 2 share and discuss about my software (developed using asp.net 4.0 application) ....
I started a blog www.stockcallsindia.com few years ago where I used to post daily technical calls but now I have developed an automated system to generate intraday calls dynamically...
I have developed a simple application that Auto Post (to my blog via email) Targets/Stoploss/Support/Resistance from 5 random stocks choosen from a list of top 100 stocks (frm NSE) ....
In a simple language What I did was ...
1. Created a list of stocks with thier yahoo codes (easily gettable) and chose random 5 stock codes.
2. created a yahoo url like http://finance.yahoo.com/d/quotes.csv?s=^NSEI+RENUKA.NS+ACC.NS&f=nhgpls"
(Created it dynamically with first stock being ^NSEI plus 5 stock code appended with + sign)
3. Read the data inside .csv file programmatically (via .HttpWebRequest and StreamReader .... ASP.Net classes) and saved all the data into variables.
4. Now that I have 5 stocks and thier high,low close, cmp.... I calculated
pivote point for each of these stock using following formula
P=(H+L+C)/3
5. Also calculated ...
'R1 = (P x 2) - L
'S1 = (P x 2) - H
'R2 = P + (H - L) = P + (R1 - S1)
'S2 = P - (H - L) = P - (R1 - S1)
6.
Used the following logic to generate Intraday Calls
1. Keep a target of 0.75% or 1%. Put Stoploss of 0.5%.
2. I checked for the following conditions. (I got it from a website...)
a. The price is below the Pivot but above S1. In this scenario, you should buy the stock/underlying above Pivot (If price reaches above Pivot) and sell below S1(if the prcies goes below S1).
b. The price is above Pivot but below R1. In this scenario, you should buy the stock/underlying above R1 (if the price reaches above R1) and sell below Pivot(if the price goes below Pivot).
c. The price is very near to pivot (+/- 0.02%) In this scenario, you should buy the stock/underlying above R1 (if the price reaches above R1) and sell below S1(if the price reaches below S1).
d. The price is between R1 and R2. In this scenario, you should buy the stock/underlying above R2 (if the price reaches above R2) and sell below Pivot(if the price reaches below Pivot). The important here is not to sell below R1. You must sell below Pivot.
e. The price is between S1 and S2. In this scenario, you should buy the stock/underlying above Pivot (if the price reaches above Pivot) and sell below S2(if the price reaches below S2). The important here is not to buy above S1, buy only above pivot.
f. The price is between S2 and S3. Same rule applies as rule 5. Buy above pivot sell below S3.
g. The price is between R2 and R3. Same rule applies as rule 4. Buy above R3 sell below Pivot.
(I omitted this condition...)
1. Keep a target of 0.75% or 1%. Put Stoploss of 0.5%.
2. I checked for the following conditions. (I got it from a website...)
a. The price is below the Pivot but above S1. In this scenario, you should buy the stock/underlying above Pivot (If price reaches above Pivot) and sell below S1(if the prcies goes below S1).
b. The price is above Pivot but below R1. In this scenario, you should buy the stock/underlying above R1 (if the price reaches above R1) and sell below Pivot(if the price goes below Pivot).
c. The price is very near to pivot (+/- 0.02%) In this scenario, you should buy the stock/underlying above R1 (if the price reaches above R1) and sell below S1(if the price reaches below S1).
d. The price is between R1 and R2. In this scenario, you should buy the stock/underlying above R2 (if the price reaches above R2) and sell below Pivot(if the price reaches below Pivot). The important here is not to sell below R1. You must sell below Pivot.
e. The price is between S1 and S2. In this scenario, you should buy the stock/underlying above Pivot (if the price reaches above Pivot) and sell below S2(if the price reaches below S2). The important here is not to buy above S1, buy only above pivot.
f. The price is between S2 and S3. Same rule applies as rule 5. Buy above pivot sell below S3.
g. The price is between R2 and R3. Same rule applies as rule 4. Buy above R3 sell below Pivot.
(I omitted this condition...)
All Stock Names are retrieved dynamically
If CMP < P And CMP > S1 Then
BUY Stock Above P
Target: P + P * 0.75 / 100 And P + P * 1 / 100
Stoploss: (CMP - CMP * 0.5 / 100)
If it trades below S1
SELL Stock
Target: CMP - CMP * 0.75 / 100 And (CMP - CMP * 1 / 100)
Stoploss: (CMP + CMP * 0.5 / 100)
ElseIf CMP > P And CMP < R1 Then
BUY Above R1
Target: (R1 + R1 * 0.75 / 100) And (R1 + R1 * 1 / 100)
Stoploss: (CMP - CMP * 0.5 / 100)
If it trades below P
SELL Stock
Target
P - P * 0.75 / 100) And (P - P * 1 / 100)Stoploss: (CMP + CMP * 0.5 / 100)
ElseIf CMP > (P - P * 0.02 / 100) And CMP < (P + P * 0.02 / 100) Then
BUY Above R1
Target
R1 + R1 * 0.75 / 100) And (R1 + R1 * 1 / 100) Stoploss: (CMP - CMP * 0.5 / 100)
If it trades below S1
SELL Stock
Target: (S1 - S1 * 0.75 / 100) And (S1 - S1 * 1 / 100)
Stoploss: S1 + S1 * 0.5 / 100
ElseIf CMP > R1 And CMP < R2 Then
BUY Above R2
Target: (R2 + R2 * 0.75 / 100) And (R2 + R2 * 1 / 100)
Stoploss: (CMP - CMP * 0.5 / 100)
If it trades below P
SELL Stock
Target: (P - P * 0.75 / 100) And (P - P * 1 / 100)
Stoploss: (P + P * 0.5 / 100)
ElseIf CMP > S2 And CMP < S1 Then
BUY Above P
Target: (P + P * 0.75 / 100) And (P + P * 1 / 100)
Stoploss
P - P * 0.5 / 100)If it trades below S2)
SELL Stock
Target: (S2 - S2 * 0.75 / 100) And (S2-S2*1/100)
Stoploss: S2 + S2 * 0.5 / 100
End If
8. Also Generated yahoo charts usings the codes.....
9. Finally formatted the intraday calls using fonts/styles and posted this as an html email and mailed it to a secret email which is fetched by my wordpress blog to generate a blog post (using plugin POSTIE) ....
Attached the screenshot of the generated intraday calls....
If smbdy hv other logic or suggestion for generating Targets/Stoploss plz share.... and yes pls dont ask me to share the exact asp.net code... i can share the logic but not d code.....
Sample post is attached as an Image.... also you can visit www.stockcallsindia.com to see the live calls....













Leave Comment
Categories
Recent Articles
Rate this article