Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

SPEED TRADING SYSTEM for Amibroker (AFL)
samr12
over 14 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 2)
Tags:
trading system, amibroker

In “Improve Your Trading System With Speed,” Gomu Vetrivel presents a method to improve trading system performance by choosing only the entry signals that occur when price speed increases. Speed is defined as the absolute difference between today’s and yesterday’s closing prices.

Coding such speed-enhanced trading systems is easy in AmiBroker Formula Language (AFL). Ready-to-use code is presented here. To demonstrate, the code uses a simple 10-/five-bar moving average crossover as a base system (as in Vetrivel’s article); however, users can replace the entry/exit rules (the first four lines of the code) by any other system of their choice to check whether speed-filtering helps.

Similar Indicators / Formulas

EMA crossover
Submitted by Ketan-0 almost 14 years ago
Kase Peak Osc. V2 batu
Submitted by batu1453 over 10 years ago
Kase CD V2batu
Submitted by batu1453 over 10 years ago
Ichimoku
Submitted by prashantrdx over 10 years ago
Adaptive Price Zone (APZ)
Submitted by AndrewThomas almost 14 years ago
LANDIS Modified
Submitted by isfandi almost 14 years ago

Indicator / Formula

Copy & Paste Friendly
// Base trading system
Buy = Cross( C, MA( C, 10 ) );
Sell = Cross( MA( C, 5 ), C );
Short = Cross( MA( C, 10 ), C );
Cover = Cross( C, MA( C, 5 ) );
// Speed calculation
Speed = abs( C - Ref( C, -1 ) );
// SpeedUp is boolean, which is true when speed increases
SpeedUp = Speed > Ref( Speed, -1 );
SpeedDown = Speed < Ref( Speed, -1 );
// these statements modify trading system rules
// to enter long/short only when speed increases
// (hypothesis 1)
Buy = Buy AND SpeedUp;
Short = Short AND SpeedUp; 

1 comments

1. esnataraj

it simple

Leave Comment

Please login here to leave a comment.

Back