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

👨‍💻 Need help you with your FTMO/TopStep verif?

⭐️ Listed as TradingView Trusted Pine Programmer

📧 dave@best-trading-indicator

Telegram: Daveatt

⏩ Course: best-trading-indicator.com

Twitter: twitter.com/bti_trading
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?