Showing posts with label automated trading. Show all posts
Showing posts with label automated trading. Show all posts

Wednesday, August 13, 2014

Is Macd Worthwhile For a Strategy?

Watch how I develop a trading strategy using the Macd.

There are so many ways to use the Macd. I want to develop an automated trading system which will be based on the Macd.

I will set up Forex Strategy Builder Pro to generate a system, using the Macd as the 'seed'. The generator in FSB Pro is free to change many aspects of the Macd as it is creating strategies with other indicators or price conditions.

Here is a look at how I started this:









I am using 60 minute data of EURUSD for this purpose, 35 per cent 'out of sample' as I want to be able to see easily what I can expect from this system in future.

As I have been typing this article the generator has been working, done just over 1,800 iterations which resulted in 51 potential strategies.

Here is what the screen looks like now.




You can see that the generator has pulled in other indicators as it seeks better and better results




I want to have a look at the 'Repository', there may already be a strategy of interest appearing in there.





You can see that none of these look too impressive, no System Quality Number, appearing even thogh an excellent Win/Loss ratio and nice Net Balance in the selection shaded blue.



I will restart the generator and set the System Quality bar to ensure that new entries to the repository have a System Quality Number. Actually I have set minimums for each criteria so that some good ones will be what appears from now on.





I have set the values low so as to allow the repository to gather some results that may not be satisfactory but which may show some promising indicator combinations that can be tested on their own to see what they may produce.



It should be noted that the winner of the 2006 Trading Championship used the Macd to win first place. Indeed, the Macd as a starting point for developing an automated trading strategy may turn out to be a good idea.

By setting some parameters for the Repository collection, I have eliminated many generated results, however, it is time to get quality instead of quantity and I will have to be patient until some good results appear.  In the meantime all results are being stored in the 'Collections' so that I can peruse them when convenient.

I have some results now that I will share with you, they may not be the best in terms of a system to use but they are of interest. We can have a look at these two and I will give you quite a bit of information from the program.





You can see that each of these has a System Quality Number which is what I wanted to be sure to have.. The first result, the one shaded in blue is of very poor quality because there are no trades in the Out Of Sample Area.

The second result has an abundance of trades and while the ratios may not be pretty there are some things to learn from examining this result more closely.

I will open this result as a strategy and prepare for further examination.

First we will see which indicators make up the system.



.And then we have some statistics and an equity chart.




And then a breakdown between Long and Short trades that we can examine carefully



You can see that the software has generated a system that takes $100 to some great sum, close to $30,000, however, this may be unsatisfactory based on the poor ratios.

Here is an overview of that trading strategy which is quickly prepared by the software.

Strategy Overview

Strategy name: New Strategy
Forex Strategy Builder Professional RC 1
Date: 13/08/2014 6:53:37 PM

Table of Contents


Description

None.

Logic

Opening (Entry Signal)

Open a new long position at Lower Band of Bollinger Bands* (Smoothed, Typical, 4, 4.77) when the following logic condition is satisfied:
  • MACD* (Simple, Close, Exponential, 47, 18, 20); MACD line falls.
Open a new short position at Upper Band of Bollinger Bands* (Smoothed, Typical, 4, 4.77) when the following logic condition is satisfied:
  • MACD* (Simple, Close, Exponential, 47, 18, 20); MACD line rises.

Closing (Exit Signal)

Close an existing long position at the end of the week.
Close an existing short position at the end of the week.

Handling of Additional Entry Signals**

Entry signal in the direction of the present position:
  • No averaging is allowed. Cancel any additional orders which are in the same direction.
Entry signal in the opposite direction:
  • No modification of the present position is allowed. Cancel any additional orders which are in the opposite direction.

Trading Size

Trade percent of your account.
  • Opening of a new position - 8% of the account equity.

Protection

The strategy does not provide a permanent loss limitation.
The strategy does not use a Take Profit.
--------------
* Use the indicator value from the previous bar for all asterisk-marked indicators!
** The averaging rules apply to the entry signals only. Exit signals close a position. They cannot open, add or reduce one.

Strategy Properties

Handling of Additional Entry Signals

Next same direction signal behavior - Does nothing
Next opposite direction signal behavior - Does nothing

Trading Size

Trade percent of your account. The percentage values show the part of the account equity used to cover the required margin.
Maximum number of open lots- 5
Number of entry lots for a new position- 8% of the account equity

Protection

Stop Loss- None
Take Profit- None
Break Even- None

Indicator Slots

