Home

Advertisement

Customize

Shantanu Oak

Nov. 23rd, 2007

08:22 pm - What is a Stop Loss order ?

A Stop loss order allows the client to place an order which gets activated only when the market price of the relevant security reaches or crosses a threshold price specified by the investor in the form of 'Stop Loss Trigger Price'. When a stop loss trigger price (SLTP) is specified in a limit order, the order becomes one which is conditional on the market price of the stock crossing the specified SLTP. The order remains passive (i.e. not eligible for execution) till the condition is satisfied. Once the last traded price of the stock reaches or surpasses the SLTP, the order becomes activated (i.e. eligible for execution by being taken up in the matching process of the exchange) and then on behaves like a normal limit order. It is used as a tool to limit the maximum loss on a position.

Examples :

Stop Loss Buy Order
'A' short sells Reliance shares at Rs 325 in expectation that the price will fall. However, in the event the price rises above his buy price 'A' would like to limit his losses. 'A' may place a limit buy order specifying a Stop loss trigger price of Rs 345 and a limit price of Rs 350. The stop loss trigger price (SLTP) has to be between the last traded price and the buy limit price. Once the market price of Reliance breaches the SLTP i.e. Rs 345, the order gets converted to a limit buy order at Rs 350.

Stop Loss Sell Order
'A' buys Reliance at Rs 325 in expectation that the price will rise. However, in the event the price falls, 'A' would like to limit his his losses. 'A' may place a limit sell order specifying a Stop loss trigger price of Rs 305 and a limit price of Rs 300. The stop loss trigger price has to be between the limit price and the last traded price at the time of placing the stop loss order. Once the last traded price touches or crosses Rs. 305, the order gets converted into a limit sell order at Rs. 300.

Important
Please note that in a buy order the SLTP cannot be less than the last traded price. This is treated as a normal order because the condition that the last traded price should exceed the stop loss trigger price for a buy order is already satisfied. Similary, in case of a stop loss sell order the SLTP should not be greater than the last traded price for the same reason.

Tags: ,
Current Mood: [mood icon] cheerful

Jan. 17th, 2006

11:44 am - User Styles

User styles let you change the way your browser displays web pages.
How to use the style rules listed on this page
* To use a style on all sites: use Stylish (Firefox only), or put the style in a user style sheet.
* To use a style on a specific site: use per-site rules (Firefox only) with the methods above.
* To use a style whenever you click a button: use the bookmarklet creation tool to make a personal toolbar button that adds style rules to a page.
* To use a style once: use the test styles bookmarklet and type the styles into the window that appears.

http://www.squarefree.com/userstyles/

Tags: ,
Current Mood: artistic

Oct. 28th, 2005

09:14 pm - Backing Up All MySQL Databases

To back up all databases on a particular server, use the mysqldump command:

$ mysqldump --all-databases -p | bzip2 -c > databasebackup.sql.bz2
Enter password:
$


This will put all of the databases in a compressed bzip2 file. Transfer the file to your other server and decompress:

$ bzip2 -d databasebackup.sql.bz2
$ ls data*.sql
databasebackup.sql
$ head -n 7 databasebackup.sql
-- MySQL dump 9.11
--
-- Host: localhost Database:
-- ------------------------------------------------------
-- Server version 4.0.22-standard

--
$


Restore your backup using the mysql command:

$ mysql -p < databasebackup.sql
Enter password:
$


Do be doubly sure that you aren't restoring over something that exists already. This command is ideal for rebuilding a server, but is risky if there are already MySQL databases and tables on the server.

http://www.netadmintools.com/art408.html

Tags: ,
Current Mood: geeky

Oct. 11th, 2005

10:28 am - MySQL's Over-looked and Under-worked Slow Query Log

The slow query log is one of the less-used logs, as by default it's not activated, but it's a useful log for identifying queries that are not optimal. Often, in an under-performing system, especially with the default MyISAM tables (that make use of table-level locking, not row-level locking), a single query may be the cause of problems.

To activate the query log, simply place:
log-slow-queries = [slow_query_log_filename]
in your configuration file (my.cnf or my.ini), slow_query_log_filename being the optional filename for your log file. If you don't supply a filename, the default name will be used, which is the name of the host machine, with -slow.log being appended.

