cubantobacco

Cuban's Pair Trading Index

cubantobacco מעודכן   
The purpose of this indicator is to visually simplify the relationship between two assets when searching for pair trades or higher beta opportunities.

With highly correlated pairs, it can be a blessing or a curse during volatility when you're somehow stuck in the only lower beta pairs, or maybe you're market neutral and the wrong leg starts nuking.

This indicator was built as a visual way to track pair relationships.

Fundamentally, this script does the following:
  • Plots the relative performance of the relationship between two assets across multiple time horizons
  • Uses a consistent measurement of historical performance, regardless of asset -- currently standard deviations, may add log difference in the future
  • Plots a custom Average Directional Index on the current chart ticker for current asset contextual momentum
  • Plots the average 'rotation' of both the ADX and Pair Delta independently, over n numbers of rotations -- able to be specified using the 'Rotation Lookback' variable

    If you've never pair traded crypto before (i.e. long $DYDX, short $ETH), you might not be aware that most highly correlated alt asset returns tend to oscillate on a low timeframe rolling basis around the performance of the majors -- and more recently, predominantly $ETH. With this in mind and using this oscillator, we can track that relationship.

    Users are given the ability to adjust the following:

  • Comparison Asset
  • Fast and Slow Delta Lookbacks
  • Whether to wait for one bar delay during security calls
  • Rotation Lookback
  • Rotation Threshold for Pair Delta and ADX independently
  • ADX Lookback
  • Whether to utilize the ADX on the current chart ticker or also net that off against the ADX of the comparison asset


    TO DO:

  • Aesthetic update to Pair Delta plot
  • Permanent fix for security call forced delay
הערות שחרור:
  • small logic fix

סקריפט להזמנה בלבד

הגישה לסקריפט זה מוגבלת למשתמשים שהוסמכו על ידי הכותב ובדרך כלל דורשת תשלום. אתה יכול להוסיף אותו למועדפים שלך, אך תוכל להשתמש בו רק לאחר שתבקש אישור ותקבל אותו מהמחבר שלו. צור קשר עם cubantobacco לקבלת מידע נוסף, או עקוב אחר הוראות המחבר בהמשך.

TradingView אינה מציעה לשלם עבור סקריפט ולהשתמש בו עד ש- 100 % אתה סומך על המחבר שלו ומבין איך עובד הסקריפט. במקרים רבים ניתן למצוא למצוא חלופה טובה עם קוד פתוח בחינם ב בסקריפטי הקהילה שלנו.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

הוראות המחבר

For access, please join the CUBAN'S EDGE Discord here: discord.gg/NqDfZgxeku

רוצה להשתמש בסקריפ זה בגרף?

אזהרה: אנא קרא את לפני שתבקש גישה.