Click here to Login





                                                   Simulator question

  0

0
Jae
2010-08-21 13:40:18


Can someone please tell me how to create a simulator where the best performing stock (on a weekly basis) is bought out of a group of stocks?


QuantShare
2010-08-22 10:16:22

  0

Best Answer
Hi Jae,

You can do this by adding a ranking system (with "perf(close, 5)" as rule) to your trading system.

Or you can use the composite function.

Example:

Rule 1: comp(perf(close, 5), "rank") == 1
Rule 2: dayofweek() == 1

The first rule instructs the application to buy the stock with the highest 5-Bar rate of return value
The second rule instructs the application to buy stocks only on monday.



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
Choose function
Structural Arbitrage Strategy
Conditional Trailing Stop Exit 2013-10-18
Updating Margin Factor During Drawdown
Connors Alvarez MDD MDU Strategy

How-to Lessons
How to optimize an indicator in your trading system
How to optimize the stop limit of a trading system
How to add a metric in the trading system simulation report
How to copy a trading item
How to create a formula

Related Forum Threads
Simulator Question
MetaStrategy Simulator weight question
Simulator algorithm change/option
Simulator - Activate stop immediately
Simulator Trading System Report

Blog Posts
3 ways to rank stocks in a trading system - Simulator and Potfoli...
Improve your trading system performance by ranking stocks
Reducing risk and increasing return by combining several trading ...
Select the best ETFs combination to maximize your return and redu...
How to create buy and sell trading rules based on News Data









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.