Daveatt

BEST Dollar Cost Average

Hello traders

This is an upgraded version of my Dollar Cost Average (Data Window) script

1 - What is Dollar-Cost Averaging ( DCA )?

Dollar-Cost Averaging is a strategy that allows an investor to buy the same dollar amount of investment at regular intervals. The purchases occur regardless of the asset's price.
I hope you're hungry because that one is a biggie and gave me a few headaches. Happy that it's getting out of my way finally and I can offer it

๐Ÿ”ธ This indicator will analyze for the defined date range, how a dollar-cost average ( DCA ) method would have performed (green panel) versus investing all the hard earnt money at the beginning (orange panel)
=> green versus orange

2- What's on the menu today?

My indicator works with all asset classes and with the daily/weekly/monthly inputs.

โš ๏ธโš ๏ธโš ๏ธ However, results are only visible on the DAILY timeframe chart

As always, let's review quickly the different fields so that you'll understand how to use it (and I won't get spammed with questions in DM ^^)
๐Ÿ”ธ Use current resolution: if checked will use the resolution of the chart
๐Ÿ”ธ The timeframe used for DCA: different timeframe to be used if Use current resolution is unchecked
๐Ÿ”ธ Amount invested in your local currency: The amount in Fiat money that will be invested at each period selected above
๐Ÿ”ธ Starting Date
๐Ÿ”ธ Ending Date

๐Ÿ”น The script screenshot shows a DCA with 100 USD invested daily from 01 . 01 .2017 to 01 .28.2020

3- Bonus (DATA WINDOW)

๐Ÿ”ธ Please check this screenshot to understand what you're supposed to see: Data window
And a quick video that I did months ago explaining how we can use this data window effectively

4 - Specifications used

I got the idea from this website https://dcabtc.com and the result shown by this website and my indicator are very interesting in general and for your own trading
The formula used for the DCA calculation is the one from the Investopedia website.

Best regards and best of luck
Dave
Release Notes: - republishing without the emojis. The emojis broke the whole script since yesterday 30.01 - Sorry for that, not my fault :)
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
๐Ÿ’ฐ Results/Blogs: https://bit.ly/2ULUtjo

โฉ Signals/Pricing: https://best-trading-indicator.com/pages/pricing

๐Ÿฆ Twitter: https://twitter.com/bti_trading

๐Ÿ‘‰ Get a $30 discount on TradingView: https://bit.ly/2UM5OA0

๐Ÿ“บ Youtube: https://bit.ly/3bKvnZu

Comments

500 coins
+1 Reply
Daveatt PineCoders
@PineCoders, Thanks a lot :)
Reply
Seriously Great work putting this together! I've always been curious how much outperformance you could actually get with DCA on various instruments and this makes it so easy to check across different assets to understand how DCA would have changed returns compared to "timing" the market.
+1 Reply
Daveatt Simeon_Jack
@Simeon_Jack, I appreciate your comment
Makes us think about our trading performance and reflect a lot indeed in case the holding PF outperforms the trading PF
Reply
Really nice work... great way to teach basic investing strategies and then model to see if/when DCA performs.
+1 Reply
Daveatt Zentrader9
@Zentrader9, DCA is one of the best investment strategy
For very bullish assets, investing at the beginning always look more profitable. But this doesn't account for "broker hack", "scam wick", etc
Reply
Great tool - thank you so much for sharing. Just one question: I tried to check different time frames in the past to make some comparisons. It looks like when the To-Date is before 2012, the script is not working. Do you have a solution for this? No problem if not - just if there is an easy fix it would help me out a lot.
+1 Reply
this thing is next level sir.
+1 Reply
Daveatt JoshuaMcGowan
+1 Reply
Very cool Dave, nice work!
+1 Reply