Click here to Login





                                                   Simulator/backtester for dummies

  0

0
Atte Pentikainen
2012-02-02 12:27:20


HI!

I'm a total rookie with quantshare and don't even know how to write programming language! But eager to learn! Anyway, I'm about to lose my mind, because I just don't know get it. I would like to run some simple technical analysis rules, such as exponential moving average, moving average convergence divergence, bollinger bands, relative strength index, stochastics and momentum, on ETF time series. And have absolutely no idea how to do it! Could someone please give me hand to hand teaching on how to do it. Would appreciate it more than anything at the moment...



QuantShare
2012-02-02 12:37:29

  0

Welcome to QuantShare Atte,

To get data for ETFs:
- Select "Download" then "Download Data Wizard"
- Type "ETF" next to "Search"
- Click on "Download"

Here is how to create a trading system:
http://www.quantshare.com/how-273-how-to-create-a-trading-system

Here is some examples of trading systems:

http://www.quantshare.com/sa-316-example-of-a-trading-system-implemented-in-quantshare-software
http://www.quantshare.com/sa-388-trading-system-buy-stocks-with-the-highest-sharpe-ratio

Please let me know if you have any further questions



Atte Pentikainen
2012-02-07 16:44:24

  0

I managed to add ETFs. How can I run a rule on one ETF and compare it to benchmark? Or for example one rule in five chosen ETFs?

I have been studying this program 24/7 and the program feels great but really complicated, at least for someone who is new to this.

Still don't understand how to back test some simple rules on simulator.

At the moment I´m keen on testing these rules:

Exponential moving average (double crossover method), where a buy (sell) signal is generated, if the 100-day MA crosses the 200-day MA bottom-up (top-down).

The MACD Indicator, with 12-, 26-, 9-periods. The faster line (MACD line) is the difference of the closing prices of the two EMA%u2019s 26 and 12, while the slow line (signal line) is the 9-period EMA of the MACD line. And buy signals are triggered when the MACD line crosses the signal line from below. Sell signals arise if the faster line crosses the slower line from above.

Bollinger Bands with standard deviations of 2 and 20-day moving average with upper and lower bands as price targets.

Relative strength index with levels of 70/30 and 50 as a resistance line. A long signal would be taken if the RSI crosses the 20s line from below and will be held until it hits the 50s line from below. Subsequently, a short position would be entered if the RSI crosses the 80s line from above and not covered until the 50s line is pierced from above.

Slow Stochastics with the set-up of 80/20 and 14-day period for the %K-line and 3-day period for the %D-line. A buy/sell signal appears if the %K-line crosses the %D-line from below/above and both lines are located above the 80s line or below the 20s line.

Momentum of 25 days, extreme ranges set at 0.90 and 1.10. So the index would be bought if the Momentum-line falls below 0.90 and sold when level one is reached (closing price). A short signal would be taken if the line is above 1.10 and closed when the Momentum-line undercuts level one (closing price).

Please help me!

And thank you already!



QuantShare
2012-02-08 05:40:31

  0

Best Answer
Please check the link I have sent you on how to create a trading system:
http://www.quantshare.com/how-273-how-to-create-a-trading-system

Simply create a trading system, type your rule, select your ETFs then backtest it.

To compare the result to a benchmark, add the following money management script to your trading system:
Benchmark Return in a Trading System Simulation


Here is the formula to backtest your strategy:

ruleB1 = cross(ema(100), ema(200));
ruleB2 = cross(macd(), MacdSignal(9));


ruleS1 = cross(ema(200), ema(100));
fastLine = ema(26) - ema(12);
ruleS2 = cross(MacdSignal(9), fastLine);

sell1 = close >= BbandsUpper(20, 2, _MaSma);

cover1 = close





Benchmark Return in a Trading System Simulation (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads Notes Report an item

No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Historical Quotes for Delisted US Stocks
Historical Intraday Data for U.S. Stocks
Index Investment Data for U.S. Futures Markets
Historical Earnings Calendar for Major Stock Exchanges
Short Term Bullish signal for NSE Stocks

How-to Lessons
How to display the number of stocks per day for different RSI gro...
How to download EOD quotes for active and valid stocks only
How to get stocks for a particular index using the global script
How to add future bars to plan for market scenarios
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
RSS feed(s) for the forums...
Fundamental Data For NSE Stocks
Thank for the Real Time Version: Interactive Brokers API question
Test environment for multiple markets (out of sample)
Export Aggregate Case Results for Optimization

Blog Posts
Create custom metrics for the statistical data analysis tool
How to Scan for Parallel Resistance and Support Lines
How to Download Trading Data for Certain Securities Only
How to Select the Best Market Indicator for your Trading System
Download historical EOD data for the stock, futures, ETF and Fore...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.