Daveatt

Customizable Trend Direction (Open-Source)

Hello everyone

I received a ton of requests for this script so I decided to share it

I did it for a client who didn't want to pay (you can all blame... or even thank him for this script) in the end and I don't want to sell it on my website.
Not because it's not interesting but because my website will be a place to showcase and rent the Algorithm Builders mostly


What is it about?


Basically, it shows how you could convert a plotshape into a label.new object. Very interesting if you want someday to convert your V3 script into V4
With this script, it shows that you can in V4 (but couldn't do in V3) do the followings :

- change dynamically the size (from tiny to huge) of any object
- change dynamically the text (from whatever to whatever) of any object


Screenshot of the user interface

https://imgur.com/a/2pv5kXX


Other use cases

I did it with the Trend Direction but could work with anything really.

- Any indicator with a visual signal. You can know personalized from a user interface the text, size and also the vertical shift. I didn't do it for that one but label.new takes a (x,y) coordinates so playing with y is fairly easy to achieve a dynamic vertical shift

- Even with this script Plotchar-How-to-draw-external-symbols-on-a-chart/ but would require to be updated with a label.new object and with a shape.none parameter so that we'll only see the icon/symbol displayed

- The colors also can be change dynamically using presets Presets-Selector-FRIDAY-NIGHT-CHALLENGE/. If you have an indicator showing a BULLISH and a BEARISH signal, then you could, for instance, configure colors presets according to the timeframe of the chart or the indicator input, etc (sky is the limit ^^)

Be sure to hit the thumbs up at it motivates me to research what Pinescript can offer and share with the community

Dave

____________________________________________________________


- I'm an officially approved PineEditor/ LUA /MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
發布通知: - Fixed an issue with the alerts
發布通知: -
從常用腳本中移除 新增至常用腳本
⏩ 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

評論

Thanks for the script :)
+1 回覆
Daveatt simonf1
@simonf1, you're welcome Simon
回覆
I THINK YOU SHOULD REMOVE ALL OPEN AND CALLCULATE BY ALL PCLOSE
YOU WILL GET SUPER RESULTS
回覆
Daveatt patel.sagarinn
@patel.sagarinn, Hey Patel
The indicator calculates a higher high or lower low break.
Detecting that trendline break on a close might give a signal too late
What do you think?
回覆
@Daveatt, is this profitable in a backtest?
回覆
Daveatt dpanday
@dpanday, Any single indicator might be profitable in backtest but WILL NEVER be profitable in real trading. It needs to be used along others to provide better risk/money management and more security
回覆
Daveatt dpanday
@dpanday, it is but it lacks a few filters. Combined with other indicators to detect a strong convergence, could be :)
回覆
dose it REPAINT ?
回覆
Daveatt vikkranntshah
@vikkranntshah, I'm sure it does not repaint. It's coded as such. Do you believe it's repainting ?
回覆
@Daveatt, no i just asked before trying it out
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出