Stocks To Keep A Close Eye On

Status
Not open for further replies.

aditya14

Well-Known Member
Any member knows how to get realtime data from TTADVANCE->AMIBROKER???

Guys if anyone has any idea please help me.

And regarding earlier query that 5250-3500 crash is highly unlikely but yes the upside looks a little limited now that a lot of stocks are overbought and even now get bought as a lot of funds will look to participate no matter where the market is.

But once 5200 gets breached decisively the buying panic will start.The experienced veterans like Savant will guide the way.
 

SavantGarde

Well-Known Member
Hi Tazzking,

5250 Is Not A Milestone.... & Wherever You May Have Heard Figures Of 3500 & 4000 Is Not Coming Any Time Soon...... Perhaps It Will Become More Difficult As We Scale Up.....

Any Correction At This Point Or Going Forward Will Only Be A Kneejerk Reaction To Any Policy Statement Made By RBI

We Should Be Able To See Nifty Reach 6700-7000 Levels In 2010


Happy & Safer Investing

SavantGarde

savantji and all seniors...everybody talking about the last milestone of nifty is 5250....after that market may down to 3500 or 4000....is that true...what chart says, please share your views on this.....thanx to every members of traderji..this year really good for investors and traders..

HAPPY NEW YEAR in advance....hope coming year will also good for market...
 

bunny

Well-Known Member
Hi Tazzking,

5250 Is Not A Milestone.... & Wherever You May Have Heard Figures Of 3500 & 4000 Is Not Coming Any Time Soon...... Perhaps It Will Become More Difficult As We Scale Up.....

Any Correction At This Point Or Going Forward Will Only Be A Kneejerk Reaction To Any Policy Statement Made By RBI

We Should Be Able To See Nifty Reach 6700-7000 Levels In 2010


Happy & Safer Investing

SavantGarde
You weren't here for Christmas wishes, but Happy New Year 2010 :)
 
Hey Tazz,

Thanks for the wishes and wish you the same :)

Who told u all this news? Who is misguiding U? Nothing of that sort is gonna happen in the near future... So jus lay back and enjoy the New year...:)

:)
The idea that the market is going to head down, down, down, is believed by the followers of Prechter ji. Many of these believers have sold out quite some time ago and are waiting and waiting patiently (though not silently) for the Elliot Wave to wash everything away .... :p
 

asnavale

Well-Known Member
Any member knows how to get realtime data from TTADVANCE->AMIBROKER???

Guys if anyone has any idea please help me.

And regarding earlier query that 5250-3500 crash is highly unlikely but yes the upside looks a little limited now that a lot of stocks are overbought and even now get bought as a lot of funds will look to participate no matter where the market is.

But once 5200 gets breached decisively the buying panic will start.The experienced veterans like Savant will guide the way.
Hi Aditya,

Go to the following post and also read other posts in that thread for steps on how to setup ManshiRT for TTA.


http://www.traderji.com/software/35442-realtime-stock-quotes-16.html#post395308

-Anant
 
Hello friends,

I am Anant. I am posting in this forum for the first time. Most of my posts are in Karthik Marar's threads "Experiments in Technical Analysis" and "System Implementation Excercise". For long time I have not posted in Traderji though I am regularly going through the messages in the forum.

I had asked Uma to post the updater AFL. But Uma insisted that I should do it and explain the AFL and its usage. So, I am doing it now. The AFL is attached with this message as 'updater.txt'. You can download it into your Ami Broker Folder under Formulas-Custom folder and rename it to 'updater.afl'. The AFL itself is very simple and short.

Coming to the working of the AFL, I will explain it line by line. Experts can directly start using it as they will understand the functioning of the AFL.

Take the first two lines of the AFL:

Code:
[COLOR="Blue"]BuyDate = ParamDate("Buy Date", "28-05-2009");
Dt = DateNum();[/COLOR]
The first line is for selecting the Date on which the stocks were purchased. The default date is 28-05-2009 as this was the date from which Uma is tracking the stock list. You can select any date you want. I will explain later how to select the date when describe how to use the AFL later. The second line is just to get the dates of the quotes in your database and convert them to a number. Ami Broker converts dates to number as follows:
Date Number = (Year - 1900) * 10000 + (Month number) * 100 + Date.
Therefore 28-05-2009 becomes 109 * 10000 + 5 * 100 + 28 = 1090528.

