Rank: Newbie
Groups: Registered Users, Subscribers Joined: 9/29/2016(UTC) Posts: 5
Thanks: 1 times
|
Hi, is it possible to do a backtest and say omitt all mondays (buy on opening on tuesdays and sell on the close on friday)?
Also im interested in backtesting if lets say a certain condition like the market dropping over 1 percent from one Close to the next, to jump out of the market for x amount of days. Is that possible?
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Hi,
You can use the DayOfWeek() function to specific specific dates to include/exclude. The Security() function also lets you call price data from other instruments (such as an index tracking the market). Combining the Security() function with the Rate of Change (ROC) function should allow you to accomplish something like this.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.