OPEN-SOURCE SCRIPT

Dips Oleg

174
Adaptive Dip‑Buying Strategy with Lot Precision & Smart Averaging

📘 Description
This strategy is a personalized adaptation of an idea originally developed by the respected author fullmax.
I reworked the concept to suit my own trading approach, adding lot‑precision rounding to avoid exchange quantity errors when using webhooks, and enhancing the visual and analytical components of the script.

🔧 What’s New in This Version
Configurable lot precision to ensure clean, exchange‑safe order sizes

Improved UI elements: base‑order labels, compact mini‑table, grouped settings

Dynamic safety‑order pricing based on price drops and scaling factors

Flexible date‑range filtering for controlled backtesting

Clear visualization of SMA threshold, safety levels, breakeven, and take‑profit

Adaptive threshold logic that adjusts depending on trend conditions

🎯 Core Logic
The strategy monitors how far price deviates from a short‑term SMA.
When the deviation crosses a user‑defined threshold, the script opens a base position.
If price continues to dip, the system deploys safety orders with:

scalable volume

scalable distance

precise rounding for compatibility with webhook automation

Once the position is built, the strategy manages exits using a fixed take‑profit target.
A breakeven reference line and auto‑cleanup logic help maintain clarity and prevent stale orders.

⚙️ Feature Overview
Dip‑based entry logic with bull/bear threshold switching

Safety orders with volume and step scaling

Take‑profit management

Breakeven visualization

Mini‑table showing real‑time position metrics

Clean chart overlays for easier interpretation

📝 Disclaimer
This script is intended for educational and analytical use.
It does not guarantee profits and should be tested thoroughly before being used in live trading.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน