tech/a
No Ordinary Duck
- Joined
- 14 October 2004
- Posts
- 20,447
- Reactions
- 6,477
rnr -- position size limit using 100% hasnt made the simulations any worse (I have tried 20,25,30).
Changes made:
*Position sizing model changed to $1,600 risk per trade
*Initial stop changed to 20% of purchase price
*Exit changed to 250d EMA.
*Chose to favour pyramid.
Nizar,
I was thinking more along the lines of 10%, 12.5% & 15%.
Did you make all these changes in 1 hit or did you stage and test the changes 1 at a time in an attempt to optimise each element of the trade?
Did you change the InitialStop from 3*ATR(10) to say 6*ATR(10) and what affect did it have on the Protective Stop Exits.
I don't quite understand why the results of the second simulation have run on to 2005?
Cheers,
rnr
Tradesim Open Equity.
Go to trade database log.
Right click - click plot open equity-Daily
Then load data base from drop down.
Run it --tick plot closed equity when looking at the open equity chart.
Hi Tech/a --
Nice car.
The post I made earlier did not describe the walk-forward process that goes with the out-of-sample testing. But I thought I posted that already?
Thanks,
Howard
Hi Nizar,
I have attached a metastock file with the actual constituents of the ASX300 back in 1/1/2001.
Run tradesim on this data for the year 2001 only. Make sure all your exits occur on the last trading day of 2001. That way we can see what the actual profit or loss there was for the system.
To make tradesim exit on the last trading day, you have to find what the last trading day was on the daily chart or the weekly chart depending what chart your system uses.
Use this 'date filter'
StDay:=Input(" Start day",1,31,28);
StMnth:=Input("Start month",1,12,12);
StYear:=Input("Start year",1980,2020,2001);
EnDay:=Input(" End day",1,31,28);
EnMnth:=Input(" End month",1,12,12);
EnYear:=Input(" End year",1980,2020,2001);
If((Year() > StYear OR (Year()=StYear AND ((Month() >
StMnth) OR (Month() = StMnth AND DayOfMonth() >=
StDay)))) AND (Year() < EnYear OR (Year()=EnYear AND
((Month() < EnMnth) OR (Month() = EnMnth AND
DayOfMonth() <= EnDay)))) ,1,0);
and then in the tradesim formulae do this to your exit trigger
ExtFml("TradeSim.SetStartRecordDate",1 ,1 ,2001);
ExtFml("TradeSim.SetStopRecordDate",31 ,12 , 2001);
ExitTrigger:=If(Fml("date filter"),Fml("date filter"),Fml("your exit trigger"));
ExitPrice:=C;
Then post the results here so we can see how in performed in this bear period. Gives you a good idea how robust the system is.
Tradesim parameters should include
Transaction Cost rate:0.75%
Fraction risked capital 1.5%
max positions 10
position size limit:10%
portfolio heat limit 20%
portfolio limit 100%
margin requirement 100%
entry order control: stop order,unconditionally enter trade
exit order control: default
limit position size to a maximum of : 10%
include breakeven trades with losing trades
Now that should really test your system
I don't quite understand why the results of the second simulation have run on to 2005?
ExitPrice:= If(ExitTrigger,OPEN,CLOSE);
And your point is?
Why is Monte Carlo Analysis better than Optimising/Walk Forward?
We've been lead down the Monte Carlo path with Tradesim but is it the better way to go?
What's the difference?
Cheers SB
Tech, a question that I have been pondering:
Why is Monte Carlo Analysis better than Optimising/Walk Forward?
We've been lead down the Monte Carlo path with Tradesim but is it the better way to go?
What's the difference?
Cheers SB
And your point is?
At some point you'll trade your system and it to will be walk forward only realtime.
Upon completion of a period that period of out of sample trading would have become in sample.
All your doing is testing snippets of data in isolation.
How long do you test out of sample data?
When is enough enough?
You tweek and twiddle from that out of sample test/s then test another---ad infinitum.
When is a system ready to trade?
At what point do you say yes I'm happy that my objectives have been met?
How do you know you have the optimum conditions and parameters?
When do you stop Tweeking and Twiddling.?
Your books on the way---Very interested in its contents.--Seriously!
Hi Nizar,
I must be losing the plot as it was only when I read kaleon's post that it twigged and I remembered reading a post about this on the TradeSim forum (TradeSim > Ideas and Suggestions > "Closing" prices of open trades) which may well negate the "date filter" to which kaleon makes reference.
You could try this perhaps - it should close out all OPEN TRADES at the StopRecordDate (or the day after) at the CLOSING price of the day!
Code:ExitPrice:= If(ExitTrigger,OPEN,CLOSE);
Cheers,
rnr
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?