Click here to Login

How to optimize an indicator in your trading system

Updated on 2012-09-20 12:31:12

Share |

Once you create a trading system, you can see that there are two buttons in the top menu of the simulator manager (Simulate and Optimize).

The optimize button allows you to create several variations of a trading system by changing the value of optimizable variables on each run.

Let's say we want to try different moving average periods. We can vary the MA period from 10 to 50 and a step of 10.
By using the optimizer, we will create five trading systems, each one backtested using a different moving average.


- Select "Analysis -> Simulator"
- Create a new trading system ("New" button)

Using the Wizard (Under "Create a trading system using the wizard")

- Under "Buy" panel, click on "Add Rule"
- Type the following rule: close > sma(a)
- The variable "a" will be added to the optimization grid
- Set "10" as "Min", "50" as "Max" and "10" as "Step"
- Click on "Close"

Using the formula editor (Under "Create a trading system using the formula editor")

- Type the following formula:
Optimize("op0", 10, 50, 10); // Create an optimizable variable "op0"
Rule1 = (close) > (sma(op0)); // Use the variable "op0" in the moving average period
buy = (Rule1); // Set buy condition

no reviews (Log in)

Other how-to articles

How to optimize the number of positions in a trading system

How to optimize the stop limit of a trading system

How to add custom position-based metrics to your trading system

How to generate buy/sell signals from a trading system

How to create a custom trading indicator

How to add a metric in the trading system simulation report

How to add a trading indicator to a chart

How to debug a trading system using the money management tool

How to backup your databases (EOD, Intraday, Tick and Custom) and trading items

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2024
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.