Daveatt

Syminfo.Type

Hello traders

Earlier this week I discovered a new built-in variable called syminfo.type

What is it for?

This variable returns the type of the current symbol. Possible values are cfd, stock, futures , indices, forex, crypto, fund.

Cool bro but... should we care?

Well... we all should. Imagine you have a generic script and you want a different configuration whether you're trading FOREX or Crypto.
I designed a dummy example in that script that will preset the inputs according to the asset type from the chart.
Here I want 12/26/9 for forex and 20/50/50 for crypto - 30/60/90 otherwise

Quick caveat

It seems that for any crypto asset, syminfo.type returns "bitcoin". TradingView will fix it at some point but wanted to give you the heads-up regardless

Enjoy and all the BEST ^^

--
Dave
從喜愛的腳本中移除 添加到喜愛的腳本
Pretty interesting.
So if we wanted an different type of ATR input or calculation on different markets this would be a fuss free way of doing it?
回覆
Daveatt Trendbeat
@Trendbeat, it would indeed :)
+1 回覆
@Daveatt,
Well then I'm sure people that have this issues will be inspired by this to make better all in on tools using this.

If only we could make it so that it applies different settings on few selected pairs.
That way people could have their PSARs and Superclouds closer to being optimal on Forex, as an 2nd option to Evergets profitable scripts.
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 節目 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概述 個人資料設定 賬戶和賬單 推薦朋友 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出