OPEN-SOURCE SCRIPT
Tool for Practicing Trading

For newbies at trading or people who want to try practice on a new market prior to trading with real money.
Most trader newbies will first work on a practice account to develop their skills. They will also look at historical data to see how they would have fared at that time. If you are like me, both these methods have serious drawbacks.
Practice account
Trading on a practice account is slow as you have to wait for the market to unfold to realize whether your analysis was correct and whether your decisions were right. Many people say that new traders should trade on the daily chart, not the intraday. And this is really slow, of course, as you have to wait for a few days before you can be sure. This is maybe why some new traders start trading intraday, with all risks and bad habits it can generate.
Historical Data
Here, we can work faster since the market has already developped. But the problem is that analysis and decision are biaised because we can see the "future" market moves. If you are like me, analysing and defining trades from past data is much easier then real time ones.
The Script
This is why I have created this script that allows you to hide all market data after a "Now" time that you define. Beyond the "Now", you the screen will be just gray.
By increasing day by day, or hour by hour, you can see the historical market unfold and evolve. It allows to practice trading on the daily chart much faster, analyzing several days and possibly weeks writing a few hours.
Notes:
If you see any way to make this script more efficient, I am welcoming ideas and comments.
Most trader newbies will first work on a practice account to develop their skills. They will also look at historical data to see how they would have fared at that time. If you are like me, both these methods have serious drawbacks.
Practice account
Trading on a practice account is slow as you have to wait for the market to unfold to realize whether your analysis was correct and whether your decisions were right. Many people say that new traders should trade on the daily chart, not the intraday. And this is really slow, of course, as you have to wait for a few days before you can be sure. This is maybe why some new traders start trading intraday, with all risks and bad habits it can generate.
Historical Data
Here, we can work faster since the market has already developped. But the problem is that analysis and decision are biaised because we can see the "future" market moves. If you are like me, analysing and defining trades from past data is much easier then real time ones.
The Script
This is why I have created this script that allows you to hide all market data after a "Now" time that you define. Beyond the "Now", you the screen will be just gray.
By increasing day by day, or hour by hour, you can see the historical market unfold and evolve. It allows to practice trading on the daily chart much faster, analyzing several days and possibly weeks writing a few hours.
Notes:
- To ensure that the "Future" bars are really invisible, you need to modify the security bar styles to hide the borders. One you hide them, all bars will be fully hidden after the data selected as "Now".
- Depending on your internet access speed, the loading of new data when you modify the :"Now" parameters may be slow, but it is certainly faster that waiting for the market unfolding day by day !
If you see any way to make this script more efficient, I am welcoming ideas and comments.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.