PineCoders

Color Gradient Framework - PineCoders FAQ

Provides a suite of functions to:
— Allow the selection of one of 3 color schemes, each containing a pair of bull/bear colors.
— Generate 10-level gradients for each color.
— Use two types of gradient calculations: one for unbounded and one for bounded signals. We call the 2 modes: Advance/Decline and Relative.

Features
These gradients are designed to work with 2 base colors for each element you want to color: one color for bullish and one for bearish conditions. Each base color can be generated in 10 shades, for a total of 20 possibilities for each graphic element (e.g., the fill between two MAs or a MACD histogram). Each gradient is expressed internally as a float from zero to ten. Any value <= 1 returns the lightest shade. Any value > 9 returns the brightest shade.

Two modes of gradient generation are offered:
► 1. Advance/Decline
This mode is better for unbounded signals. To determine brightness, it uses advances/declines of the signal rather than its relative position in a fixed range.

► 2. Relative
This mode is preferable for bounded signals such as RSI . It uses the relative position of the signal to determine the gradient.

Notes
— For demonstration purposes, this script allows coders to play with the settings of the signals used to generate examples of both gradient modes.
— The code is pretty fast.
— Doesn't require extra plots.
— All color schemes performs well on both light and dark chart backgrounds.
— These are simple gradients with only 10 levels, which will nonetheless provide more visual information than uniform colors. While the transitions are relatively smooth, the lack of depth in the number of shades will produce rather coarse gradients compared to high-quality graphic functions which will also typically be slower.
— The code structure makes it relatively easy to add color schemes. When doing so, you may need to fine-tune the transparencies of some colors, especially ones towards the extremities. For better compatibility, you should validate that your choices perform well on both dark and white chart backgrounds.
— For any given base color, the same color is used for all gradients of that base color. Only the transparency varies. If you wanted 100% opaque gradients, you would need to find the zero (or "ff" in hex) transparency RGB equivalents required for each of a base color's 10 gradients.
— While the gradients are currently composed of different brightness levels of the same base color, you could also configure them using different hues completely (e.g., rainbow color). It's up to you.
ملاحظات الأخبار: Updated comments.
ملاحظات الأخبار: Tidied up code.
ملاحظات الأخبار: Tidied up code again )
ملاحظات الأخبار: Included a compact version of the functions at the end of the script.
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة
Tools and ideas for all Pine coders: http://www.pinecoders.com
Pine Wizards: https://www.tradingview.com/pine-wizards/
Our Pine FAQ & Code: http://www.pinecoders.com/faq_and_code/
Get Pine news and tips on Telegram: https://t.me/PineCodersSquawkBox

التعليقات

PineCoders on 🔥
+2 رد
realy Realy thanks
+1 رد
Wow guys! Thank you for that detailed tutorial! Amazing job!
+1 رد
Colorful, well done, nice!
+1 رد
PineCoders RootDuk
@RootDuk, Thx. Appreciate. It's a simple, hopefully easy to use and, from a performance point of view, low-cost way to improve the looks of our stuff.
رد
Beautiful one!
رد
PineCoders seatfive
@seatfive, Thx! Happy you and other authors like it. We should be adding a set of 16-color levels functions soon. Will provide more smoothness while still being fast enough for small numbers of fills.
رد
You censor the best scripts on tradingview to promote your scam. You have no skill and no knowledge. When a script is pure quality you censor it. TradingView is the CNN of trading
رد
PineCoders sevensphere
@sevensphere, Thanks for sharing your opinion.
رد
sevensphere PineCoders
@PineCoders, You have the arrogance to attack me after censoring the best script ever created on TradingView to promote your own shit. I cannot believe it!!! I would never this that to you, i would prefer a fair fight so people will know if you are the real thing or not. But you cannot let that happen because people will make a fortune with me and lose their time and mental sanity with you
رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف تعمل مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر
ملف التعريف إعدادات الصفحة الشخصية الحساب وإعداد الفواتير إحالة صديق تذاكر الدعم الخاصة بي مركز المساعدة التحاليل المنشورة المتابعين تُتابع رسالة خاصة المحادثة تسجيل الخروج