The slots show the logic for the long positions only. Forex Strategy Builder automatically computes the proper logic for the short positions.
Strategy Properties
Same direction signalNothing
Opposite direction signalNothing
Stop LossNone
Take ProfitNone
Break EvenNone
Bollinger Bands
Enter long at Lower Band
Smoothing methodSmoothed
Base priceTypical
MA period4
Multiplier4.77
Use previous bar valueYes
Signal shift0
Indicator symbolDefault
Indicator periodDefault
MACD
MACD line falls
Smoothing methodSimple
Base priceClose
Signal line methodExponential
Slow MA period47
Fast MA period18
Signal line period20
Use previous bar valueYes
Logical groupA
Signal shift0
Signal repeat0
Indicator symbolDefault
Indicator periodDefault
Week Closing
Exit the market at the end of the week
Base priceClose

Statistic Information

Input ParametersAccount Statistics
Profile nameDefault profileAcceptance criteriaFulfilled
Data source nameFSB Demo dataNet balance28674.80 USD
Strategy nameNew StrategyIntrabar scanningAccomplished
ChartEURUSD H1Ambiguous bars0
Data bars30000Profit per day16.33 USD
Time of updating2014-08-13 17:00Max consecutive loses4
Time of beginning2009-10-26 08:00System quality number2.10
Spread3.00 pointsSharpe ratio0.21
Swap long2.00 pointsAverage HPR3.35 %
Swap short-2.00 pointsProfit factor1.42
Commission0.00 pointsTested bars29932
Slippage0.00 pointsMinimum balance79.35 USD
Interpolation methodPessimisticMaximum balance33754.80 USD
Initial Account100 USDMax balance drawdown6645.00 USD
Leverage500Max equity drawdown7390.00 USD
Account exchange rateNot usedMax equity drawdown76.61 %
Auto scanSwitched onAverage profit1352.60 USD
Trade until Margin CallSwitched offAverage loss-1273.57 USD
Executed orders501
Winning trades143
Losing trades107
Win/loss ratio0.57
Time in position91 %

Additional Statistics

ParameterLong + ShortLongShort
Initial account [USD]100.00100.00100.00
Account balance [USD]28674.8015320.2013454.60
Net profit [USD]28574.8015220.2013354.60
Net profit [%]28574.8015220.2013354.60
Gross profit [USD]96710.6448799.8547910.79
Gross loss [USD]-68135.84-33579.65-34556.19
Profit factor1.421.451.39
Annualized profit [USD]5953.083170.872782.21
Annualized profit [%]5953.083170.872782.21
Minimum account [USD]79.35-1149.80100.00
Minimum account date11/12/200904/06/201026/10/2009
Maximum account33754.8017815.2016944.60
Maximum account date12/07/201325/10/201305/07/2013
Absolute drawdown [USD]20.651249.800.00
Maximum drawdown [USD]6645.003635.005075.00
Maximum drawdown [%]0.0032.3029.95
Maximum drawdown date26/10/200930/12/201102/05/2014
Historical bars300003000030000
Tested bars299322993229932
Bars with trades272331283614397
Bars with trades [%]90.9842.8848.10
Number of trades250117133
Winning trades1436974
Losing trades1074859
Win/loss ratio0.570.590.56
Maximum profit [USD]2920.002455.002920.00
Average profit [USD]676.30707.24647.44
Maximum loss [USD]-2560.00-2560.00-1910.00
Average loss [USD]-636.78-699.58-585.70
Expected payoff [USD]114.30130.09100.41
Average HPR [%]3.35-24.325.09
Geometric HPR [%]2.294.393.75
Sharpe ratio0.21-0.110.27


You can see that there are many measurements recorded for evaluation.

The next step  that I will do is to take this result and place it in the generator to see if there can be an improvement in the ratios. Certainly the 'Week Closing' could be improved upon, I will see what the generator can do with it.

As you can see in this pic, the generator is compiling more strategies although it has not found a solution which will be acceptable so far.






As time passes it will keep generating strategies and as long as I let it run it will find more and more and perhaps will develop something that I can trade with.

In this article I wanted to display how a strategy can be generated by FSB Pro and some of the tools in the software for evaluation. There are several more tools that I did not include in this article.

The reader may want to have a look at other articles in the blog about FSB Pro, there is a lot to the program for strategy generation.








Forex Strategy Builder Pro Moves To A Higher Level Of Strategy Development

Several new features in the next release to enhance your trading strategies.




Forex Strategy Builder Pro Joins The Ranks Of The Best

For several years the developer of Forex Strategy Builder has been advancing his project to produce excellent trading strategies.

The project is just about ready to reach maturity. In a couple weeks he will be releasing a final version of the program which will outperform any of the competition by quite a bit.

Check out a couple of the new features on the rest of this post.







I do not know of any common software that will develop a strategy on ten or twelve instruments simultaneously to the degree that this one will.









All system developers are concerned with the robustness of their system, Forex Strategy Builder measures several metrics to ensure robustness.

