- Joined
- 8 June 2008
- Posts
- 14,401
- Reactions
- 21,743
I just average the return per year then remove tax due per year and start again
Provisional tax will not help especially in a draw down as any attempt to lower that provisional tax before eofy can end up in fines if there is a rebund in June.
How about the Low could bust the BuyLimit mid session so the backtest is picking the min. between the Open and BuyLimit?
ie: impossible to go back and buy at the Open
Also, the AB code checker doesn't pick up a problem
If I had to guess (as I am not a programmer in the slightest) I would say using close>open sellprice=close would mean you would not get the close price as the markets would be closed. So you would be selling the next day at previous close price and it would be hit or miss if you got your price or not.Sell = Close > Open;
SellPrice = Close;
If I had to guess (as I am not a programmer in the slightest) I would say using close>open sellprice=close would mean you would not get the close price as the markets would be closed. So you would be selling the next day at previous close price and it would be hit or miss if you got your price or not.
You're probably not a trader either or you would know how it works.
Yeah I personally couldn't care less about waiting 2mins before close as that's not my style but hey what ever works for you. Just thought I would join in the convo and have a poke at the answer as it is interesting to see what other people get up to in their trading.You're probably not a trader either or you would know how it works.
So this is what you do: at 4 PM you look at the stocks you're holding and enter a limit sell order at one tick above the open price. You have to do this in a hurry if there are many of them, but there is nothing preventing you from having a whole bunch of sell forms ready to confirm with one click on each well before 4 PM, although some trading platform have limitations. The Open price is known almost 6 hours before the close, right? You confirm just after 4 PM to catch the official closing price that's in the backtest.
Then at 4:10 PM you get filled or you don't.
I do this every day and have done for years. Yes, sometimes I get partial fills or no fill at all when I'm too far down in the queue. It doesn't need to be perfect.
So we enter a limit order just below the calculated price.
OK don't know the future leak is but a couple of things...
There is no code to exit expired stocks so your going to lock up capital when running a backtest (especially using historical constituents). Norgate has code to fix this.
Secondly running an exploration, there's a whopping load of stocks to add limit orders to unless your using an API with IB.
Something like this: https://www.theportfoliotrader.com/downloads/automated-trader-for-the-chartist/
Edit: using that, you can also limit your PosQty
Not sure if you are pulling a leg but this is indeed my aimOne of these days, the end goal to become a non-resident will make my backtests realistic
Not sure if you are pulling a leg but this is indeed my aim
I haven't tried this system on daily or weekly timeframes yet. My original desire was for a monthly system as I currently trade daily and weekly systems so that hasn't been a focus for me yet. Correct, I'll paper trade to see how some of the initial trades compare to a few characteristics of my sims.
Back on topic!
Besides modifying system parameters to suit a daily system (in order to paper trade quicker) you could also run Explorations and check against your Charting and step through numerous trades using Bar Replay to see if there is anything unexpected ...like moving buy signals
My initial thoughts were to paper trade for about 6 months, but being monthly I'm now starting to think that may not be long enough so I'm thinking I might paper trade for the entire CY.Hi MovingAverage, how long are you going to paper trade?
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?