![]() |
Lee Yong Liang
Follow
4 years, 7 months ago · 560 Views
|
Hi Ivan, how come the time stamp keep showing the same date for 03 Nov 20? I thought should be different date shown daily? I have set for weekly re balancing.
Secondly how come there is buy and sell on top the 10 stock holding? Do we just sell all and wait for another update of next stock 2 stock to fit in the portfolio?
Best regards
John Lee
Hi John,
If your strategy has both a sell order and a buy order you would sell the stock from your portfolio and buy the stock new stock immediately when market opens the next day. Do not wait until the following rebalancing period 1 week later.
Kind regards,
Ivan
![]() |
Lee Yong Liang
Follow
4 years, 7 months ago
|
Hi Ivan, thank it more clear now.
1 more question.
What if call for sell order and buy new stock not in list we holding? Do we just buy first and wait for next re balance to update the new list ?
I'm using my own backtest for the screenshot below. The date was 3rd November because the simulated orders were created on the 3rd of November. As your rebalancing frequency is set to weekly, the next order will come one week later which is the 10th of November. No orders will be created between the 3rd to 10th of November.
For your second question, the positions are shown on the 3rd of November are before the orders have been executed. The backtester sends out the market orders which you execute based on these positions. So for example if the positions include 10% of Facebook and the orders say sell 10% of Facebook. It will mean you are holding 10% of Facebook on the 3rd of November and you are expected to sell 10% of Facebook the next day on the 4th of November.
Hope this makes sense. Do let me know if you have further questions.
Hi John,
Can you please take a screen shot for both questions and paste it here in the forum. Easier for me to understand. Thanks!
Kind Regards,
Ivan
© PyInvesting 2025