PINE LIBRARY
已更新

LiliALHUNTERSystem_v2

98
📚 **Library: LiliALHUNTERSystem_v2**

This library provides a powerful target management system for Pine Script developers.
It includes advanced calculators for EMA, RMA, and Supertrend, and introduces a central `createTargets()` function to dynamically render target lines and labels based on long/short trade logic.

🛠️ **Main Features:**
– Dynamic horizontal & vertical target lines
– Dual target configuration (Target 1 & Target 2)
– Directional logic via `isLong1`, `isLong2`
– Integrated Supertrend validation
– Visual dashboard and label display
– Works seamlessly with custom indicators

🎯 **Purpose:**
The `LiliALHUNTERSystem_v2` Library enables Pine coders to manage and visualize targets consistently across all trading strategies and indicators. It simplifies target logic while maintaining visual clarity and modular usage.

⚠️ **Disclaimer:**
This script is intended for educational and analytical purposes only. It does not constitute financial advice.


Library "LiliALHUNTERSystem_v2"

ema_calc(len, source)
  Parameters:
    len (simple int)
    source (float)

rma_calc(len, source)
  Parameters:
    len (simple int)
    source (float)

supertrend_calc(length, factor)
  Parameters:
    length (simple int)
    factor (float)

createTargets(config, state, source1A, source1B, source2A, source2B)
  Parameters:
    config (TargetConfig)
    state (TargetState)
    source1A (float)
    source1B (float)
    source2A (float)
    source2B (float)

showDashboard(state, dashLoc, textSize)
  Parameters:
    state (TargetState)
    dashLoc (string)
    textSize (string)

TargetConfig
  Fields:
    enableTarget1 (series bool)
    enableTarget2 (series bool)
    isLong1 (series bool)
    isLong2 (series bool)
    target1Condition (series string)
    target2Condition (series string)
    target1Color (series color)
    target2Color (series color)
    target1Style (series string)
    target2Style (series string)
    distTarget1 (series float)
    distTarget2 (series float)
    distOptions1 (series string)
    distOptions2 (series string)
    showLabels (series bool)
    showDash (series bool)

TargetState
  Fields:
    target1LineV (series line)
    target1LineH (series line)
    target2LineV (series line)
    target2LineH (series line)
    target1Lbl (series label)
    target2Lbl (series label)
    target1Active (series bool)
    target2Active (series bool)
    target1Value (series float)
    target2Value (series float)
    countTargets1 (series int)
    countTgReached1 (series int)
    countTargets2 (series int)
    countTgReached2 (series int)
發行說明
v2 v2 Performance improvements

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。