BEST Multicolor Supertrend InfoPanel

Hello traders

Today is a Pinescript hack to display multiple colors in one label.
I used that panel to show the Supertrend Long Term values (weekly, monthly, quarterly, yearly)

What is a Supertrend?

Definition: SuperTrend is an indicator that works on all timeframes and all instruments (stocks, futures , forex, ...). It is a great tool to follow market trends and optimizes your profits.
SuperTrend evolves below or above the prices depending on the trend. You can use it as an exit position indicator when its direction changes. You can also use it to place your stops.

So.... the hack is?

The hack is about creating a new label for each line - versus creating just one label containing the whole text

Best regards,
从收藏脚本中删除 添加到收藏脚本
⏩ Packages/Pricing: https://best-trading-indicator.com/pages/compare-plans

👉 BEST documentation: https://bit.ly/2urOkPO

💬 Discord: https://discord.gg/K6NCTX4

📺 Youtube: https://bit.ly/3bKvnZu

30💲 OFF TradingView ref: https://bit.ly/2SWgYBY


Wicked piece of coding.

I couldn't get it to show the blue, green, purple and red lines like on your chart. I copied the scrip as is and pasted it into pinescript. The code was validated - so no problems there. I can't figure why I'm not seeing the lines on your chart that it's meant to draw. I'm getting the panel showing ok.

Can you advise.
+2 回复
Daveatt Captain_Walker
@Captain_Walker, Hello My Captain
That's normal because this script isn't displaying those supertrends
You can add them using this indicator for example
hello captain sir,
great indicator...
i want to show this label to the right side of the panel or top or bottom of the screen. is there a way to show please let me know sir.

many thanks.
+1 回复
Daveatt Basav2020
@Basav2020, for that you'll need to play with the variable called lapos_x in the script
by default it's lapos_x = timenow + round(change(time)*50)
if you change 50 by 100 it will be more to the right. 150 even more to the right again

2/for vertical alignment, it's the variable called lapos_y
by default, it sets the panel to the latest close level

If you the label to be more to the top you can do lapos_y = close * 1.02
This will put the label 2% more to the top

lapos_y = close * 0,98 will set the label 2% more the the bottom

Now it's up to you to figure out the values you need :)
Daveatt Basav2020
@Basav2020, lines 72-73 from that code basically
Basav2020 Daveatt
sir, thank u so much...one more quick question, how do you add daily, previous day, next day and last week high/low...i am currently thinking to include in my central pivot range(CPR)...that would be a great help..sir..
Daveatt Basav2020
@Basav2020, ok giving one example using pinescript V4
previous day high = security(syminfo.tickerid, 'D', high)

next day is obviously impossible because unknown. We cannot forsee the futur yet, maybe soon.... who knows.
Basav2020 Daveatt
sir, i am new to coding..i see some of the great persons using CPR., its purely based on pricing...and the results are great...next day cpr is calculated by the formula..of todays high and low i guess...i am also trying to find it..if i get it...i will definately share with you...
how to enlarge and include more information in the label? thank you so much once again...
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 如何运作 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 我的客服工单 帮助中心 已发表观点 粉丝 正在关注 私人消息 聊天 退出