You are on page 1of 13

Stock Indicator Editor

How can I get start with Stock Indicator Editor?


What kind of functionality you had provided for me to build my own indicator?
Can you show me an example on how to build an indicator?
What is the best way for me to share my indicator with friends?
How can I specific "N days back 14 days moving average"?
I would like to perform MACD scanning.

How can I get start with Stock Indicator Editor?

The best way to get start with Stock Indicator Editor, is to start with our pre-built indicators. You may
install pre-built indicators, by clicking on Install....

Select Install from JStock Server, and click Next.


Select indicators you wish to install, and click Next. We highly recommend you select all

indicators.

Click Finish.

You may test on the indicator, by entering a stock, and press Simulate.

What kind of functionality you had provided for me to build my own indicator?

User may then access the indicator components from the following toolbar.
Each of the component's functionality is described as below.
Component

Icon

Description

Alert

In every indicator which you built, it must consist at least (and only) single alert
component.

Real time stock


information

This represents today real time stock information. You may choose Open Price,
Last Price, High Price, Low Price, Typical Price ([High + Low + Last Price] / 3),
Volume, Change Price, Change Price in Percentage, Last Volume, 1st/2nd/3rd Buy
Price, 1st/2nd/3rd Buy Quantity, 1st/2nd/3rd Sell Price, 1st/2nd/3rd Sell
Quantity.

Stock
history
information

You may specific the stock history information in specific date. For example, you
may specific average stock last price information from 14th June 2005 to 16th
December 2006. You may either choose Maximum, Minimum, Average (Simple
Moving Average), Mean Deviation, MACD, RSI (Relative Strength Index), EMA
(Exponential Moving Average). You may also choose Open Price, Last Price, High
Price, Low Price, Typical Price ([High + Low + Last Price] / 3), and Volume.

Stock relative
history
information

You may specific the stock relative history information in specific date. For
example, you may specific average stock last 14 days price information. You may
either choose Maximum, Minimum, Average (Simple Moving Average), Mean
Deviation, MACD, RSI (Relative Strength Index), EMA (Exponential Moving
Average). You may also choose Open Price, Last Price, High Price, Low Price,
Typical Price ([High + Low + Last Price] / 3), and Volume.

Constant

You may specific any constant number like 1, 10, 200, -5.

Arithmetic

You may perform one of the arithmetic operation, add/ minus/ multiplication/

division.
Function

You may perform one of the function operation, absolute/ square.

Comparison

You may perform the following equality/ comparison operation, equal/ greater
than/ lesser than/ equal or greater than/ equal or lesser than.

Logical

You may perform the following logical operation. There are two : OR/ AND. For
example,
you
want
something
"When today price is lesser than yesterday price OR today volume is lesser than
yesterday
volume"
"When today price is lesser than yesterday price AND today volume is lesser than
yesterday volume"

Can you show me an example on how to build an indicator?


Here is an example, to show you how to build a simple indicator, to find out stock "its closing price is in 14 days
highest". First, we will draft out our equation to Real Time Stock's Last Price >= Maximum from 14 days Stock's Last
Price From the equation, we know that we need the following components :

Real time stock information

Relative stock history

Equality

Alert

Moving Average Convergence Divergence


Relative Strength Index
Money Flow Index
Commodity Channel Index
Doji

Introduction
Moving Average Convergence Divergence (MACD) is a trend following indicator, and is designed to identify
trend changes.

Formula
MACD = EMA[12] of price - EMA[26] of price
where: EMA[12] = 12 days exponential moving average, EMA[24] = 24 days exponential moving average.

Interpretation
When MACD is positive, the stock is moving in upward trend. When MACD is negative, the stock is moving

in downward trend.
Case Study
As shown in the graph above.

In Mar-2009, EMA[12] (in blue line) starts to cross below EMA[26] (in green line). PUBLIC BANK BHD starts
to move in downward trend.

In April, EMA[12] starts to cross above EMA[26]. PUBLIC BANK BHD starts to move in upward trend.

Different groups of investor will have different interpretation on both situation. During downward trend
(negative MACD), some investors view it as a signal to accumulate share in cheap price. However, some
investors may view it as a signal to sell off share on hand, to avoid further paper loss.

Final Note
There is no exact right period for MACD. The longer the time period, the less sensitive the moving average
to daily price change noises. User shall experiment with various time period, according to current market
condition.

Reference
http://en.wikipedia.org/wiki/MACD

Analyzing Stocks Using JStocks Alert Indicator

