- Joined
- 28 December 2013
- Posts
- 6,392
- Reactions
- 24,319
Skate, can you define what you mean by fixed parameter please? Do you mean a single value of an array? When you choose a parameter, what exactly are you choosing?
When AB optimizes, it's finding the best fit value for an array, using historical data, yes? What do you mean by "adapting in real time"? The only data we ever have access to is historical. If I fit my code to any dataset, I'm fitting it to historical data. If I re-fit my code as each new OHLCV is printed, I will end up with an overfitted code - ie. one which will fail in real trading.
Precisely - and from an academic view - looking purely at the results of the backtest - reducing to 15 positions results in a much higher % return. An increase from 66.75% to 94.56% with less than half the amount of trades or work.
Perhaps the above is the missing link other members are failing to understand between academic discussion of position size versus real world trading. The liquidity and slippage issues created by having larger positions.
Alright thanks for the reply. I don't understand what you're saying though.1. "When AB optimizes, it's finding the best fit value for an array, using historical data, yes?"
Correct (Amibroker is a big calculator when it comes to optimising on past data)
2. What do you mean by "adapting in real time"?
(re-post) My strategy is adapting in real time whereas optimisation & Backtesting is only useful on know past data.
Fluid numbers
When trading my parameters are driven by the market movement (a fluid number set, not a fixed number set) some parameters setting are flexible to apply volatility bar-by-bar, sometime the driver is plain old ATR. Optimising can't handle variables to optimise efficiently. Optimisation is a selection of numbers applied to a code over & over to the max number of tries, that's all, optimisation is crude & basic but useful to set a base.
Impulse/State signals
Using the Cross() function (impulse signal) instead of the logical greater than operator (state signal) is a poor choice in certain strategies and coding that way is totally a different kettle of fish resulting in a difference of system performance. Reference that to how Optimisation works. Using a fixed number set is how the calculations are done in Amibroker, but what if the number being used wasn't independent by itself but required another set of number to create the new base number set, this is why flexible parameters complicates settings very quickly.
I'm at a loss how to explain it in a simpler way.
Skate.
Alright thanks for the reply. I don't understand what you're saying though.
Your parameters are driven by market movement - what does that mean? I would have thought every system ever developed references market movement! We only ever have access to historical data. Even if we're trading based on tick data, it's still historical.
Some systems are written in such a way, that they can refine key parameters (and/or switch between algorithms) on a continuous basis, as new data is presented. Even if the data presented relates to the most recent of price movements, it is of course, no longer in the present moment, and is, as you have stated, historical data....
Your parameters are driven by market movement - what does that mean? I would have thought every system ever developed references market movement! We only ever have access to historical data. Even if we're trading based on tick data, it's still historical.
To ensure we have it right:
it would make sense to ,for example ,relax or tighten stop loss percentage , or reducing exposure base on an index trend.
."becoming cautious" translated in code..
Is that what you mean Skate by flexible parameters in the amibroker context?
And indeed this can complicate backtesting.thanks for your time
Much appreciated.and a lot of info, it would indeed be nice to code a report simply to say buy/sell this many at this price removing any noise (and also causes for self doubt or indecision..)
Hi Skate, I'm not an expert at AB.
Let's forget about definitions of 'now' data and parameter values, etc. There's two ways to cut through any confusion and see what's really important.
1 - Does the code stand up to walk forward analysis? ie. does it retain profitability when continually re-optimized?
2 - Will the code be profitable on another stock market? Run it on the NQ and see if the general idea of the system is robust. If not, can it be optimized to become profitable? If it can, then will it handle walk forward analysis?
I think you've done both of these, yes? Would you be open to sharing a WF screenshot?
Trading Fundamentals - Skate's Beginners Version
7. Universal Phase.
The general characteristics of the Universal Phase are freedom and empowerment. This person maximises freedom for everyone by living and teaching correct principles and then allowing others to govern their own lives and handles their own responsibilities.
View attachment 92273
Yes, I normally get one huge disappointment and several smaller disappointments each year. That's with a 12 position portfolio. A 40 position portfolio is going to get many more disappointments, but each position is much smaller. This hit from BIN may cost the portfolio a 3R loss that's only 0.8%. Had this position been in my own portfolio a 3R loss would have been -3%.
Please note that I did grade BIN as a B grade opportunity due to the steepness of the recent down trend. (I am monitoring the performance of the A graders vs the B graders and I may show their relative performance in the future.)
Oh and I did know that I was buying this before it's scheduled report. I accepted the risk that the report may move the price in either direction.
How I would handle BIN from here (pm 18th Feb). The low is 1.20 and I'll wait until late in the trading day to see if the low price attracts any buyers and closes well above the low. If price is going to close off the low, I won't sell and place my exit stop at today's low (1.20). If price closes near the low I'll exit just before the close or first thing next morning.
ASX 40P portfolio: This portfolio has been hit by everything the market can throw at it. We have to expect this with a portfolio containing a large number of positions. Here's the list of our losers with the largest so far (BIN) losing -3R.
View attachment 92277
The total realised losses so far is only 1.6% of our starting capital.
Today's BIN exit was explained in the BIN thread.
View attachment 92278
With a 40 position portfolio there's no point worrying about one position. Cut the position and look for another opportunity. Here's how the portfolio looks after today. The closed trades are on the left.
View attachment 92279
Getting back to the original brief of this thread.
DUMP IT HERE, well here we go :
What the F---k is wrong with our press:
View attachment 92199
IS THERE NOT ONE THING POSITIVE THAT THEY CAN REPORT ON, PAEDO, SEX OFFENDER, EXTREME pr0n and A PERSON (BIKIE) THAT I WISH I NEVER HAVE TO MEET.
Thank you @Skate. I like to highlight the unpalatable moments such as the recent losers in the ASX40P portfolio. It's all to easy to post when things are going well and stroke our own egos. When regular posters go quiet, we know they're having a bad run. I post when I'm frustrated and that helps me understand why. I post when my selections are "out of sync" with what's moving in the market because it helps me see what I need to correct. I post about the big losers because they're the trades that provide us with lessons to learn. (*)
Lessons from BLD, PGH, PPH, BIN: All were bought within a week or two of scheduled news. Could I have waited for the news? Of course. All trade opportunities were down trend reversals, perhaps the down trend wasn't over? Perhaps they needed more time.
Had I started the research portfolio (ASX40P) a few weeks earlier it would have contained FMG and a few gold stocks. It may have been fully invested and most likely wouldn't have had BLD and BIN. The timing was unlucky. Timing plays a huge part in the performance of a portfolio. I'd be a lot more cautious starting a portfolio at a market peak (like now). It wouldn't stop me but I'd establish the portfolio over a longer period.
(*) They reinforce things I already know, but I hope others take note as well.
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?