Click here to Login





                                                   backtesting, I want to buy and sell only 1 stock for every 5 days.

  0

0
boler5r4
2015-05-12 14:33:14


How I do that? In my backtesting I don't want him to hold my stock forever.
I want him to change it everyweek.

I tried everything and it always keep it forever.



boler5r4
2015-05-12 19:51:45

  0

OK I figured it out. It below the stops loss order below. N bar stop. I was confused because in the simulator report it is writen N bar (percent) stop. The percent was confusing me. I think it was a mistake. I was confusued also because 4 bars in the report = 3 bars in the programmed strategy.


QuantShare
2015-05-13 03:00:31

  0

Best Answer
You can also add the following sell rule:
sell = week() != ref(week(), 1);

http://www.quantshare.com/sa-594-create-your-own-tactical-asset-allocation-strategies



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
Tweet Sentiment Index for the Forex and Stock Market
LSS Pivotal Buy and Sell Numbers - Trend Reaction
Industry and Sector Information for the US Stock Market
Buy Sell Simulation Indicator
High to low stock pattern for the close price

How-to Lessons
How to download EOD quotes for active and valid stocks only
How to adjust a stock for splits
How to synchronize stock charts?
How to speed up watchlist and screener plug-ins when working with...
How to download and use U.S. stocks earnings data

Related Forum Threads
Buy and Sell rules combination in Optimizer.
Setsimtiming -- Buy signal day open and sell signal day close
Plot Up/Down Arrows corresponding to buy and sell signals
Historical Daily High, Low, and Close for every single stock?
Synchronize stock charts for symbol and date

Blog Posts
How to get buy and sell orders for a portfolio based on a trading...
Backtesting a Strategy Based on Bond and Stock Index ETFs
Trading System: Moving average crossover and few others buy and s...
How to create buy and sell trading rules based on News Data
6 ways to download free intraday and tick data for the U.S. stock...









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.