As I was mentioning in my earlier post, JStock has the pre-built indicators. When in
JStock, click on the tab, Stock Indicator Editor then click on the button, Install (in the
Database panel found to the right of the screen).

Youd be prompted with an Indicator Install Wizard. Choose the default and click on
next.Youll be given the choices of 8 indicators.

Click on any one of them and the screen on the right hand side of the window will display
some short description about the indicator.

Below are the indicators and their short descriptions. And ran against the stock,
GAMUDA (as of 28th Dec 2010)

Indicator: Moving Average Convergence Divergence (MACD)


Usage: Detect DOWN TREND signal
Homepage: http://jstock.sourceforge.net/ma_indicator.html
MACD = EMA[12] of price - EMA[26] of price where: EMA[12] = 12 days exponential
moving average, EMA[24] = 24 days exponential moving average.
When MACD is negative, the stock is moving in downward trend.

Indicator: Moving Average Convergence Divergence (MACD)


Usage: Detect UP TREND signal
Homepage: http://jstock.sourceforge.net/ma_indicator.html
MACD = EMA[12] of price - EMA[26] of price where: EMA[12] = 12 days exponential

moving average, EMA[24] = 24 days exponential moving average.


When MACD is positive, the stock is moving in upward trend.

Indicator: Money Flow Index (MFI)


Usage: Detect DOWN TREND signal
Homepage: http://jstock.sourceforge.net/mfi_indicator.html
MFI = 100 - 100 / (1 + Money Ratio)
If the MFI approaches 30, the price is moving, with little interest in that trade, and it
will most likely fail.

Indicator: Money Flow Index (MFI)


Usage: Detect UP TREND signal
Homepage: http://jstock.sourceforge.net/mfi_indicator.html
MFI = 100 - 100 / (1 + Money Ratio)

If the MFI approaches 70, the price is moving, with a lot of interest in that trade, and it
will most likely continue in the future.

Indicator: Relative Strength Index (RSI)


Usage: Detect SELL signal
Author: Yan Cheng Cheok
Homepage: http://jstock.sourceforge.net/rsi_indicator.html
RSI = 100 - [100/(1 + RS)] where: RS = (Avg. of n-day up closes)/(Avg. of n-day down
closes), n= days (most analysts use 9 - 15 day RSI)
The RSI ranges from 0 to 100. A stock is considered overbought around the 70 level and
you should consider selling. This number is not written in stone, in a bull market some
believe that 80 is a better level to indicate an overbought stock since stocks often trade
at higher valuations during bull markets.

Indicator: Relative Strength Index (RSI)


Usage: Detect BUY signal
Author: Yan Cheng Cheok
Homepage: http://jstock.sourceforge.net/rsi_indicator.html

RSI = 100 - [100/(1 + RS)] where: RS = (Avg. of n-day up closes)/(Avg. of n-day down
closes), n= days (most analysts use 9 - 15 day RSI)
The RSI ranges from 0 to 100. If the RSI approaches 30 a stock is considered oversold
and you should consider buying. Again, make the adjustment to 20 in a bear market.

Indicator: Commodity Channel Index (CCI)


Usage: Detect SELL signal
Author: Yan Cheng Cheok
Homepage: http://jstock.sourceforge.net/cci_indicator.html
CCI = (Typical Price - SMATP) / (0.015 x Mean Deviation)
Typical Price (TP) = (H+L+C)/3 where H = high, L = low, and C = close.
SMATP = Simple Moving Average of the Typical Price.
Mean Deviation = First, calculate the absolute value of the difference between the last
period's SMATP and the typical price for each of the past 20 periods. Add all of these
absolute values together and divide by 20 to find the Mean Deviation.
CCI can be used to identify overbought levels. A security would be deemed overbought
when it exceeds +100. From overbought levels, a sell signal might be given when the
CCI moved back below +100.

Indicator: Commodity Channel Index (CCI)


Usage: Detect BUY signal
Author: Yan Cheng Cheok
Homepage: http://jstock.sourceforge.net/cci_indicator.html
CCI = (Typical Price - SMATP) / (0.015 x Mean Deviation)
Typical Price (TP) = (H+L+C)/3 where H = high, L = low, and C = close.
SMATP = Simple Moving Average of the Typical Price.
Mean Deviation = First, calculate the absolute value of the difference between the last
period's SMATP and the typical price for each of the past 20 periods. Add all of these
absolute values together and divide by 20 to find the Mean Deviation.
CCI can be used to identify oversold levels. A security would be deemed oversold when
the CCI dips below -100. From oversold levels, a buy signal might be given when the
CCI moves back above -100.