The slow query log logs all queries that take longer than long_query_time, which is usually 10 seconds by default (more than long enough for a self-respecting query to complete). You can alter the long_query_time in the configuration file. The following example sets the time to 5 seconds:
set-variable = long_query_time = 5
The slow query log can also optionally log all queries that don't use an index by placing the following in the configuration file:
log-long-format

Let's take a look at a sample slow query log:

/usr/local/mysql/libexec/mysqld, Version: 3.23.54-log, started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
# Time: 030207 15:03:33
# User@Host: wsuser[wsuser] @ localhost.localdomain [127.0.0.1]
# Query_time: 13 Lock_time: 0 Rows_sent: 117 Rows_examined: 234
use wsdb;
SELECT l FROM un WHERE ip='209.xx.xxx.xx';

The first few lines simply contain version information, but the really useful data begins with the Time. This tells you what time the query completed. The next line contains user data, and the following how long the query took to run, how long it took to secure its locks, how many rows were sent back as a result, and how many rows were examined to determine the result. The final line before the actual query tells you which database was used. A discussion on optimizing queries is beyond the scope of this article, but you should know something about this before you can get the most out of the log. Otherwise, you may be able to identify the un-optimal queries, but not be able to do much with them. You should read the article Optimizing MySQL: Queries and Indexes if you are unclear about the top

http://www.databasejournal.com/features/mysql/article.php/2013631

Tags: ,
Current Mood: geeky

Oct. 10th, 2005

10:12 am - Speed up firefox

1.Type "about:config" into the address bar and hit return. Scroll down and look for the following entries:
network.http.pipelining
network.http.proxy.pipelining
network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.

2. Alter the entries as follows:
Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true"
Set "network.http.pipelining.maxrequests" to some number like 30. This means it will make 30 requests at once.

3. Lastly right-click anywhere and select New-> Integer. Name it "nglayout.initialpaint.delay" and set its value to "0". This value is the amount of time the browser waits before it acts on information it receives. If you're using a broadband connection you'll load pages MUCH faster now!"

http://www.realtechnews.com/2005/01/make-firefox-faster-than-anything.html

Extension:
http://www.realtechnews.com/posts/1922

Tags: ,
Current Mood: geeky

Sep. 23rd, 2005

01:11 pm - Replacing Text with a Graphic

There may be times when you have a need to replace text in your document with a graphic. For instance, you might be working on a marketing document and need to replace all instances of your company name with the company logo. This is simple enough to do in Word by following these steps:
1. Place the graphic in your document; it doesn't matter where.
2. Select the graphic.
3. Press Ctrl+X. This removes the document, placing it in the Clipboard.
4. Press Ctrl+H or choose Replace from the Edit menu. This displays the Replace tab of the Find and Replace dialog box. (Click here to see a related figure.)
5. In the Find What field, enter the text you want replaced with the graphic.
6. In the Replace With field, enter ^c, or click on Special and choose Clipboard Contents.
7. Set any other searching criteria, as desired.
8. Click on Find Next or Replace All, depending on how you want to make your replacements.

http://wordtips.vitalnews.com/Pages/T1477_Replacing_Text_with_a_Graphic.html

Tags: , ,
Current Mood: artistic

Sep. 21st, 2005

07:36 pm - Quick Search

I have added one more very useful search feature called "Quick search".
The software is based on google and yubnub.org

Goto the site
http://saraswaticlasses.com

Type the keyword and the value in the search box.

bus 253
Will tell you the route of BEST Bus no. 253

wp pineapple
More information about Mumbai on Wikipedia.

gim pineapple
Image of pineapple

hindi abstract
Hindi meaning of abstract.

convert .05 million to thousand
convert millions to thousand or any unit to any unit.

define abstract
mw abstract
cambridge abstract

All the above keywords will give you more information about the word for e.g. abstract

gmails shantanu
All the mails received by you that contain the word shantanu

gnews mtnl
All the news about MTNL accesssed through google.

nse mtnl
MTNL stock prices on NSE website.

2*78
Any calculation. for e.g. 2^4

Following are the useful commands for experts and web developers.
If you want to know more about any command, type ls (stands for list) followed by the command.
for e.g.
ls RDNS
will tell you what does that command do.

split
arch
sqlsearch
sqlfind
code
ipinfo
netcraft
w3s
glinux
ljupdate
php
mysql
download
whois
alexa
html
RDNS
stock

(I used the ljupdate command to reach to this page where I am pasting my entry)

Current Mood: [mood icon] amused