Summary
This case study shows how to recreate any custom trading logic — including Fibonacci retracements — using Profectus.AI’s no-code Builder.
The goal isn’t just Fibonacci; it’s to show you how to think mechanically and use variables, formulas, and trade rules to build any logic from scratch.
The Core Idea
Every complex feature — whether from TradingView or a manual system — can be reduced to:
1️⃣ Define data points (e.g., swing highs, candle closes).
2️⃣ Store them in variables.
3️⃣ Transform them with formulas.
4️⃣ Compare the results in trade rules to trigger actions.
Once you understand this, you can rebuild nearly any strategy — Fibonacci, Bollinger logic, volatility filters, even time-based patterns — entirely from blocks.
Step-by-Step: Rebuilding Fibonacci Logic
Define the swing points
Use Candle or Market Property blocks to get the most recent high and low.
→ Store them as variables:priceHighandpriceLow.Calculate the range
Add a Formula block:
range = priceHigh – priceLowApply the Fibonacci ratio
Multiply that range by your chosen level:
fibOffset = range × 0.618Compute the retracement level
Add it back to the low:
fibLevel = priceLow + fibOffsetUse it in a condition
Add a Trade Rule block comparingfibLevelto the market price —
e.g., “If price crosses fibLevel → Buy.”
👉 Try the full example template here:
Open Fibonacci Calculation Example
Why It Matters
This approach applies far beyond Fibonacci:
Want a volatility filter? Replace Fibonacci with ATR.
Want a custom trailing stop? Store the last candle’s low and subtract a formula.
You’re not limited to built-in functions — variables let you design any logic you can describe.
Learn More
See how other traders structured similar logic in our template collection:
Trading Bot Library of Profectus.AI →