I will do another one later with another different stock e.g. TimeCom. So, with all this
indicators to Gamuda, do you think it is a good stock to keep or to sell?

JStock: powerful tool to manage and monitor stocks


Sep 2, 2009 By Samer Kurdi 7 Comments

JStock is a free, open source stock-monitoring software. It can create a database of stocks and
download and deliver data and charts for these in real time for more than 20 world markets and
going back up to 10 years.
It can also set-up stock portfolios where it records all transactions and calculates profit or loss.
Two features stand out, however, the first is Alerts delivery (SMS, Email, or in the system tray)
that are based on user-created Stock Indicators. The second is a built-in chat function
designed to enable JStock users to communicate with each other and share information. JStock
is multiplatform (Windows/Linux/Mac/Solaris).
This program will let you view/download stock data in real time and define portfolios of stocks
and monitor their activity and profit/loss; but the WOW-inducing feature is the ability for users to
define their own Stock Indicators and to have the program automatically deliver alerts based
on these. For example, you can tell JStock to alert you by SMS if it finds a stock price thats at
the highest its been for the past 6 months. This may not sound too exciting if you just have one
or two stocks that you are interested in, but JStock will do this for hundreds of stocks that you
might want to monitor and define in its database.

Here are more notes on this program:

How it works: the main Real Time Info tab displays a list of stocks that you can
monitor. Although it is pre-populated when you launch the program, note that you can delete
stocks from the list and add just the ones you find relevant. Also note that you can select the
country of interest and download the entire list of stocks for that country, which is very
convenient. If your stock is somehow not showing you can add it to the database individually.
JStock will now download price changes in real-time for these, and will even chart . Once you
have your list, sorting by column headers can be a great help. I would say, however, that the
list is in need of more filtering options (see my wish list below)

Charting: right click on an individual stock and click History to receive an instant 10year chart for the stock in question showing both stock prices and trade volume. You can
also request a candlestick chart. You can limit the range of charted data by simply drawing a
rectangle over the time period you are interested in with the mouse.

Alerts: once you set up your desired Stock Indicators (see below) JStock can deliver
SMS, Email, or system tray alerts based on these. SMS alerts are 100% free (you need to
set up a Google Calendar account and register your mobile number; more info here). Alerts

can be sent for stocks in your real time list, for an entire countrys stock market, for a
particular board such as the NYSE, for a unknown industries (I am not sure exactly how
JStock comes up with these), or, perhaps most useful, for the stocks that are user-defined in
your database (choose user-defined industry for this one).

Stock Indicators: JStock allows you to create your own indicators and use these to
generate alerts. A visual editor is built into JStock that allows you to create these without any
programming skills; however, it helps to know what you are going after ;). I simply re-created
the indicator that was described in the help section and it was apparent to me just how
powerful and versatile these indicators could be. The image to the right shows an alert that
will be triggered when the stocks current last price is the maximum it has been for the past
14 days. Very cool!

Portfolio Management: this is where you can record


transactions that occur on a list of stocks and keep track of your
profit and loss. I did not really use this, but I imagine that it would
be extremely value added

Chatting: I was not able to find anyone to chat with; either


there were no users online or I set it up incorrectly (although the

set-up seemed super easy).


Wish list:

Tagging: it would be great if you could create custom tags and associate them with
stocks (perhaps in the user-defined stocks database entries), and then use these later for
filtering/grouping, for alerts, or other operations.

Filtering: I found it strange that are no means to isolate a stock or group of stocks in a
list and view these in isolation. You cannot even type in a stock ticker symbol and filter it out
from the list. What would be tremendously value-added is if you could filter each column
Excel-style using certain criteria (e.g. only if the Chg% is larger or smaller than a certain
value, etc). Of course you can currently create Stock Indicators and filter lists that way, but it
would be so much more user-friendly to be able to filter on-the-fly.

Downloading: ok so I charted the past 12 months for stock x; now can I please
download these into CSVl? A strange omission.

Chart range pre-sets: as in the past week, the past 1 month, 2 months, 1 Year,
etc., to be selected from a dropown. Another very strange omission.

Pre-defined indicators: it would be cool if the program with a few clever or value

added indicators pre-defined, to get people started with indicators.


The verdict: this program one of the best in its category. It could use a streamlining of the user
interface to make it more user-friendly, but it makes up for that in the power that it has under the
hood and the sheer ambition of its covered functionality. Occasional or regular investors alike
will find this program very useful and value added. Highly recommended!
Version Tested: 1.0.4i

You might also like