OPEN-SOURCE SCRIPT
Dips Oleg

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.
📘 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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.