Risk indicator 50DSMA/50WSMAIndicates buy and sell zones, intended to be used along with your scaling-in scaling-out strategy.
Example: sell 20% of holdings in first sell zone, sell another 20% in the second zone, etc.
DCA
inwCoin DCA Strategy=========================
English
=========================
Just simple strategy idea for DCA bitcoin with different conditions.
Also, this is for education purpose and not the investing advise.
Use it as your own risk.
-----------
Concept
-----------
DCA with options as following ( only important option )
** Please use only in Daily TF **
Bullets Count : Amount of bullets for DCA period. If you want to DCA every months for 2 years ( close all position every 2 years ), your bullets value should be 24.
Buy every N candles : Number of candle you want to let this strategy trigger buy, 1 candle = 1 day so if you want to buy every month, input 30.
Entry / Exit filter : Dropdown to filter trade. If you don't want to DCA in downtrend, make sure to select this option. The simple trend filter is EMA 120 daily
Reset at candle N : One of DCA weak point is...no taking profit target in sight. So this option will force to take profit at N candle. You can try 1 year ( 365 ) or 2 years ( 730 )
==========================
Thai
==========================
Strategy สำหรับ backtest การ DCA ในรูปแบบต่างๆ ครับ โดยมี parameter ดังต่อไปนี้
** ควรใช้สำหรับ Timeframe Daily เท่านั้น **
Price : เป็นข้อมูลที่จะดึงมาคำนวณ ว่าจะเอาข้อมูลไหนจากแท่งเทียนมาคิด ปกติเลือก close แต่ถ้าไม่อยากให้ repaint ก็เลือก open
Bullets Count : จำนวนไม้ ที่เราจะเอามาเข้าซื้อ อย่างเช่น ถ้าจะซื้อเดือนละครั้ง และจะปิดยอดทุกๆ ปี ก็ให้ใส่ 12 ลงไป หรือถ้าเราอยากจะปิดยอดทุกๆ 2 ปี ก็ใส่ 48 เป็นต้น
Buy every N candles : จำนวนแท่งเทียนที่เราอยากจะซื้อ เช่นถ้าซื้อทุกเดือนก็ใส่ 30 ถ้าจะให้ซื้อทุกสัปดาห์ก็ใส่ 7 เป็นต้น
Entry/Exit Filter : ตัวกรองเงื่อนไขการเข้า ค่า default คือไม่กรอง แต่ถ้าจะกรอง ก็มีสองช้อยให้เลือก คือ
* กรองจาก EMA โดยจะใส่ length ของ EMA ที่ช่องด้านล่าง
* กรองจาก MACD cross 0 โดยจะใส่ รายละเอียดของ MACD ที่ช่องด้านล่าง
Reset at candle N : จะทำการขายปิดยอดที่แท่งเทียนที่เท่าไหร่ ถ้าจะปิดยอดทุกๆ ปีก็ใส่ 365 ถ้าจะปิดทุกๆ 2 ปี ก็ใส่ 730 และถ้าแก้ค่านี้ ก็อย่าลืมไปปรับ bullet count ให้สอดคล้องกันด้วย
Slow EMA Length : ตามนั้น ควรใช้ 120 เพราะ BTC ชอบค่านี้ แต่จะปรับเท่าไหร่ก็ได้แล้วแต่
Fast / Slow / MACD length : ค่าที่ใช้คำนวณ MACD ปกติจะเป็น 12,26,9
==========
Optional
==========
Close position at specific profit% : ถ้าติ๊กตรงนี้ มันจะทำการขายออก ถ้ากำไรเราได้ถึงช่องข้างล่าง
Reset at profit% : กรอก % ที่อยากจะให้ระบบขายไม้ DCA ออก ถ้ากำไรถึงเป้านี้
Close remaining position at last bar : จะทำการสรุปยอดและรับรู้กำไร ที่แท่งสุดท้าย จะใช้เพื่อลองดูประสิทธิภาพของ strategy
Exclude profit from capital : ไม่เอากำไร กลับเข้ามารวมในเงินทุนตอนแรก ( ลดการ Drawdown ได้เยอะอยู่ )
ที่เหลือเป็นตั้งช่วงที่จะ backtest ก็ไม่ยากอะไร
===========
วิธีใช้งาน
===========
เอาใส่กราฟ ก็จะเห็นผล backtest เลย แต่ถ้าอยากลองเล่นโน่นนี่นั่น ก็ลองปรับค่าไปเรื่อยๆ ดู
ตัวอย่างการตั้งค่า
============
* อยาก DCA แบบ เก็บกำไร สองปีครั้ง และแบ่งเป็น 24 ไม้ ( ทุน หาร 24 ) และซื้อทุกเดือน
Bullets Count = 24
Buy every N candles = 30
Reset at candle N = 730
* อยาก DCA ย้อนหลัง 5 ปี แบบไม่เก็บกำไรเลย มาเก็บเอาวันสุดท้าย และซื้อทุกเดือน
Bullets Count = 60 ( คือ 12 x 5 )
Buy every N candles = 30
Reset at candle N = 1825 ( คือ 365 x 5 )
From year : 2014
msoro daily $1 DCAPlots the dollar value of total btc accrued over the past year by buying 1 dollar's worth daily.
Black line is the breakeven level.
Dollar Cost Average (Data Window Edition)Hi everyone
Hope you had a nice weekend and you're all excited for the week to come. At least I am (thanks to a few coffee but that still counts !!!)
This indicator is inspired from Dollar-Cost-Average-Cost-Basis
EDUCATIONAL POST
The educational post is coming a bit later this afternoon explaining how to use the indicator so I would advise to follow me so that you'll get updated in real-time :) (shameless self-advertising)
1 - What is Dollar-Cost Averaging (DCA)?
Dollar-Cost Averaging is a strategy that allows an investor to buy the same dollar amount of an investment on 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 analyse for the defined date range, how a dollar cost average (DCA) method would have performed vs investing all the hard earnt money at the beginning
2- What's on the menu today ?
Please check this screenshot to understand what you're supposed to see : CLICK ME I'M A SCREENSHOT (I'll repeat this URL one more time below as I noticed some don't read the information on my description and then will come pinging me saying "sir me no understand your indicator, itz buggy sir"
(yes I finally thought about a way to share screenshots on TradingView, took me 4 weeks, I'm slow to understand things apparently)
My indicator works with all asset classes and with the daily/weekly/monthly timeframes
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
- 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
- Select a candle level for the desired timeframe : If you want to use the open or close of the selected period above. Might make a diffence when the timeframe is weekly or monthly
3 - Specifications used
I got the idea from this website 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 that one : Investopedia Dollar Cost Average
4 - How to interpret the results
"But sir which results ??"...... those ones : CLICK ME I'M A SCREENSHOT :) (strike #2 with the screenshot)
It will draw all the plots and will give you some nice data to analyze in the Data Window section of TradingView
I'm not completely satisfied with the tool yet but the results are very closed to the dcabtc website mentioned above
If you're trading a very bullish asset class (who said crypto ?), it's very interesting to see what a DCA strategy could bring in term of performance. But DCA is not magic, there is a time component which is the day/week/month you'll start to invest (those who invested in crypto beginning of 2018 in altcoins know what I'm talking about and ..............will hate me for this joke)
5 - What's next ?
As said, the educational post is coming next but not only.
Will probably post a strategy tomorrow using this indicator so that you can compare what's performing best between your trading and a dollar cost average method
I'll publish as a protected source this time a more advanced version of that one including DCA forecasts
6 - Suggested alternative (but I'll you doing it)
If you don't want to have this panel in the bottom with the plots and analyze the results in the data window, you can always create an infopanel like shown here Risk-Reward-InfoPanel/ and display all the data there
Hope you'll like it, like me, love it, love me, tip me :)
____________________________________________________________
Feel free to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future. (Meaning... a few likes only = no indicators = Dave enjoying the beach)
- I'm an offically approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
Dollar Cost Average [lorencip]This indicator shows the return of a dollar cost average strategy.
The 4 values in the output are:
the amount of the investment
the number of items purchased for that symbol
the total value of the items purchased
the result of the investment in percentage
This first version works with cryptocurrencies and currencies, it's not accurate for stocks (it "purchases" decimals of a share/stock).
Lorenzo Cipriani
BACKTEST PARTNERS DCA MEGA MAPPER STUDY SCRIPT FOR PROFITTRAILERBacktest Partners Mega Mapper (BPMM) is an advanced DCA analysis script, allowing cryptocurrency traders to sync their ProfitTrailer trading bot buy levels, triggers and order sizes with their technical analysis charting results in TradingView.
For a complete functional demo, and to learn more about subscribing to this invite-only script, please visit us at backtest.partners