TradingView
PineCoders
28 maj 2022 19:51

Input Source 

EUR/USDOANDA

Opis

█  OVERVIEW


This script demonstrates how your script can provide multiple input source selections while still allowing the use of an external indicator input.



█  CONCEPTS


There are occasions when one needs to provide script users with multiple input source selections while still allowing the selection of an external input. This is usually impossible because for external indicators to appear in an input widget's dropdown menu, only one input.source() call must be used in the script. If multiple calls are used, then no external indicator can be selected in any of the script's input widgets.

This script demonstrates how you can provide input sources offering a selection among the usual source built-ins (open, high, low, close, hl2, hlc3, ohlc4, hlcc4), but without the ability for users to select an external indicator. This allows your script to use multiple source inputs while still using one source input allowing the selection of an external input.



Look first. Then leap.

Komentarze
RozaniGhani-RG
kudos
PineCoders
AtomOfScent
I was hoping this might allow multiple external inputs. Maybe one day...
PineCoders
@AtomOfScent, One day, perhaps. The Pine team has a way of surprising us in nice ways )
joshibc81
@PineCoders Extreme useful feature!
Sir, I look forward to release <>= operators to string e.g searching if A>B but after "Operator to String" it is A gt B where gt is input.string and change GT or LT with input.sting. Thank you so much.
RedKTrader
Lovely trick, thanks for sharing ... :)
PineCoders
@RedKTrader, Thank YOU for your support. 💚
pulsar14
How can I specify in the input.source() an external available series in pinescript?
PineCoders
@pulsar14, They can only be selected as an input once added to the chart. Please see our blog post and accompanying links for more information. tradingview.com/blog/en/use-an-input-from-another-indicator-with-your-strategy-19584/
pulsar14
@PineCoders, Thank U!
So, there's no way by Pinescript v5 to specify an external available series as source input
Więcej