OPEN-SOURCE SCRIPT
Fib Target & SL From Entry Time

Fib Target & SL From Entry Time
Time-Based Entry, Automatic Stop Loss & Fibonacci Target Projection
OVERVIEW
Fib Target & SL From Entry Time is a professional trade planning and risk management indicator designed to automatically generate Stop Loss and Fibonacci-based Take Profit levels from a user-selected Entry Time.
Instead of manually calculating risk, reward, and target levels, simply select the direction of your trade and choose the Entry Date & Time. The indicator automatically captures the trade setup and projects multiple Fibonacci extension targets together with a dynamic Stop Loss based on recent market structure.
This tool is ideal for traders who want to plan trades objectively, manage risk consistently, and visualize reward-to-risk opportunities directly on the chart.
━━━━━━━━━━━━━━━━━━━━━━
KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━
✓ Manual Trade Direction Selection
Choose between Long and Short trade setups.
✓ Time-Based Entry Detection
Select any historical or future Entry Date & Time.
The indicator automatically captures the first candle that reaches or crosses the selected time.
✓ Automatic Entry Price Lock
Entry price is locked using the closing price of the selected entry candle.
✓ Automatic Swing-Based Stop Loss
For Long trades:
Stop Loss is placed below the lowest swing low.
For Short trades:
Stop Loss is placed above the highest swing high.
✓ Fibonacci Extension Targets
Automatically calculates:
• TP1
• TP2
• TP3
using customizable Fibonacci multipliers.
✓ Risk-Reward Calculation
Instantly displays expected Reward-to-Risk ratios for all targets.
✓ Dashboard Panel
View all important trade information in one place:
• Trade Direction
• Entry Price
• Stop Loss
• TP1
• TP2
• TP3
• Risk-Reward Ratios
• Trade Status
✓ Visual Trade Levels
Draws clean horizontal levels for:
• Entry
• Stop Loss
• TP1
• TP2
• TP3
✓ Alert Support
Built-in alerts for:
• New Trade Captured
• TP1 Hit
• TP2 Hit
• TP3 Hit
• Stop Loss Hit
━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━
LONG TRADE
1. Select Long Direction.
2. Choose Entry Date & Time.
3. Indicator captures the closing price of the entry candle.
4. Lowest low from the selected Swing Length becomes Stop Loss.
5. Fibonacci targets are projected above Entry Price.
SHORT TRADE
1. Select Short Direction.
2. Choose Entry Date & Time.
3. Indicator captures the closing price of the entry candle.
4. Highest high from the selected Swing Length becomes Stop Loss.
5. Fibonacci targets are projected below Entry Price.
━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━
Step 1
Add the indicator to your chart.
Step 2
Choose:
• Long
or
• Short
under Trade Direction.
Step 3
Select your desired Entry Date & Time.
Step 4
Adjust Swing Length if required.
Higher values:
Wider Stop Loss
Lower values:
Tighter Stop Loss
Step 5
Customize Fibonacci multipliers if desired.
Default values:
TP1 = 1.272
TP2 = 1.618
TP3 = 2.618
Step 6
Monitor projected levels and trade status using the dashboard.
━━━━━━━━━━━━━━━━━━━━━━
ALERT SETUP
━━━━━━━━━━━━━━━━━━━━━━
To create alerts:
1. Click Add Alert.
2. Select Fib Trade Planner Pro.
3. Choose one of the following conditions:
• New Trade Captured
• TP1 Hit
• TP2 Hit
• TP3 Hit
• Stop Loss Hit
4. Create the alert.
The indicator will notify you whenever the selected event occurs.
━━━━━━━━━━━━━━━━━━━━━━
WHO CAN USE THIS INDICATOR?
━━━━━━━━━━━━━━━━━━━━━━
• Swing Traders
• Position Traders
• Intraday Traders
• Crypto Traders
• Forex Traders
• Stock Market Traders
• Risk Management Focused Traders
━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━
• This indicator is designed for trade planning and visualization.
• Entry price is based on the closing price of the selected entry candle.
• Fibonacci targets are calculated from the Entry-to-Stop Loss risk distance.
• Risk management remains the responsibility of the trader.
• Past performance does not guarantee future results.
━━━━━━━━━━━━━━━━━━━━━━
Fib Target & SL From Entry Time helps traders quickly build structured trade setups with predefined risk, reward, and Fibonacci target levels while maintaining a disciplined trading approach.
Time-Based Entry, Automatic Stop Loss & Fibonacci Target Projection
OVERVIEW
Fib Target & SL From Entry Time is a professional trade planning and risk management indicator designed to automatically generate Stop Loss and Fibonacci-based Take Profit levels from a user-selected Entry Time.
Instead of manually calculating risk, reward, and target levels, simply select the direction of your trade and choose the Entry Date & Time. The indicator automatically captures the trade setup and projects multiple Fibonacci extension targets together with a dynamic Stop Loss based on recent market structure.
This tool is ideal for traders who want to plan trades objectively, manage risk consistently, and visualize reward-to-risk opportunities directly on the chart.
━━━━━━━━━━━━━━━━━━━━━━
KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━
✓ Manual Trade Direction Selection
Choose between Long and Short trade setups.
✓ Time-Based Entry Detection
Select any historical or future Entry Date & Time.
The indicator automatically captures the first candle that reaches or crosses the selected time.
✓ Automatic Entry Price Lock
Entry price is locked using the closing price of the selected entry candle.
✓ Automatic Swing-Based Stop Loss
For Long trades:
Stop Loss is placed below the lowest swing low.
For Short trades:
Stop Loss is placed above the highest swing high.
✓ Fibonacci Extension Targets
Automatically calculates:
• TP1
• TP2
• TP3
using customizable Fibonacci multipliers.
✓ Risk-Reward Calculation
Instantly displays expected Reward-to-Risk ratios for all targets.
✓ Dashboard Panel
View all important trade information in one place:
• Trade Direction
• Entry Price
• Stop Loss
• TP1
• TP2
• TP3
• Risk-Reward Ratios
• Trade Status
✓ Visual Trade Levels
Draws clean horizontal levels for:
• Entry
• Stop Loss
• TP1
• TP2
• TP3
✓ Alert Support
Built-in alerts for:
• New Trade Captured
• TP1 Hit
• TP2 Hit
• TP3 Hit
• Stop Loss Hit
━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━
LONG TRADE
1. Select Long Direction.
2. Choose Entry Date & Time.
3. Indicator captures the closing price of the entry candle.
4. Lowest low from the selected Swing Length becomes Stop Loss.
5. Fibonacci targets are projected above Entry Price.
SHORT TRADE
1. Select Short Direction.
2. Choose Entry Date & Time.
3. Indicator captures the closing price of the entry candle.
4. Highest high from the selected Swing Length becomes Stop Loss.
5. Fibonacci targets are projected below Entry Price.
━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━
Step 1
Add the indicator to your chart.
Step 2
Choose:
• Long
or
• Short
under Trade Direction.
Step 3
Select your desired Entry Date & Time.
Step 4
Adjust Swing Length if required.
Higher values:
Wider Stop Loss
Lower values:
Tighter Stop Loss
Step 5
Customize Fibonacci multipliers if desired.
Default values:
TP1 = 1.272
TP2 = 1.618
TP3 = 2.618
Step 6
Monitor projected levels and trade status using the dashboard.
━━━━━━━━━━━━━━━━━━━━━━
ALERT SETUP
━━━━━━━━━━━━━━━━━━━━━━
To create alerts:
1. Click Add Alert.
2. Select Fib Trade Planner Pro.
3. Choose one of the following conditions:
• New Trade Captured
• TP1 Hit
• TP2 Hit
• TP3 Hit
• Stop Loss Hit
4. Create the alert.
The indicator will notify you whenever the selected event occurs.
━━━━━━━━━━━━━━━━━━━━━━
WHO CAN USE THIS INDICATOR?
━━━━━━━━━━━━━━━━━━━━━━
• Swing Traders
• Position Traders
• Intraday Traders
• Crypto Traders
• Forex Traders
• Stock Market Traders
• Risk Management Focused Traders
━━━━━━━━━━━━━━━━━━━━━━
IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━
• This indicator is designed for trade planning and visualization.
• Entry price is based on the closing price of the selected entry candle.
• Fibonacci targets are calculated from the Entry-to-Stop Loss risk distance.
• Risk management remains the responsibility of the trader.
• Past performance does not guarantee future results.
━━━━━━━━━━━━━━━━━━━━━━
Fib Target & SL From Entry Time helps traders quickly build structured trade setups with predefined risk, reward, and Fibonacci target levels while maintaining a disciplined trading approach.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
For access & queries: algochiefsupport@gmail.com
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
For access & queries: algochiefsupport@gmail.com
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.