OPEN-SOURCE SCRIPT
MaPla Green Pen - PaTom Graded Zones

📘 User Guide: "MaPla Green Pen - PaTom Graded Zones"
This indicator is a complete trading system that combines technical analysis of support/resistance zones (Zones) with specific entry signals (Entry Signals) and integrated risk management (Risk Management).
1. Key Indicator Components
The indicator displays three main components on the chart:
Component,Color,Original Name,Description
Demand/Supply Zone,🟥 Red/🟦 Blue,Sone MaPla,Support/Resistance zones derived from Pivot High/Low. Used as areas of interest or potential reversal points.
Entry Signal,🟢 Green/🔴 Red,MaPla Green Pen,Trade entry signals generated by a specific rejection candlestick pattern (often resembling a Pin Bar).
Risk/Reward Lines,🟢 Lime/🟠 Orange/🔴 Red,PaTom Graded,Take Profit (TP) and Stop Loss (SL) levels automatically calculated based on the user-defined Risk/Reward Ratio.
2. Understanding the Settings (Inputs)Users can adjust these three main parameters to suit their strategy and trading timeframe:Setting NameCode VariableMeaning and AdjustmentZone Strength (Pivot Period)i_strengthDefault: 10Determines the strength of the drawn zones. Higher values make zones rarer but more significant (better for higher timeframes). Lower values create more frequent zones.Take Profit Ratio (Risk/Reward)i_tp_ratioDefault: 1.5The ratio of reward to risk. A value of 1.5 means the TP distance is 1.5 times the SL distance. It is recommended to use values of 1.0 or higher.Zone Transparencyi_zone_transDefault: 88Sets the transparency of the zone's background color. Set to 0 for solid color, or 100 for maximum transparency.
3. How to Use the Signals (Trading Strategy)
The indicator operates automatically. Follow these steps when a signal appears:
3.1 📉 For a SELL Signal
Entry: A Red Label ("SELL Signal") appears above the candlestick, indicating a strong rejection of upward price movement.
Take Profit (TP): The Orange Line (TP) is automatically drawn, based on the set RR Ratio.
Stop Loss (SL): The Red Dashed Line (SL) is automatically drawn, positioned slightly above the high of the rejection candle.
3.2 📈 For a BUY Signal
Entry: A Green Label ("BUY Signal") appears below the candlestick, indicating a strong rejection of downward price movement.
Take Profit (TP): The Lime Green Line (TP) is automatically drawn, based on the set RR Ratio.
Stop Loss (SL): The Red Dashed Line (SL) is automatically drawn, positioned slightly below the low of the rejection candle.
4. Important Notice and Disclaimer
To maintain responsibility to users and comply with TradingView's rules, a clear Disclaimer must be included with the published indicator.
🚨 Important Disclaimer
Not Financial Advice: This indicator is solely a technical analysis tool based on mathematical conditions and candlestick patterns. It does not constitute financial or trading advice. Users must conduct their own analysis and make independent trading decisions.
Repainting: The entry signals in this indicator are Non-Repainting once the bar is closed. However, the Pivot High/Low zones (Demand/Supply Zones) may slightly adjust if a stronger, subsequent candle forms (a normal characteristic of Pivot calculation).
Risk: Trading involves risk. Users should always utilize Stop Loss orders and trade only with capital they can afford to lose.
Alerts: Alerts can be set up on TradingView using the programmed messages: "BUY Signal Confirmed" or "SELL Signal Confirmed."
🇹🇭 ฉบับภาษาไทย: สรุปวิธีการใช้งาน
ผู้ใช้งานควรใช้อินดิเคเตอร์นี้เป็น เครื่องมือยืนยัน สัญญาณเข้าซื้อขาย โดยอาจพิจารณารอสัญญาณ "แม่ปลาปากกาเขียว" (Buy/Sell Label) เมื่อราคาวิ่งเข้าสู่ "โซนแม่ปลา" (Demand/Supply Zone) ที่แข็งแกร่ง เพื่อเพิ่มโอกาสสำเร็จในการเทรด
This indicator is a complete trading system that combines technical analysis of support/resistance zones (Zones) with specific entry signals (Entry Signals) and integrated risk management (Risk Management).
1. Key Indicator Components
The indicator displays three main components on the chart:
Component,Color,Original Name,Description
Demand/Supply Zone,🟥 Red/🟦 Blue,Sone MaPla,Support/Resistance zones derived from Pivot High/Low. Used as areas of interest or potential reversal points.
Entry Signal,🟢 Green/🔴 Red,MaPla Green Pen,Trade entry signals generated by a specific rejection candlestick pattern (often resembling a Pin Bar).
Risk/Reward Lines,🟢 Lime/🟠 Orange/🔴 Red,PaTom Graded,Take Profit (TP) and Stop Loss (SL) levels automatically calculated based on the user-defined Risk/Reward Ratio.
2. Understanding the Settings (Inputs)Users can adjust these three main parameters to suit their strategy and trading timeframe:Setting NameCode VariableMeaning and AdjustmentZone Strength (Pivot Period)i_strengthDefault: 10Determines the strength of the drawn zones. Higher values make zones rarer but more significant (better for higher timeframes). Lower values create more frequent zones.Take Profit Ratio (Risk/Reward)i_tp_ratioDefault: 1.5The ratio of reward to risk. A value of 1.5 means the TP distance is 1.5 times the SL distance. It is recommended to use values of 1.0 or higher.Zone Transparencyi_zone_transDefault: 88Sets the transparency of the zone's background color. Set to 0 for solid color, or 100 for maximum transparency.
3. How to Use the Signals (Trading Strategy)
The indicator operates automatically. Follow these steps when a signal appears:
3.1 📉 For a SELL Signal
Entry: A Red Label ("SELL Signal") appears above the candlestick, indicating a strong rejection of upward price movement.
Take Profit (TP): The Orange Line (TP) is automatically drawn, based on the set RR Ratio.
Stop Loss (SL): The Red Dashed Line (SL) is automatically drawn, positioned slightly above the high of the rejection candle.
3.2 📈 For a BUY Signal
Entry: A Green Label ("BUY Signal") appears below the candlestick, indicating a strong rejection of downward price movement.
Take Profit (TP): The Lime Green Line (TP) is automatically drawn, based on the set RR Ratio.
Stop Loss (SL): The Red Dashed Line (SL) is automatically drawn, positioned slightly below the low of the rejection candle.
4. Important Notice and Disclaimer
To maintain responsibility to users and comply with TradingView's rules, a clear Disclaimer must be included with the published indicator.
🚨 Important Disclaimer
Not Financial Advice: This indicator is solely a technical analysis tool based on mathematical conditions and candlestick patterns. It does not constitute financial or trading advice. Users must conduct their own analysis and make independent trading decisions.
Repainting: The entry signals in this indicator are Non-Repainting once the bar is closed. However, the Pivot High/Low zones (Demand/Supply Zones) may slightly adjust if a stronger, subsequent candle forms (a normal characteristic of Pivot calculation).
Risk: Trading involves risk. Users should always utilize Stop Loss orders and trade only with capital they can afford to lose.
Alerts: Alerts can be set up on TradingView using the programmed messages: "BUY Signal Confirmed" or "SELL Signal Confirmed."
🇹🇭 ฉบับภาษาไทย: สรุปวิธีการใช้งาน
ผู้ใช้งานควรใช้อินดิเคเตอร์นี้เป็น เครื่องมือยืนยัน สัญญาณเข้าซื้อขาย โดยอาจพิจารณารอสัญญาณ "แม่ปลาปากกาเขียว" (Buy/Sell Label) เมื่อราคาวิ่งเข้าสู่ "โซนแม่ปลา" (Demand/Supply Zone) ที่แข็งแกร่ง เพื่อเพิ่มโอกาสสำเร็จในการเทรด
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。