ProRealCode - Trading & Coding with ProRealTime™
Hi Justisan
Thanks for the insight…
I only use IB and futures and my basic premise is that markets are random 70-80% of the time and in a trend 20-30% of the time.
My system is based entirely on the “random” part (the 70-80%).
My MM is simple and based on the margin of the future used:
PositionSize=Floor(Capital+StrategyProfit)/Margin // PositionSize based on Margin
If PositionSize<=MinPositionSize then //Minimum Position Size
PositionSize=MinPositionSize
ElsIf PositionSize>=MaxPositionSize then //Maximum Position Size
PositionSize=MaxPositionSize
EndIf
Hi Justisan,
Currently I trade with 1 system on the Dow Jones and my corresponding starting capital was equal to 3x the margin of the future in question…
I always start with the minimum number of contracts (the physical limit) because I think it’s important to build up capital with the system first so that the inevitable “DrawDown” is not fatal…
I determine the maximum number of contracts from an optimisation of the system (see screenshot) where I select the number of contracts where the (optimisation) line does not bend too much, in this case 20, but that is a bit arbitrary…
Regards JaapThe (overnight) margin for 1 Micro NQ is 2105 USD
So, the lowest investment for me is: 2105 USD
That of course limits equity growth, but also very significantly the risks,The odd thing is that this is not necessarily true; Just some theory : when my last trade implies e.g. 20 contracts, then suppose that this trade is not rejected because the portfolio can bear 20 contracts. With that one trade I make a profit of 2000. The next trade – too much put forward by me at 21 contracts – is rejected because it is too much indeed, also taken into account the possibility that PRT did not accumulate the latest profit of 2000 in my account. I see no risk anywhere in this. Plus, when the System is reset, the deepest SL will be nowhere close to that 2000 I just earned. However … You must of course anticipate that the trade wins. Or at least that all can bear the expected profit/loss ratio you took into account from the start. This is so normal for our thinking, that we might forget to really apply that. In other words, why would my trade lose if my System is so good and robust to the future (your thing !!) that it just won’t bear that risk you now talk about ? Mind you, we are not talking about the black swans now; we are talking about how good our AutoTrading systems are, and maybe how much trust we have in them. This should not be about “risk”. It should all be pre-calculated towards something in which we have 100% trust. Make that 99 and it is still fine. Make it 95 and in my view it is not okay any more. Coincidentally it is you who inspired me for a radical change in the not-overfitting stuff. Not that it was not clear to me that it should be avoided, but it made me eager to actually do it, with indeed leads as “don’t have variables to change”. Thus, sit back and think how to avoid those and have a system which gains some after all. Prove to yourself that it keeps on working back towards the infinite past. Know that it thus also won’t change towards the future. … And now our thinking about MM will change drastically as well; Now I know I will have sheer infinite growth, to the size my backtests told me. It will just happen. MM changes from protection of portfolio, to a guardian against too much money to deal with, or more money than the broker will allow for one position. Like IG will deal with you manually when you have more trades off 4M per hour. Or how you must make special arrangements with IB when you cross a threshold of 6M per trade. And thus how you not let *that* happen, and stay under the radar – also under your radar. 🙂 So you see, for a couple or years already, I am working on this kind of “protection”. But it was always without real application, because backtests were no guarantee for the future. Unless you make them 100% robust to the future … your story – and actually nothing less than we all eagerly want. I think I saw the light and have nailed this. And that’s why this kind of upside down MM driven protection. … And how we must always taken into account the black swans, like the happening this morning with the IB outage of 75 minutes. I started out with a response telling about that. But it is not much interesting (except for it being a clear example of a black swan) plus my posts are too long already – so I did not post it. I still have the text though. Best regards, Peter
How much to bet/risk per trade, which is basically position sizingI don’t care, as long as I have already earned it.
You are absolutely right – one is in very much better situation when one can afford to trade several more, but what if I can afford really only 1 contract in the very beginning?Sadly for myself I got used to not being disturbed about the initial contract amount ($ size). This implies that I am used to sheer infinite growth in backtests. I don’t even dare to show pictures of that, because they are completely ridiculous. And so my problem : All which grows by normal nature, like having a linear amount of position/$, will never grow as fast as I can do manually. And I don’t like that prospectus; a. manual trading is a kind of sad as a hobby (not for a living, I suppose) and b. I like the conquering aspect of getting this money just because I can write a bit of software. But really, try to make some serious $ with AutoTrading and beat the Buy and Hold which is even far less than manual trading (me thinks). If you look at the current situation over here then Buy and Hold would work out superbly – actively manual trading probably much better again, but the autotrading gains twice what the Buy and Hold at this moment does. And I am not even taken into account the huge DD for Buy and Hold from last week. So just this week and beat that. Now incorporate my last post. This post actually tells again that you can work with money you don’t have. BUT make the trades win !!! Yes PeterSt, sure … So there is this other secret : For many years I worked towards autotrading, and the more money I would have in the base, the more AutoTrading would gain. So logical … But not the past 18 or so months. I changed all, to begin with almost nothing and end with very much. This is my first post of the last two. A little rephrased now : “Begin with almost nothing for the purpose“. If it won’t work, I will blow up those accounts to the hell-side. I would care, but I would also know how not to do it.
minimum capital per contract = 1x margin + 2x historical max drawdown of particular strategy. why 2x dd: it gives me some psychological and financial buffer…Small question if I may : what means “1x margin” in this case ? I myself started out vague on this subject (I saw later) and what JS made of it, looks like what you now say but I can’t understand it. So if you’d say -like Jaap- that the margin is (at) 2105 and the margin is stated as 10%, you can trade 21050. But it doesn’t work like that when the instrument of concern costs 35000 for 1 contract. All it would tell that if you’d loose 14000 on a trade of that, or 28000 on two contracts, you will be thrown out because of a margin call. … I would say that you mean : 35000 (which luckily is above 10x 2105 in this example) and you could lose some. That would be 14000, but since you incorporate 2x max DD, that would be 7000 each. If I still understand it all a little, I would never do that. You would loose 14000 indeed where you started out with – what ? 2105 ?
The (overnight) margin for 1 Micro NQ is 2105 USD So, the lowest investment for me is: 2105 USDThat is impossible, because the 1 contract costs ~35000, unless I am mistaken on that. In other words, you have a DD of 100 (not K) and are thrown out. It is a separate discussion I think, but if one wants to have the MM right, the basics must also be right. And maybe I have it wrong ? But otherwise I understand this all right :
when ever strategy makes profit equaling 2x historical dd I am transferring cash = 1x margin from cfd account to futures account and add 1 futures contract to the strategy. So it is still quite slow process, but by this I move with some confidence at least… but you should stay at the CFDs – despite the downsides there (IG). When I saw PRT-IB Autotrading popping out, the first I said to PRT is that this would never work for anyone. But you said it yourself :
I think I would need significantly higher min.capital for others, so those strategies therefore are still running on cfds…And really the most important is that we understand our environment. That takes years alone … What you do, justisan, is at least good for exploring the rentability of your strategy(s). To me that would be more valuable as investment, than making more money right now. If it only is a hobby (IMO the prerequisite to make something of this to begin with). Thanks, Peter
Please tell us what you precisely mean by 35.000 “cost” for micro e-mini nasdaq. The only thing which comes into my mind is that you possibly mean contract’s “value” – which is Nasdaq-level multiplied by point-value, which is currently with index flying at around 17.500 and 2 USD per point value in fact around 35k USD.Precisely that. Each of my Futures charts shows the value (cost of one contract) in capitals and in real time (rounded at 1000, see 1st picture), so that I know what I am actually buying/selling when I like the figure 7 (for example). It would mean 245K in this case. If I apparently don’t know how it works, just tell me – I am not the teacher. The Live example I am seeing – and we all know the figures by now (only the gains are still hidden) is 11x35K for the MNQ in that, remember, “smaller” account. This gives 385K. This means my portfolio in there should be 38,5K when the Margin would be 10%. This is there, so no worries for me yet. Would I apply the literal figure IBKR currently presents, it would be (6,25%) 24K what my portfolio should carry at this moment. This is of course also there. But as we know it is a bit more complex, because I (currently) trade 2 Future Instruments in there – also the MES. Now, see the 2nd picture : The last time both were in at the same time was Jan 24, 14:04:02. MES was at 30 contracts, MNQ coincidentally at 4 (see entry on 24 Jan. 09:21). This gives 30 x 25000 = 750000 and a Margin requirement of (~5% now, look in the 3rd attachment for the S&P500 Micro – justisan, you showed the same) = 37500 plus 4 x 35000 = 140000 and a Margin requirement of (still using 6,25%) = 8750. Total for Margin requirement = 37500 + 8750 = 46250. This is again sufficiently there and again no worries; I know – and we can see that the reality is even much better because the MES looks to be ~ 4,8% (~1200 on ~25000) and for MNQ it is ~4% (~1800 on ~35000). Hocus-pocus and again it has become a confusing post; Think of IB being able to turn the <5% into 10% easily and it is good to commonly calculate with 10%. Now you can loose some as well. Small correction of what I told in a previous post : it is IB who rejects the order which crosses the threshold. PRT just passes that on to you via ProOrder and throwing out your system. At ProRealTime they currently can’t tell what will actually happen when IB throws out 1 contract after you’re in and lose a bit too much in order to still comply to the Margin rules. This is really how IB does it, trust me. Probably something will go bad again because Pro-Order won’t understand (and my program code most certainly won’t). Usually I am the first to know – haha. Peter
shorts (on indices) at least do not create cost for holding positions overnight 😃Are you getting some preferential treatment off the ‘old boys network’ then or what?? 😉 See attached from my IG Statement relating to £1 per point short on Dow Jones Index. To see … click in ‘white space’ above screenshot title.
…it’s rather a special “tax” for strategies going short when dow is making all time highs? yet jokes aside, I was referring to my trading, so short/long stratgies which I run on dax. it was sure not my intention to tell (and confuse somebody) that “IG will never ever charge any cost for holding overnight short positions on any of the indices available for trading”. they might charge… under certain conditions. and talking about transaprancy – probably I am blind, but I was not able to find the currently applied cost for holding positions overnight (long and short) with IG on IG’s webise – something like in the pic attached (not IG…). my message was anyway that overnight “financing” accumulates to substantial amounts over time, while for futures trading there are no such additional costs. in the end GraHal, any inputs on the actual topic – money management??shorts (on indices) at least do not create cost for holding positions overnight 😃Are you getting some preferential treatment off the ‘old boys network’ then or what?? 😉 See attached from my IG Statement relating to £1 per point short on Dow Jones Index. To see … click in ‘white space’ above screenshot title.
Money Managment ideas
This topic contains 32 replies,
has 12 voices, and was last updated by pppittpeter
1 year, 11 months ago.
| Forum: | ProOrder: Automated Strategies & Backtesting |
| Language: | English |
| Started: | 05/02/2023 |
| Status: | Active |
| Attachments: | 14 files |
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR. For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.