Monte Carlo is required by many developers and now Forex Strategy Builder Pro has Monte Carlo built in.

These are tremendous advances in this software.

I will outline a couple of these features:

Data Download:

This feature allows a developer to download fresh data immediately before starting his tests, no more downloading from Dukas or Mt4, merely start the download and get excellent quality data for each time frame, in other words, forget the patchy data provided by Mt4 and having to use alternate software to get good data, a tremendous time saver.




Robustness:

In order to provide the ability to develop robust systems, the developer has created the ability to be working with strategies for many instruments at once. In other words, robustness is going to be easy to achieve due to the number of instruments in the portfolio.





Monte Carlo:

Great care has been taken to make sure this feature can offer randomness in many ways. As you can see in the picture there are eight areas that can be randomized at once.






Walk Forward:


Walk Forward in Forex Strategy Builder has always been easy and very fast, as fast as you can enter the dates for the walk forward period, the results are available. The developer will soon incorporate a new Walk Forward method but not for this next release.


Forex Strategy Builder Pro is well worth a long look if you are serious about developing trading strategies.

Sunday, August 10, 2014

Top 25 Forex Opinion Leaders



 Necessary for our trading strategies to work is information. Information as to what works and what does not work and also we need to know what may be happening in the market place. Fortunately for us as traders there are people who research and develop great content  and make this available to us on their sites.

Here is a list of great authors created by TradersDNA, these people are influencers in their area of expertise and I wanted to share this great list with you today.





Seeking Alpha: Top 25 Forex Opinion Leaders - Traders DNA ...
http://www.tradersdna.com Tue, 28 May 2013 08:00:34 GMT
Staying informed and making sure that you are as knowledgeable as possible about the markets is one of the cornerstones of any Forex trading strategy. However, with so much information and noise out there, how do you know who you should be listening to? Sometimes, it can pay to tap into the wisdom of crowds, to see what other traders find to be the most useful and profitable sources of information.
In the fast forward and ever changing world of digital and social media all industries are seeing an increase of the importance of personal branding and specially thought leadership. Forex Trading is as well an industry that as it grows needs value creation thought leaders. Influence is the gold of the present times as influencers can change and lead the way companies go and the way the markets go and act. In Forex the right influencers can reach big audiences and advice them in their trading activities and how to use platforms, trading instruments and Forex brokers.
Read more ...

Saturday, August 9, 2014

12 Excellent Books To Enhance Your Library OF Trading Strategies


What will we use for a Trading Strategy ?

How do we know what to look for on a chart?

Where will we place our entry?

What sort of indicators will show us what we need to know?

How to we evaluate our trading strategy?

How much will this strategy produce?

How much do I stand to lose from an entry using this strategy?



Traders and investors face this dilemma every day, many questions and possibly doubts and worries. The biggest problem is that there are many excellent answers and solutions if we only knew where to find those.

Mr. Market is one crafty dude and is determined to show us a different face every day which makes our selection of a strategy a job that requires much study and painstaking research. It seems that as soon as we develop a system that appears to work our stop loss gets hit a few times and we have to start over.

Therefore the need for good quality research and a library filled with resources so that we can locate ideas and solutions and inspirations.

I have gathered a selection of good books that you can have a look at, hopefully there will be some rewarding ideas for you.

Enjoy..!





















The Simple Strategy - A Powerful Day Trading Strategy For Trading Futures, Stocks, ETFs and Forex

Check out customer reviews Author:Markus Heitkoetter,Mark Hodge
Format:Kindle eBook
Binding:Kindle Edition
Manufacturer:Rockwell Trading Services LLC
Learn A Powerful Day Trading Strategy In Less Than 60 Minutes A profitable trading strategy is the most important tool for a trader. This book explains a powerful trend-following day trading strategy for trading futures, stocks, ETFs and Forex. 'The ...
Read more ...
The Encyclopedia of Trading Strategies

Check out customer reviews
Price:$40.21
New:$15.26 (24)
New:$8.86 (32)
Eligible for FREE Super Saver Shipping
Author:Jeffrey Owen Katz Ph.D.,Donna L. McCormick
Binding:Hardcover
Manufacturer:McGraw-Hill
The Encyclopedia of Trading Strategies is for traders who want to take the next step to consistently profitable trading. The authors--themselves seasoned veterans of the futures trading arena--pinpoint the trading methods and strategies that have bee ...
Read more ...
High Probability Trading Strategies: Entry to Exit Tactics for the Forex, Futures, and Stock Markets

Check out customer reviews
Price:$43.08
New:$31.85 (45)
New:$27.99 (22)
Eligible for FREE Super Saver Shipping
Author:Robert C. Miner
Binding:Hardcover
Manufacturer:Wiley
In High Probability Trading Strategies, author and well-known trading educator Robert Miner skillfully outlines every aspect of a practical trading plan–from entry to exit–that he has developed over the course of his distinguished twenty-plus-year ca ...
Read more ...
Explosive Stock Trading Strategies

