- Joined
- 28 December 2013
- Posts
- 6,362
- Reactions
- 24,247
I have found making the "PositionScore" random you no longer have a set trade list, and it does indeed become more random. It essentially removes your position score as a source of Alpha from the strategy.
Can be useful to determine whether your entry and exit conditions are robust vs the PositionScore filtering.
If you want to keep the position score in your code while also getting an idea of how robust your system is, you can add an element of randomness into whether you take or skip each signal.
step = Optimize( "step", 1, 1, 1000, 1 );
Buy = buyCond AND Random() >= 0.20;
Random() generates a value between 0 and 1. So in the above, you have a 1 in 5 chance of skipping the trade. So all trades taken are still valid since they are still filtered by your position score, but you now have variance in each run.
This highlight one of the flaw of AB MC.Strange, but I was pondering if it might be possible to manually introduce a small portion of randomness into Monte Carlo and backtests runs earlier today, and now Lone Wolf you've nicely shown exactly how to do it - thank you!
If you want to keep the position score in your code while also getting an idea of how robust your system is, you can add an element of randomness into whether you take or skip each signal.
step = Optimize( "step", 1, 1, 1000, 1 );
Buy = buyCond AND Random() >= 0.20;
Random() generates a value between 0 and 1. So in the above, you have a 1 in 5 chance of skipping the trade. So all trades taken are still valid since they are still filtered by your position score, but you now have variance in each run.
That is my prefered way of doing monte in AB. Simply export the optimization results into Excel and you can do some great visual/charting analysis of your systems performance. This is much better than doing a single run. Although I'd suggest you push the 1000 value to much higher to get a better perspective. Only thing I'd add is that you're better to use mtRandom() over the regular Random() function. Be very careful about selecting the random comparison value (you use 0.2), choose the wrong value and the number of trades you take will have an adverse impact on your system.
@Skate Seems like you and I are the only ones looking at these extraordinary results from the PANDA.
Starting capital is $100K, so +16K is +16% in 13 or 14 days! We're drooling and no-one else has commented.
I think you've set the bar too high.
I will say it out loud, I wish we can follow the PANDA similar to how Skate did with The Action Strategy. It is magnificent to have 16% in less than two weeks and I am drooling to follow it live to maybe make my money grow that way .. ... I love following a proven strategy which I believe I won't be able to achieve myself!
Elves pop up in the strangest places
It won't be my fault if trading doesn't do well today. Bloody hell, he's trading one of my best strategies - so I guess I'll be safe.
Wally
I hope he realises that NTO doesn't get sold until Monday. This little Elf (Wally) is somewhere new each day. I wake up each morning wondering where's Wally. (who started this tradition anyway?)
View attachment 115373
Skate.
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.