Jayforex007
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: September 10th, 2020
Contact: TradingView Profile

Using syminfo.type

I am trying to use syminfo.type in the indicator I am trying to develop. I want to be able to display the type whether its forex, index or futures in the alert message to ensure I am getting this value. What do I need to use syminfo.type?

Deep-Wave
Pine Script Master
Pine Script Master
Posts: 44
Joined: September 4th, 2020
Contact: TradingView Profile

Re: Using syminfo.type

Hi Jayforex007,

i found a script that might help you with what you are trying to do.

https://www.tradingview.com/script/ynnS ... info-Type/

(@mod: i hope posting links to external sources is allowed)

Cheers, :cool:

Jayforex007
Pine Script Rookie
Pine Script Rookie
Posts: 2
Joined: September 10th, 2020
Contact: TradingView Profile

Re: Using syminfo.type

That was just what I needed. Thanks

User avatar
Matthew
Site Admin
Site Admin
Posts: 92
Joined: July 1st, 2020
Location: Australia
Contact: Website Facebook Twitter TradingView Profile

Re: Using syminfo.type

Deep-Wave wrote:
Fri Sep 11, 2020 9:20 am
(@mod: i hope posting links to external sources is allowed)

Absolutely! Linking to useful external resources is encouraged and very welcome, especially if it's from a reputable source (or TradingView in this case lol).

Thanks for answering Jayforex007's question Deep-Wave :cool: :up:

Return to “Pine Script Q&A”