Commodity Channel Index (CCI) With Supertrend

CCI indicator oscillates between an overbought and oversold condition and works best in a sideways market.

BUY{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE > ST AND C1 > 0.01 AND REF(C1,1) < 0.01;}

LONGEXIT{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE < ST;}

SELL{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE < ST AND C1 < 0.01 AND REF(C1,1) > 0.01;}

SHORTEXIT{
SET C1 = CCI(21,SIMPLE);
SET ST = SUPERTREND(21,2,SIMPLE);
CLOSE > ST;}

This slideshow requires JavaScript.

Advertisements

Slow & Steady, Algo trading takes up decent share on Dalal Street

origin_cccb28e7b31874b1

Algorithmic trading, a gift of technological advancement to the stock market, is catching up fast with Indian traders and investors.

Markets regulator Sebi recently strengthened the framework for algorithmic trading, making its acceptance more widespread and inconspicuous.

To keep up with changing times, it has become essential for professional traders and arbitrageurs to ramp up speed of execution using contemporary technology tools. And algorithmic trading has come handy.

Algorithmic trading first entered stock markets in mid-1980s, and today it constitutes nearly 70 per cent of total trading volumes in developed markets.

Algorithms are a set of instructions that perform various operations in the market based on the inputs given. Market watchers say the use for algo trading is likely to grow rapidly, as people learn more about financial models, technical indicators and complex, multi-leg option strategies. In many US companies, programmed algos generate technical trades.

In Indian market, many traders use algo signals, which have a set of pre-defined rules, for trading along with their back-tested data base.

“Algorithmic trading can be used regardless of trading strategy. They are used for research and analysis as well as trade execution. One of the early usages of algorithms in stock trading was to help better and faster execution of large orders to reduce their adverse impact on prices, which was the case when such trades used to be executed manually,” says Nitesh Khandelwal, Co-Founder & CEO, QuantInsti.

“It has now become popular with professional traders to enhance profitability of various strategies regardless of market movement, a technique also called alpha of the strategy,” Khandelwal said.

Chandan Taparia, Technical & Derivatives analyst at Motialal Oswal Financial Services, said algo is a platform or a process of using program to follow a defined set of instructions for placing trades to generate profits at a frequency, as such trades are difficult to manage manually. A person can set defined rules based on price, quantity, timing, volumes and any other mathematical model.”

Taparia said the scope for algo trading is huge in India, because of its feasibility, speed and its ability to mitigate human error in execution.

Algorithmic trading can potentially help traders execute orders faster, expand strategy portfolios by using more advanced quantitative tools and remove human emotions that often affect the performance of trading strategies.

“Because of these reasons, algorithmic and quantitative trading strategies are getting more popular, as it can increase the likelihood of success with the backing of the statistical rigor,” Khandelwal said.

Sebi allowed algorithmic trading in India in April 2008 by opening up direct market access to the institutions. Since then, it has grown rapidly across the various asset classes.

“Today, close to 50 per cent of the overall exchange volumes in the F&O segment happen through algorithms. Even in the cash market, the share has grown to more than 30 per cent,” he said.

Algorithmic trading has much higher shares in developed markets, specifically in the US, where more than 70 per cent of overall exchange volumes comes through this route. A part of it can be attributed to the fact that algorithmic trading has existed in the US market for many decades now.

While many people often confuse algorithmic trading with HFT, which is only a specific case or subset of algo trading. One can use algo trading techniques even for fundamental investing with longer investment horizons.

Globally, algo trading is more popular among institutions and professional traders than the individual and retail traders for execution of trades.

The skill and technology needed for algo trading is complex and expensive. Hedge funds, option traders, strategists, pro traders, arbitragers, jobbers, scalper are major users of algo trading.

The key skill needed to succeed in this domain is an understanding of statistics and programming besides, of course, knowledge of the financial markets.

The success rate of algo trade depends on the logic or parameters set in the rule of algo. It’s not a default system, it’s only a platform where people can code their logics as per their understanding and according to a back-tested data base, said Taparia of MOFSL.

In terms of adoption, the Indian market has already crossed the halfway mark of the US and European market levels in last decade. Lower cost of technology, cheaper access to computing power and availability of skilled resources are likely to help fast-track this transition, Khandelwal said.

The future of algo trading adoption will also depend on how the regulations and government policies shape up.

Sebi has been quite prudent with the regulations in this domain. Sebi guidelines on algo trading have also played a positive role in helping its adoption.

From the regulation point of view, the first experiences with the technology have been encouraging. The Indian market has not seen many flash crashes compared with what similar instances in the developed markets.

There are also reports that Sebi might come up with guidelines for use of algo trading by retail traders, which shall help further understanding and acceptance of the domain at a larger scale.

“Algo trading can be beneficial for small-time investors, as it increases liquidity in the market and thereby simplifies the entry and exit process. Increasing depth of algo trading would be good for capital markets as it will remove price inefficiencies in traded securities,” says Ajay Kejriwal, President, Choice Broking.

Source – Economic Times.

EMA with Supertrend As Source

Supertrend is a trend following indicator which can be used to identify upward or downward
trends.

BUY{
SET ST = SUPERTREND(7,3,SIMPLE);
SET MA = EMA(ST,9);
MA > ST AND MA <= (ST * 1.005) AND CLOSE > MA;}

SELL{
SET ST = SUPERTREND(7,3,SIMPLE);
SET MA = EMA(ST,9);
MA < ST AND ST <= (MA * 1.005) AND CLOSE < MA;}

This slideshow requires JavaScript.