Check out customer reviews
Price:$27.35
New:$25.73 (4)
New:$21.88 (6)
Eligible for FREE Super Saver Shipping
Author:Samir Elias
Binding:Hardcover
Manufacturer:Lovoc Group Inc
Success in trading depends on one's ability to risk their money only on high probability trades. In this book Dr. Samir Elias, author of Generate Thousands in Cash on Your Stocks Before Buying or Selling Them,distills his years of trading experience ...
Read more ...
Building Reliable Trading Systems: Tradable Strategies That Perform As They Backtest and Meet Your Risk-Reward Goals

Check out customer reviews
Price:$47.19
New:$40.68 (32)
New:$40.67 (13)
Eligible for FREE Super Saver Shipping
Author:Keith Fitschen
Binding:Hardcover
Manufacturer:Wiley
An award winning system developer explains how to create, test, and implement a profitable trading systemTraders have long been drawn to the idea of translating their strategies and ideas into trading systems. While successful trading systems have be ...
Read more ...
Trading Strategies From a Trading Skeptic

Check out customer reviews
Price:$21.11
New:$21.10 (13)
New:$14.95 (7)
Eligible for FREE Super Saver Shipping
Author:Dan Murphy
Binding:Paperback
Manufacturer:Joshua Tree Financial, Inc.
Fact: 95% of short-term traders lose money. Even worse, the average stock-picking newsletter has returned -3.7% annually over the past 30 years!(Source: Jack Schwager, Market Sense and Nonsense). Despite the seemingly insurmountable odds of becoming ...
Read more ...
Algorithmic Trading: Winning Strategies and Their Rationale

Check out customer reviews
Price:$44.04
New:$36.95 (41)
New:$36.95 (15)
Eligible for FREE Super Saver Shipping
Author:Ernie Chan
Binding:Hardcover
Manufacturer:Wiley
Praise for Algorithmic Trading'Algorithmic Trading is an insightful book on quantitative trading written by a seasoned practitioner. What sets this book apart from many others in the space is the emphasis on real examples as opposed to just theory. C ...
Read more ...
Short Term Trading Strategies That Work

Check out customer reviews
Price:$35.34
New:$30.00 (7)
New:$22.50 (12)
Eligible for FREE Super Saver Shipping
Author:Larry Connors,Cesar Alvarez
Binding:Hardcover
Manufacturer:TradingMarkets
Market volatility has been at record levels in recent months, leaving every trader and investor to ask the same question: 'Am I prepared to handle the market conditions?' In Larry Connors', CEO and Founder of TradingMarkets, Short Term Trading Strate ...
Read more ...
Stock Market Edges: A quantitative guide to developing winning trading strategies

Check out customer reviews Author:Philip Reschke
Format:Kindle eBook
Binding:Kindle Edition
Improve the precision, accuracy and profitability of your stock market trading strategies by leveraging some of the many market edges that successful traders exploit every day. Read this book to learn how to: - Improve the accuracy and profitabilit ...
Read more ...
Explosive Stock Trading Strategies

Check out customer reviews
Price:$27.35
New:$25.73 (4)
New:$21.88 (6)
Eligible for FREE Super Saver Shipping
Author:Samir Elias
Binding:Hardcover
Manufacturer:Lovoc Group Inc
Success in trading depends on one's ability to risk their money only on high probability trades. In this book Dr. Samir Elias, author of Generate Thousands in Cash on Your Stocks Before Buying or Selling Them,distills his years of trading experience ...
Read more ...
Short Term Trading Strategies That Work

Check out customer reviews
Price:$35.34
New:$30.00 (7)
New:$22.50 (12)
Eligible for FREE Super Saver Shipping
Author:Larry Connors,Cesar Alvarez
Binding:Hardcover
Manufacturer:TradingMarkets
Market volatility has been at record levels in recent months, leaving every trader and investor to ask the same question: 'Am I prepared to handle the market conditions?' In Larry Connors', CEO and Founder of TradingMarkets, Short Term Trading Strate ...
Read more ...
Algorithmic Trading and DMA: An introduction to direct access trading strategies

Check out customer reviews
Price:$35.80
New:$35.80 (5)
New:$29.00 (18)
Eligible for FREE Super Saver Shipping
Author:Barry Johnson
Binding:Paperback
Manufacturer:4Myeloma Press
Algorithmic trading and Direct Market Access (DMA) are important tools helping both buy and sell-side traders to achieve best execution. This book starts from the ground up to provide detailed explanations of both these techniques: An introduction ...
Read more ...