OPEN-SOURCE SCRIPT
Quasimodo Pattern Structure By EmirTradeHub

Quasimodo Pattern Structure with Dynamic Entry, Stop & Take Profit
This indicator detects Bullish and Bearish Quasimodo market structure patterns and automatically creates a complete trade management structure including Entry, Stop Level, TP-1 and TP-2 levels.
The script is designed to help traders visually track structural reversals and possible reaction zones using a clean and fully automated pattern workflow.
━━━━━━━━━━━━━━━━━━
FEATURES
━━━━━━━━━━━━━━━━━━
• Automatic Bullish and Bearish Quasimodo pattern detection
• Dynamic A → B → C → D structure drawing
• Automatic Entry level generation
• Dynamic Stop Level tracking
• Automatic TP-1 and TP-2 levels
• Pattern expiration system
• Trade result tracking system
• Historical pattern visualization
• Fully customizable visual settings
• Integrated alert system
━━━━━━━━━━━━━━━━━━
ALERT SYSTEM
━━━━━━━━━━━━━━━━━━
The indicator includes built-in TradingView alert conditions for all major events.
Available alerts:
• Bullish Quasimodo Detected
• Bearish Quasimodo Detected
• Entry Triggered
• TP-1 Hit
• Take Profit Hit
• Stopped out
• Pattern expired
These alerts can be used for:
• Notifications
• Webhooks
• Automation systems
• Trade monitoring workflows
━━━━━━━━━━━━━━━━━━
HOW THE PATTERN WORKS
━━━━━━━━━━━━━━━━━━
Bearish Quasimodo Structure:
The indicator searches for a Higher High followed by a Lower Low structure shift.
After the structural shift forms, the script tracks the retracement level and creates an Entry zone.
Bullish Quasimodo Structure:
The indicator searches for a Lower Low followed by a Higher High structure shift.
After the structural shift forms, the script tracks the retracement level and creates an Entry zone.
The structure is automatically monitored after the D point is confirmed.
━━━━━━━━━━━━━━━━━━
ENTRY SYSTEM
━━━━━━━━━━━━━━━━━━
The Entry level is based on the A structure point.
When price returns to the Entry level, the script automatically activates the trade structure.
Before Entry occurs:
• TP levels are not active
• Stop Level is not active
If price never reaches the Entry level within the specified timeout period, the pattern becomes invalid and the script prints:
“Pattern expired”
━━━━━━━━━━━━━━━━━━
STOP & TAKE PROFIT SYSTEM
━━━━━━━━━━━━━━━━━━
Stop Level:
The Stop Level is dynamically created using the C structure point.
Take Profit Levels:
TP-1 and TP-2 levels are automatically generated from the pattern structure.
Trade Result Logic:
• If price directly hits Stop Level:
“Stopped out”
• If TP-1 is reached and price later hits Stop:
“TP-1 hit then stopped out”
• If TP-2 is reached:
“Take Profit Hit”
The script also stops extending trade management lines once the trade is completed.
━━━━━━━━━━━━━━━━━━
VISUAL SYSTEM
━━━━━━━━━━━━━━━━━━
Entry Line:
Blue colored dynamic Entry line.
Take Profit Lines:
Green TP-1 and TP-2 lines.
Stop Line:
Red Stop Level line.
All major visual elements can be customized from the settings panel:
• Line colors
• Line widths
• Text sizes
• Result label sizes
━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━
ZigZag Settings
Left Bars
Controls pivot sensitivity on the left side.
Right Bars
Controls pivot confirmation on the right side.
━━━━━━━━━━━━━━━━━━
Other Settings
Quasimodo Mode
Choose Bullish, Bearish or Both pattern types.
Entry Timeout Bars
Maximum number of bars allowed before the pattern expires.
━━━━━━━━━━━━━━━━━━
Position Entry Visual Settings
Entry Line Color
Changes Entry line color.
Entry Line Width
Changes Entry line thickness.
Entry Text Size
Changes Entry line text size.
Entry Label Size
Changes Entry candle label size.
━━━━━━━━━━━━━━━━━━
Stop Visual Settings
Stop Line Color
Changes Stop Level line color.
Stop Line Width
Changes Stop Level line thickness.
Stop Text Size
Changes Stop Level text size.
━━━━━━━━━━━━━━━━━━
Take Profit Visual Settings
TP Line Color
Changes TP line color.
TP Line Width
Changes TP line thickness.
TP Text Size
Changes TP line text size.
━━━━━━━━━━━━━━━━━━
Trade Result Visual Settings
Result Label Size
Changes the size of trade result labels such as:
• Pattern expired
• Stopped out
• TP-1 hit then stopped out
• Take Profit Hit
━━━━━━━━━━━━━━━━━━
IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━
This script uses pivot-based market structure logic.
Patterns are confirmed only after pivot confirmation occurs.
Because of this, structural signals can appear with confirmation delay.
The indicator is designed for analytical and educational purposes and should not be considered financial advice.
Past performance does not guarantee future results.
This indicator detects Bullish and Bearish Quasimodo market structure patterns and automatically creates a complete trade management structure including Entry, Stop Level, TP-1 and TP-2 levels.
The script is designed to help traders visually track structural reversals and possible reaction zones using a clean and fully automated pattern workflow.
━━━━━━━━━━━━━━━━━━
FEATURES
━━━━━━━━━━━━━━━━━━
• Automatic Bullish and Bearish Quasimodo pattern detection
• Dynamic A → B → C → D structure drawing
• Automatic Entry level generation
• Dynamic Stop Level tracking
• Automatic TP-1 and TP-2 levels
• Pattern expiration system
• Trade result tracking system
• Historical pattern visualization
• Fully customizable visual settings
• Integrated alert system
━━━━━━━━━━━━━━━━━━
ALERT SYSTEM
━━━━━━━━━━━━━━━━━━
The indicator includes built-in TradingView alert conditions for all major events.
Available alerts:
• Bullish Quasimodo Detected
• Bearish Quasimodo Detected
• Entry Triggered
• TP-1 Hit
• Take Profit Hit
• Stopped out
• Pattern expired
These alerts can be used for:
• Notifications
• Webhooks
• Automation systems
• Trade monitoring workflows
━━━━━━━━━━━━━━━━━━
HOW THE PATTERN WORKS
━━━━━━━━━━━━━━━━━━
Bearish Quasimodo Structure:
The indicator searches for a Higher High followed by a Lower Low structure shift.
After the structural shift forms, the script tracks the retracement level and creates an Entry zone.
Bullish Quasimodo Structure:
The indicator searches for a Lower Low followed by a Higher High structure shift.
After the structural shift forms, the script tracks the retracement level and creates an Entry zone.
The structure is automatically monitored after the D point is confirmed.
━━━━━━━━━━━━━━━━━━
ENTRY SYSTEM
━━━━━━━━━━━━━━━━━━
The Entry level is based on the A structure point.
When price returns to the Entry level, the script automatically activates the trade structure.
Before Entry occurs:
• TP levels are not active
• Stop Level is not active
If price never reaches the Entry level within the specified timeout period, the pattern becomes invalid and the script prints:
“Pattern expired”
━━━━━━━━━━━━━━━━━━
STOP & TAKE PROFIT SYSTEM
━━━━━━━━━━━━━━━━━━
Stop Level:
The Stop Level is dynamically created using the C structure point.
Take Profit Levels:
TP-1 and TP-2 levels are automatically generated from the pattern structure.
Trade Result Logic:
• If price directly hits Stop Level:
“Stopped out”
• If TP-1 is reached and price later hits Stop:
“TP-1 hit then stopped out”
• If TP-2 is reached:
“Take Profit Hit”
The script also stops extending trade management lines once the trade is completed.
━━━━━━━━━━━━━━━━━━
VISUAL SYSTEM
━━━━━━━━━━━━━━━━━━
Entry Line:
Blue colored dynamic Entry line.
Take Profit Lines:
Green TP-1 and TP-2 lines.
Stop Line:
Red Stop Level line.
All major visual elements can be customized from the settings panel:
• Line colors
• Line widths
• Text sizes
• Result label sizes
━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━
ZigZag Settings
Left Bars
Controls pivot sensitivity on the left side.
Right Bars
Controls pivot confirmation on the right side.
━━━━━━━━━━━━━━━━━━
Other Settings
Quasimodo Mode
Choose Bullish, Bearish or Both pattern types.
Entry Timeout Bars
Maximum number of bars allowed before the pattern expires.
━━━━━━━━━━━━━━━━━━
Position Entry Visual Settings
Entry Line Color
Changes Entry line color.
Entry Line Width
Changes Entry line thickness.
Entry Text Size
Changes Entry line text size.
Entry Label Size
Changes Entry candle label size.
━━━━━━━━━━━━━━━━━━
Stop Visual Settings
Stop Line Color
Changes Stop Level line color.
Stop Line Width
Changes Stop Level line thickness.
Stop Text Size
Changes Stop Level text size.
━━━━━━━━━━━━━━━━━━
Take Profit Visual Settings
TP Line Color
Changes TP line color.
TP Line Width
Changes TP line thickness.
TP Text Size
Changes TP line text size.
━━━━━━━━━━━━━━━━━━
Trade Result Visual Settings
Result Label Size
Changes the size of trade result labels such as:
• Pattern expired
• Stopped out
• TP-1 hit then stopped out
• Take Profit Hit
━━━━━━━━━━━━━━━━━━
IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━
This script uses pivot-based market structure logic.
Patterns are confirmed only after pivot confirmation occurs.
Because of this, structural signals can appear with confirmation delay.
The indicator is designed for analytical and educational purposes and should not be considered financial advice.
Past performance does not guarantee future results.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
EmirTradeHub
X: x.com/emirtradehub?s=21
Telegram: @EmirTradeHub
X: x.com/emirtradehub?s=21
Telegram: @EmirTradeHub
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
EmirTradeHub
X: x.com/emirtradehub?s=21
Telegram: @EmirTradeHub
X: x.com/emirtradehub?s=21
Telegram: @EmirTradeHub
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.