PINE LIBRARY

azLibConnector

מעודכן
The AzLibConnector provides a comprehensive suite of functions for facilitating seamless communication and chaining of signal value streams between connectable indicators, signal filters, monitors, and strategies on TradingView. By adeptly integrating both positive and negative weights from Entry Long (EL), Exit Long (XL), Entry Short (ES), and Exit Short (XS) signals into a singular figure, it leverages the source input field of TradingView to efficiently connect indicators in a chain. This results in a streamlined strategy setup without the necessity for Pine Script coding. Emphasizing modularity and uniformity, this library enables users to easily combine indicators into a coherent system, facilitating strategy development and execution with flexibility.



█ LIBRARY USAGE

extract(srcConnector)
  Extract signals (EL, XL, ES, XS) from incoming connector signal stream
  Parameters:
    srcConnector: (series float) Source Connector. The connector stream series to extract the signals from.
  Returns: A tuple containing the extracted EL, XL, ES, XS signal values.
[
(series float) Entry Long signal value.
(series float) Exit Long signal value.
(series float) Entry Short signal value.
(series float) Exit Short signal value.
]

compose(signalEL, signalXL, signalES, signalXS)
  Compose a connector output signal stream from given EL, XL, ES and XS signals to be used by other Azullian Strategy Builder blocks.
  Parameters:
    signalEL: (series float) Entry Long signal value.
    signalXL: (series float) Exit Long signal value.
    signalES: (series float) Entry Short signal value.
    signalXS: (series float) Exit Short signal value.
  Returns: (series float) A composed connector output signal stream.


USAGE OF CONNECTABLE INDICATORS

 ■ Connectable chaining mechanism

Connectable indicators can be connected directly to the monitor, signal filter or strategy, or they can be daisy chained to each other while the last indicator in the chain connects to the monitor, signal filter or strategy. When using a signal filter or monitor you can chain the filter to the strategy input to make your chain complete.

תמונת-בזק

 • Direct chaining: Connect an indicator directly to the monitor, signal filter or strategy through the provided inputs (→).
 • Daisy chaining: Connect indicators using the indicator input (→). The first in a daisy chain should have a flow (⌥) set to 'Indicator only'. Subsequent indicators use 'Both' to pass the previous weight. The final indicator connects to the monitor, signal filter, or strategy.


 ■ Set up the signal filter with a connectable indicator and strategy

Let's connect the MACD to a connectable signal filter and a strategy:


1. Load all relevant indicators
 • Load MACD / Connectable
 • Load Signal filter / Connectable
 • Load Strategy / Connectable

2. Signal Filter: Connect the MACD to the Signal Filter
 • Open the signal filter settings
 • Choose one of the five input dropdowns (1→, 2→, 3→, 4→, 5→) and choose : MACD / Connectable: Signal Connector
 • Toggle the enable box before the connected input to enable the incoming signal

3. Signal Filter: Update the filter settings if needed
 • The default filter mode for the trading direction is SWING, and is compatible with the default settings in the strategy and indicators.

4. Signal Filter: Update the weight threshold settings if needed
 • All connectable indicators load by default with a score of 6 for each direction (EL, XL, ES, XS)
 • By default, weight threshold is 'ABOVE' Threshold 1 (TH1) and Threshold 2 (TH2), both set at 5. This allows each occurrence to score, as the default score is 1 point above the threshold.

5. Strategy: Connect the strategy to the signal filter in the strategy settings
 • Select a strategy input → and select the Signal filter: Signal connector

6. Strategy: Enable filter compatible directions
 • As the default setting of the filter is SWING, we should also set the SM (Strategy mode) to SWING.




Now that everything is connected, you'll notice green spikes in the signal filter or signal monitor representing long signals, and red spikes indicating short signals. Trades will also appear on the chart, complemented by a performance overview. Your journey is just beginning: delve into different scoring mechanisms, merge diverse connectable indicators, and craft unique chains. Instantly test your results and discover the potential of your configurations. Dive deep and enjoy the process!




BENEFITS

Adaptable Modular Design: Arrange indicators in diverse structures via direct or daisy chaining, allowing tailored configurations to align with your analysis approach.
Streamlined Backtesting: Simplify the iterative process of testing and adjusting combinations, facilitating a smoother exploration of potential setups.
Intuitive Interface: Navigate TradingView with added ease. Integrate desired indicators, adjust settings, and establish alerts without delving into complex code.
Signal Weight Precision: Leverage granular weight allocation among signals, offering a deeper layer of customization in strategy formulation.
Advanced Signal Filtering: Define entry and exit conditions with more clarity, granting an added layer of strategy precision.
Clear Visual Feedback: Distinct visual signals and cues enhance the readability of charts, promoting informed decision-making.
Standardized Defaults: Indicators are equipped with universally recognized preset settings, ensuring consistency in initial setups across different types like momentum or volatility.
Reliability: Our indicators are meticulously developed to prevent repainting. We strictly adhere to TradingView's coding conventions, ensuring our code is both performant and clean.



COMPATIBLE INDICATORS

Each indicator that incorporates our open-source 'azLibConnector' library and adheres to our conventions can be effortlessly integrated and used as detailed above.
For clarity and recognition within the TradingView platform, we append the suffix ' / Connectable' to every compatible indicator.



COMMON MISTAKES

Removing an indicator from a chain: Deleting a linked indicator and confirming the "remove study tree" alert will also remove all underlying indicators in the object tree. Before removing one, disconnect the adjacent indicators and move it to the object stack's bottom.
Point systems: The azLibConnector provides 500 points for each direction (EL: Enter long, XL: Exit long, ES: Enter short, XS: Exit short) Remember this cap when devising a point structure.
Flow misconfiguration: In daisy chains the first indicator should always have a flow (⌥) setting of 'indicator only' while other indicator should have a flow (⌥) setting of 'both'.



A NOTE OF GRATITUDE

Through years of exploring TradingView and Pine Script, we've drawn immense inspiration from the community's knowledge and innovation. Thank you for being a constant source of motivation and insight.



RISK DISCLAIMER

Azullian's content, tools, scripts, articles, and educational offerings are presented purely for educational and informational uses. Please be aware that past performance should not be considered a predictor of future results.



הערות שחרור
v2 - Updated license
connectableinputssignalconnector

ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם קוד Pine זה כספריית קוד פתוח כדי שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית.


🔗 Explore and learn about connectable indicators on Azullian: azullian.com

🔗 Check out how it works: youtu.be/gPNz0XiZl38
🔗 Strategy plus demo: youtu.be/jRpvt_ZdIOg
🔗 Join our discord: discord.com/invite/vT7AqmE
גם על:

כתב ויתור