Now take the next 8 lines:

Code:
[COLOR="blue"]
for(i = BarCount - 1; i > 0; i--)
	{
		if(Dt[i] == BuyDate)
		{
			BarNum = i;
			break;
		}
                           else
                           {
                                       BarNum = 1;
                           {

	}[/COLOR]
This portion finds out where in the databse is the data pertaining to the buying date. For this what it does is start counting from the latest data point and count backwards. For each data point it examines the date of that point and compares with the selected buying date (selected in line 1 above). If the dates match it takes that point and stops counting and goes to next part of the code. Ami broker stores the data for each stock for each day as a bar and its position in database is referred to as BarIndex. The bar numbers start with zero for the oldest data point and continue further towards the latest by increasing the number by 1 for each subsequent bar. Total number of data points available for a stock is called the BarCount.

Now the next portion of the code:

Code:
[COLOR="blue"]BuyingPrice = IIf(H[BarNum - 1] > H[BarNum], H[BarNum], IIf(H[BarNum - 1] < L[BarNum], L[BarNum], H[BarNum - 1]));
PL = C - BuyingPrice;[/COLOR]
Here we are determining the buying price for the stock. As we have located the data point for the date of purchase and saved the position as BarNum, we now use the data for this BarNum to determine the price. As Savantji has explained the buying price is the previuos day's high. Therefore the program selects the high of previous day (the day before buying) as the buying price. But if on the actual day of buying the High is lower than the previous day's high then it selcts High of buying day as purchase price. If the low of buying day is higher than previous day's High then the low of buying day is taken as purchase price.
Using this purchase price the program determines the Profit/loss by subtracting the purchase price from the day's close. This is stored as PL
Now the remainder of the program code simply prepares the report:

Code:
[COLOR="blue"]Filter = 1;

SetOption("NoDefaultColumns", True);

AddColumn(DateTimeConvert(2, BuyDate), "Buy Date", formatDateTime);
AddColumn(DateTime(), "Updated on", formatDateTime, colorDefault, colorDefault, 120);
AddTextColumn(Name(), "Symbol", 12, colorDefault, colorDefault, 120 );
AddColumn(BuyingPrice, "Buy Price", 6.2);
AddColumn(C, "Today's Close", 6.2);
AddColumn(PL, "P / L per share", 6.2, IIf(PL < 0, colorRed, IIf(PL > 0, colorGreen, colorDefault)), colorDefault, 72);
AddColumn(PL * 100 / BuyingPrice, "P / L %", 6.2, IIf(PL < 0, colorRed, IIf(PL > 0, colorGreen, colorDefault)), colorDefault, 72);[/COLOR]
The statement Filter = 1 defines the criterion based on which the report should be prepared. Filter = 1 selects all stocks.
the 'SetOption' statement declares that there are no default columns in the report and only the column defined in the program are reported.
The remaining 'AddColumn' statements define the column we want to see in the report, the order in which the columns are presented and the format of the column contents.

That's all about the logic of the AFL and its working internals.

The instructions for its usage are in the next post.

Regards

-Anant

Bro I have ab 5.29 with patternexplorer, all the afl are working well but dont know why updater.afl is not working, chart remain blank.
 
Re: Stocks To Keep A Close Eye On - Chapter II

The following message was originally posted in the main thread "Stoks to Keep a Close Eye On, page 340, post No. 3398. I am posting it here as per the suggestion of Savantji.

HOW TO USE THE UPDATER AFL

To use the updater you have to do a bit of manual job in Ami Broker. First, download the 'updater.afl' file from my previous post and save it in 'AmiBroker\Formulas\Custom' directory.

Now you need to create a watchlist to contain all the stocks which have given a trigger on a particular day. To easily identify the date of buying the stocks in the watchlist I rename the default watchlist name such that the buying date is in the name itself. Thus, for example, for the stocks bought on 28-5-2009 I name the watchlist as 'Buy20090528'. For June 1, 2009 I name the watchlist as 'Buy20090601' and so on. You can use your own convention of naming so that you have distinct watchlist for each buying day. This is necessary for the AFL to work properly.

After creating the watchlist add all the relevant symbols in it. For this Click on 'Symbol' in the main menu bar and select 'watchlist-Add selected symbol' and add the symbol to your watchlist.

Once you add all the symbols to the watchlist Click on 'Analysis' menu item on main menubar and select 'Automatic Analysis'. The Automatic Analysis Window opens. In this window you have to set some parameters.

First, click on the 'Pick' button which is on the right side top line. A file selection dialog opens. Select the 'Custom' folder (in which you have saved the 'updater.afl' file). Select the 'updater.afl' file from the file list and click 'Open'. Back in the Analysis window. Then, under 'Apply to' column select 'use filter' and click 'Define' button. In the window that opens click on 'Clear' button. Then click on dropdownlist against the 'Watchlist' label. From the list of watchlist names select the watchlist which you have created. Do nothing else and click OK.

You are now back to the "Analysis window". Under the middle column labelled 'Range' select the 'from' radio button. The circle should be clicked to mark a dot in it. Against this item there are two dates 'from' is upper and 'to' is lower. Select the same date for both. This date is the date for which you want to generate the update report. For example, if you want to get the update for June 2, 2009 select this date for both 'from' and 'to'.

Now we have to set the date of purchase. Do you remember the Buy Date parameter in the first line of the code which I explained in the previous post? It is this date parameter which the program is going to use. The default buying date is 28-05-09. If you don't select buying date then 28-05-09 will be used as buying date. To select a different buying date Click on 'Parameters' button in the Analysis window. This button is located at the bottom of the buttons just by the side of 'Close'. When you click this a dialog box appears and you can select the desired buying date. After selecting the date close the dialog box by clicking OK. You are back in the Analysis window.

You are now ready to generate the update report. Just click on the 'Explore' button. This is located on the right side just below 'edit' button. The bottom table gets filled with the updated report. That's all.

I have a word document with screen-shots of each step described above and detailed explanation. But the size is larger than permitted to post it here. I will see an alternate way so that those who are new to AmiBroker can go through it and understand. I will keep you informed about this.

For the time being, "Its time to move on. Aur Bolo."

Post your comments, queries, suggestions, crticisms etc. without hesitation.

Regards

-Anant

Buy Date Updated on Symbol Buy Price Today's Close P / L per share P / L % Stop Loss Target Target Reached SL Hit
24-12-2009 24-12-2009 15:30:00 ABAN 1239.00 1219.00 -20.00 -1.61 1153.00 1347.00
24-12-2009 24-12-2009 15:30:00 ABB 772.00 772.50 0.50 0.06
24-12-2009 24-12-2009 15:30:00 ACC 859.20 860.50 1.30 0.15 834.25 901.15
24-12-2009 24-12-2009 15:29:00 BALAJITELE 57.10 56.60 -0.50 -0.88 54.20 60.90
24-12-2009 24-12-2009 15:30:00 BHARTIARTL 327.00 321.50 -5.50 -1.68 309.05 349.15
24-12-2009 24-12-2009 15:30:00 BHEL 2369.90 2361.25 -8.65 -0.36 2267.00 2495.00
24-12-2009 24-12-2009 15:30:00 BPCL 615.45 613.60 -1.85 -0.30 587.00 643.90
24-12-2009 24-12-2009 15:30:00 CANDC 244.60 252.00 7.40 3.03 231.40 292.70
24-12-2009 24-12-2009 15:30:00 DENABANK 85.15 83.70 -1.45 -1.70 80.00 91.60
24-12-2009 24-12-2009 15:30:00 DEWANHOUS 190.45 187.05 -3.40 -1.79 184.50 196.40
24-12-2009 24-12-2009 15:30:00 DLF 367.40 369.45 2.05 0.56 349.55 402.45
24-12-2009 24-12-2009 15:29:00 ESSAROIL 139.45 141.25 1.80 1.29 131.60 157.20
24-12-2009 24-12-2009 15:09:00 GAIL 421.45 419.65 -1.80 -0.43 393.35 451.65
24-12-2009 24-12-2009 15:30:00 HDIL 362.10 365.15 3.05 0.84 332.40 404.10
24-12-2009 24-12-2009 15:29:00 ICICIBANK 865.00 865.00 0.00 0.00 800.50 943.30
24-12-2009 24-12-2009 15:30:00 IDEA 60.15 58.50 -1.65 -2.74 56.10 64.30
24-12-2009 24-12-2009 15:29:00 INDIACEM 121.80 118.65 -3.15 -2.59 113.80 130.70
24-12-2009 24-12-2009 15:29:00 ITC 254.90 255.35 0.45 0.18 243.25 270.25
24-12-2009 24-12-2009 15:30:00 JAGRAN 131.80 130.00 -1.80 -1.37 118.80 145.40
24-12-2009 24-12-2009 15:30:00 JPASSOCIAT 147.00 144.05 -2.95 -2.01 142.50 151.50
24-12-2009 24-12-2009 15:08:00 JPHYDRO 75.45 74.50 -0.95 -1.26 71.30 79.60
24-12-2009 24-12-2009 15:08:00 LT 1675.00 1683.40 8.40 0.50 1606.55 1762.85
24-12-2009 24-12-2009 15:30:00 NIFTY 5149.35 5171.85 22.50 0.44 4944.35 5450.35
24-12-2009 24-12-2009 15:30:00 NIFTYBEES 519.00 519.40 0.40 0.08 496.89 545.31
24-12-2009 24-12-2009 15:08:00 NSEI 5149.35 5188.45 39.10 0.76 4944.35 5438.35
24-12-2009 24-12-2009 15:08:00 PATNI 470.70 472.10 1.40 0.30 417.70 527.60
24-12-2009 24-12-2009 15:30:00 POWERGRID 110.45 108.75 -1.70 -1.54
24-12-2009 24-12-2009 15:24:00 PTC 117.30 116.05 -1.25 -1.07 101.00 133.60
24-12-2009 24-12-2009 15:29:00 RCOM 175.35 174.55 -0.80 -0.46 168.40 186.00
24-12-2009 24-12-2009 15:08:00 SATYAMCOMP 100.50 99.70 -0.80 -0.80 96.10 104.90
24-12-2009 24-12-2009 15:08:00 SBIN 2215.00 2223.20 8.20 0.37 2125.30 2326.10
24-12-2009 24-12-2009 15:30:00 SESAGOA 397.80 401.60 3.80 0.96 362.20 450.20
24-12-2009 24-12-2009 15:29:00 STER 850.35 855.00 4.65 0.55 795.50 932.50
24-12-2009 24-12-2009 15:11:00 SUNFLAG 27.65 27.25 -0.40 -1.45 23.15 32.15
24-12-2009 24-12-2009 15:12:00 SUZLON 88.90 88.50 -0.40 -0.45 77.70 101.00
24-12-2009 24-12-2009 15:10:00 TCS 749.50 752.90 3.40 0.45 655.00 854.60
24-12-2009 24-12-2009 14:40:00 UNITECH 82.40 82.70 0.30 0.36 77.75 88.75
24-12-2009 24-12-2009 15:29:00 VIJAYABANK 52.75 52.00 -0.75 -1.42 49.70 56.60
24-12-2009 24-12-2009 14:40:00 WIPRO 695.00 697.55 2.55 0.37
24-12-2009 24-12-2009 15:30:00 ~~~EQUITY 9183.22 9518.03 334.80 3.65 0.00 18366.45


Anant Bro, i followed ur lesson and applyed it on 24-12-2009 NSE EOD data and it has given so many results as above. some are in green (+), some are in red (+). green means buy but wat does red mean?
 

Rkji

Well-Known Member
anant sir

i have two strategies for intraday in hand as of now

1) savant sirjee' s 5/6 sma crossover on 5 min
2) your 20 ema or sma (single) on 5 min

while i am waiting for sirjee to post some method to avoid whipsaws on 5/6..i plotted 20 ema on a 5 min chart to see how it looks.




so with a single ma in place, we are looking for price crossovers with ma. when price has pierced 20 ema & a candle has emerged above it, still i don' t get a buy signal.. or am i missing something :confused:

afterwards when huge volume is accompanied, it' s already late

similarly on candle 2 i could have gone short but signal aint clear

pls throw some light whenever convenient

regards
rishi
 
Status
Not open for further replies.

Similar threads