- Joined
- 28 December 2013
- Posts
- 6,392
- Reactions
- 24,319
Hi all bit new to this, I recently purchased some shares and at 0.023 and it didn’t go through straight away . It’s now at 0.36 ive press amend . How long does it take to be executed . Thanks guys
Here's my 1/1/20 to 30/6/20 backtest Skate. Might be worth giving people PositionScore and Exit code to get better agreement. The exit condition is a bit tricky to write - I've got a suspicion my code let's the trailing stop out wide again if index filter goes "green" which isn't supposed to happen.
View attachment 107350
View attachment 107351
Hi All,
Great to see folks posting simulation results of the systems they're trading or investigating. Sorry if this has been recently covered but thought this might be a good time to remind folks (particularly those new to system trading) of the importance of treating a single run simulation with some caution. Here is my point:- the first pic below shows a standard simulation output from Amibroker. Look at the Net Profit % figure, not too bad hey. Well this Net Profit % is not really reflective of the overall system behavior and it is a complete outlier. To get a better feel for the Net Profit % performance of this system I ran a simple Monte Carlo analysis (100 different runs) and you can see from the second pic that the majority of the Monte sims delivered much less than half of the Net Profit % that the single run did. So, if you really want to understand how your systems perform then make sure you do some rigorous Monte Carlo simulations. Personally, I use TradeSim but it is easy to do in Amibroker by adding the mtRandom() to your buy conditions and then doing an optimization on a dummy parameter to give you say 100, 500, 1000 or more runs. Your Amibroker optimization window can then be dumped into a CSV and cut and diced in excel using the Data Analysis plugin.
@Newt, those returns are absolutely unbelievable. To get the Radge “WTT Strategy” to perform that well you must have had to massaged the parameters beyond recognition.
So I get this correct
The Backtest results that you posted are from a turnkey WTT Strategy OR is it a “WTT Strategy” that you coded?
Skate.
Very much in agreement - the "Strawbroom" plots for Monte Carlo runs in AB are a particularly valuable too for consider the real range of simulated outcomes. More info, but of cause can never be definitive going forward.
SetOption("MCEnable", 1 );
SetOption("MCRuns", 5000);
The 12 steps provide a great framework for coding any system, wish I had this a few months ago, it would have set me on a much better path.View attachment 107347
The procedure to code the WTT Strategy will be in 12 easy steps to follow
To keep the strategy construction simple I will outline the steps in order. In the next few posts, I'll upload screen captures so others are not tempted to do a "cut & paste". Don't worry I will upload the completed strategy after the construction has been completed.
The order of construction
1. First, we will set out our strategy "options" the "options" are management options & they are a part of Amibroker (features)
2. We will then add an "Index Filter" - this ultimately decides when we will trade & also our trailing stop levels
3. Next, we will add all our other filters
4. Then we will add our Buy condition
5. Add a sell conditions
6. Add a two-stage trailing stop
7. Add "Position Sizing"
8. Add "Filters for the Exploration Analysis"
9. Add Buy & Sell coding for use in trading the pre-auction
10. Add an Exploration code
11. Add columns to report & sort the Exploration Analysis results
12. Code chart signals & plots them with an Index Ribbon
After the construction phase is completed
I will upload a few backtests & then explain how we can squeeze a little more out of the strategy by adding or changing a few settings (parameters) & then compare the results.
I will start fresh tomorrow
Too much information in one go tends to be information overload but at least you have the mud map of what I'm planning to post tomorrow.
Skate.
You're trying to convince me to buy Amibroker and code my discretionary trading plans into systems so that I can make so much more.
Arrgh, it might actually be a good idea, but can this old dog who used to write Fortran and Pascal programmes learn to code Amibroker at the advanced level in a short time?
It may be easier for me to modify entries and exits in already coded systems. I'll mull it over.
Hi MA
Interested in your valuable post re monte carlo testing. In Amibroker monte carlo settings do you use 'Constant Value' (eg $5k on a $100k portfolio) OR 'Percent of Equity'?? They recommend NOT to use the latter. It makes a huge difference obviously
I dont have Tradesim ( or the time to learn it!) - Do you have any code or link to info re your comment :
"by adding the mtRandom() to your buy conditions and then doing an optimization on a dummy parameter to give you say 100, 500, 1000 or more runs."
Your comment - "standard simulation output from Amibroker Net Profit % is not really reflective of the overall system behavior and it is a complete outlier." is spot on - my system shows excellent returns in the standard simulation run but im not 100% sure of it and my knowledge of Amibroker monte carlo analysis is limited to reading the manual
any ideas appreciated
cheers
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?