INVITE-ONLY SCRIPT

QaSH DCA Algorithm 2.0

تم تحديثه
This is the strategy version of the QaSH DCA Algorithm indicator. This strategy version of the script includes live trading alert functionality, so it can be considered as a replacement that makes the indicator version obsolete. With this version, features have been added and also you can take advantage of TradingView's native backtesting system for more detailed backtest results.

QaSH DCA Algorithm implements a DCA strategy that takes advantage of price volatility by buying dips to average down, and adjusting price targets as the break-even price gets lower.

How does the DCA strategy work?
When the specified entry condition has occurred, the indicator will set up several limit orders below the current price. If price goes up a specified amount, then the layers will be overwritten at the higher prices. If price goes down and fills the first layer (limit order), then the Take Profit price is plotted and will be sent in an alert. If more layers are filled, then the TP price will move down accordingly as it’s based on the average entry price (alerts on each TP update). This action of lowering the average entry and TP price mitigates your risk, and increases the likelihood of a Take Profit event happening. This script uses a simple "ASAP" mode, where each deal will start exactly 2 bars after the last trade ended. An EMA filter and stoploss function was also added for risk management.

لقطة
لقطة


How does this differ from other DCA bots?
1) The layer placements, order volume , and “take profit %” for each layer or “safety order” is much more customizable than what you get from other services. For example, I can choose to have my TP% change, depending on how big the price dip was. Maybe on safety order 1 I want 10% TP, but on safety order 7 might want a 2% TP.
2) The entry condition is adjustable. For example, this script has an ema filter for entries.
3) Settings optimization. You can take advantage of the replay feature and TradingView's backtest system to see how trades would have played out, and how much PnL you would have made
4) You can use this indicator on more than just crypto. You can easily set up alerts for manual trades on stocks, or you can integrate it with your stock broker API of choice and automate your trades.
5) When combining this with an automation service, you will get unmatched execution speed by running it on your dedicated machine.
6) I can offer a lifetime subscription to the indicator upon request.

What kind of market is it best used on?
QaSH DCA Algorithm is best used on assets that are volatile. That means large and frequent swings up and down. Also I recommend running this on many uncorrelated assets at the same time. Better yet, run it with a variety of different settings simultaneously on the same asset.

What settings should I use?
The default settings are decent for most markets, and provide a good balance between profit potential and downside protection, although you can use a wide variety of settings. In a strong bull market its best to either bring up your layers to catch smaller dips, or you can go big on the first few layers (maybe 4 layers, 25% on each layer for example). In a sideways or brearish market you'll want more downside protection, so you'll want the larger orders to be at lower prices, or possibly use the stoploss and EMA filter.
ملاحظات الأخبار
updated tooltips to explain the placeholders that can go into the alerts
ملاحظات الأخبار
disabled ATR plot on default settings
ملاحظات الأخبار
some logic improvements
ملاحظات الأخبار
added more placeholders for alerts
updated tooltips to describe the placeholders
ملاحظات الأخبار
aligned some rulesets with the daytrader script for consistency
ملاحظات الأخبار
changed {{filled_size}} placeholder from returning 0 on a "take profit" alert to returning what the position size was before the alert occurred.
ملاحظات الأخبار
improved alignment with daytrader script for consistency
fixed issue where position size calculation wasn't updating
ملاحظات الأخبار
-changed the "bot start" logic a bit. Now, if you pause your alert and then start it again, it will go ahead and start running the first trade. Before, you would have had to change your start time and recreate the alert to get it running again.
-fixed layer hit counters on the dashboard
ملاحظات الأخبار
After some discussion with people from the PineScript team, I'm changing the way I handle the differences between live data and backtest data.
-I removed the "live trades" vs "backtest" input
-backtests and live trades now use exactly the same logic
-added a "killswitch" feature that can kill the script whenever TradingView's servers shut down and reset your alerts. This should resolve any concerns of the script coming out of alignment with your exchange, which was what I was trying to resolve when I had the "backtest" and "live trade" modes
-changed the data table to a more aesthetic format
ملاحظات الأخبار
Added the ability to do DCA market entries that will occur on a timer, only when you have crossed below the lowest limit order. This has potential to get you into profit sooner if you are not using a stoploss and are holding a red bag.

لقطة
ملاحظات الأخبار
added a "tick overshoot" input for guaranteeing alignment between exchange and indicator.
ملاحظات الأخبار
updated tooltips and default alert input to better inform users of new features and placeholders
ملاحظات الأخبار
added a checkbox to the new market dca alert, for consistency
ملاحظات الأخبار
added support for inverse perpetuals when using the timed market DCA function
ملاحظات الأخبار
added support for using "whole shares" input with the "red bag DCA" function
ملاحظات الأخبار
minor edits to the tooltips
ملاحظات الأخبار
minor edits to some tooltips and default alert messages
ملاحظات الأخبار
fixed a bug in the {{TP}} placeholder
ملاحظات الأخبار
minor edit to how some alerts appear in the input window
3commasalertatronDCAdollarcostaverageLUCmartingalequickfingersquickfingerslucVolatility

نص برمجي للمستخدمين المدعوين فقط

الوصول إلى هذا النص مقيد للمستخدمين المصرح لهم من قبل المؤلف وعادة ما يكون الدفع مطلوباً. يمكنك إضافته إلى مفضلاتك، لكن لن تتمكن من استخدامه إلا بعد طلب الإذن والحصول عليه من مؤلفه. تواصل مع ParabolicValue للحصول على مزيد من المعلومات، أو اتبع إرشادات المؤلف أدناه.

لا تقترح TradingView الدفع مقابل النصوص البرمجية واستخدامها حتى تثق بنسبة 100٪ في مؤلفها وتفهم كيفية عملها. في كثير من الحالات، يمكنك العثور على بديل جيد مفتوح المصدر مجانًا في نصوص مجتمع الخاصة بنا .

تعليمات المؤلف

For indicator access: Patreon: https://www.patreon.com/QaSH For questions and support: Discord: https://discord.gg/kahPkedYpD

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

تحذير: ‎‎‎يرجى القراءة‎‎ قبل طلب الوصول.

يعمل أيضًا:

إخلاء المسؤولية