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) ที่แข็งแกร่ง เพื่อเพิ่มโอกาสสำเร็จในการเทรด
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.