Description:

This script is a Dollar-Cost Averaging (DCA) order planner designed for SPOT, LONG, and SHORT markets. It automatically calculates the optimal price levels for your orders based on configurable parameters, while also considering leverage and liquidation price.

🔹 Key Features:
1. Automatic Order Planning:

- The script calculates price levels for your orders based on an adjustable scaling coefficient (default: 1.5).
- You can set the percentage interval between each order (default: 2%).
- Displays the number of units to buy/sell at each level.

2.Leverage Management:

- Integrates a configurable leverage and computes the liquidation price for LONG and SHORT positions.

3.Clear Visual Display:

- Markers on the chart indicating order levels with customizable labels.
- A summary table shows price levels and corresponding quantities.
- Visualizes Stop Loss and Take Profit levels if defined.

4.Automatic Alerts:

- Sends alerts when the price reaches an order level.

🔹 Customizable Parameters:

- Starting Price: Initial price for calculating orders.
- Budget: Total budget for DCA orders.
- Leverage: Multiplier for LONG/SHORT positions.
- Scaling Coefficient: Adjusts the spacing between order levels.
- Maximum DCA Levels: Limits the number of generated orders.

🔹 How to Use:
1. Configure the parameters according to your strategy.
2. The script displays order levels and quantities on the chart.
3. Use the summary table to manually input orders on your favorite trading platform.

This script is particularly useful in volatile market conditions to average your entry or exit price and manage risk effectively.
educationalforecasting

نص برمجي مفتوح المصدر

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

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

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