Currency ConverterWhat it is?
It's a Currency converter/Exchange rate Viewer.
How it works?
You put the main currency and the other currency in setting then it will show the converted rate in chart.
Converter
QQQ NDX NQ Price Converter [Pt]A must have tool for QQQ NDX NQ traders~!!!
Description
The QQQ NDX NQ Price Converter is a powerful and easy-to-use tool that allows traders to view corresponding price levels for linked instruments in real-time. This includes QQQ, NDX, NQ, and NAS100USD. Although these instruments often move in sync, differences in price movements, volume, and trading hours can create unique key levels and support/resistance areas for each. By mapping these levels on the same chart, traders can more easily spot trading opportunities and improve their chances of success.
Customizable features
- multiplier from the closest whole number price level
- line color
- line style
- label position / size
- # of levels to display
- toggle current price display table
SPY SPX ES Price Converter [Pt]A must have tool for SPY SPX ES traders~!!!
Description
The SPY SPX ES Price Converter is a powerful and easy-to-use tool that allows traders to view corresponding price levels for linked instruments in real-time. This includes SPY, SPX, ES, and SPX500USD. Although these instruments often move in sync, differences in price movements, volume, and trading hours can create unique key levels and support/resistance areas for each. By mapping these levels on the same chart, traders can more easily spot trading opportunities and improve their chances of success.
Customizable features
- multiplier from the closest whole number price level
- line color
- line style
- label position / size
- # of levels to display
- toggle current price display table
intoLibrary "into"
convert literals by type,
Same-types left in for bulk reasons.
TODO: Expand Types
b(string)
Convert string to bool.
Parameters:
string : val A string value.
Returns: Bool.
b(bool)
Pass Bool/bool
Parameters:
bool :
Returns: Bool.
b(float)
Convert Float (True if exists and not 0)
Parameters:
float : val A float value.
Returns: Bool.
b(int)
Convert integer (True if exists and not 0)
Parameters:
int : val An integer value.
Returns: Bool.
f(bool)
Convert bool to float.
Parameters:
bool : val A boolean value.
Returns: Float.
f(string, int)
Convert with decimal
Parameters:
string : val A string value.
int : decimals Decimal places. def = 6
Returns: Float.
f(float, int)
Convert float bypass with decimals
Parameters:
float : val A float value.
int : decimals Decimal places. def = 6
Returns: Float.
f(int)
Convert integer to float.
Parameters:
int : val An integer value.
Returns: Float.
i(bool)
Convert bool to int.
Parameters:
bool : val A boolean value.
Returns: Int.
i(string)
Convert string number to int.
Parameters:
string : val A string value.
Returns: Int.
i(float)
Convert float to int.
Parameters:
float : val A float value.
Returns: Int.
i(int)
Convert int to int.
Parameters:
int : val An int value.
Returns: Int.
s(bool)
Convert bool value to string.
Parameters:
bool : val A boolean value.
Returns: String.
s(str)
bypass string
Parameters:
str : val A string value.
Returns: String.
s(float)
Convert float value to string.
Parameters:
float : val A float value.
Returns: String.
s(int)
Convert int value to string.
Parameters:
int : val An integer value.
Returns: String.
s(val)
Array Convert Each Item
Parameters:
val : Array Input (Str,Bool,Int,Float)
Returns: String.
s(val)
Array Convert Each Item
Parameters:
val : Array Input (Str,Bool,Int,Float)
Returns: String.
s(val)
Array Convert Each Item
Parameters:
val : Array Input (Str,Bool,Int,Float)
Returns: String.
s(val)
Array Convert Each Item
Parameters:
val : Array Input (Str,Bool,Int,Float)
Returns: String.
HexLibrary "Hex"
Hex String Utility
intToHex(_n)
helper Binary half octet to hex character
Parameters:
_n : Digits to convert
fromDigits(_input, _buffer)
Digits to Hex String output
Parameters:
_input : Integer Input
_buffer : Number of 0's to pad Hex with
Returns: string output hex character value buffered to desired length (00-ff default)
ConverterTFLibrary "ConverterTF"
I have found a bug Regarding the timeframe display, on the chart I have found that the display is numeric, for example 4Hr timeframe instead of '4H', but it turns out to be '240', which I want it to be displayed in abbreviated form. And in all other timeframes it's the same. So this library was created to solve those problems. It converts a timeframe from a numeric string type to an integer type by selecting a timeframe manually and displaying it on the chart.
CTF()
str = "240"
X.GetTF( str )
Example
str = input.timeframe(title='Time frame', defval='240')
TimeF = CTF(str)
L=label.new(bar_index, high, 'Before>> Timeframe '+str+' After>> Timeframe '+TimeF,style=label.style_label_down,size=size.large)
label.delete(L )
Custom timeframes can handle this issue as well.
An example from the use. You will find it on the bottom right hand side.
Hopefully it will be helpful to the Tradingview community. :)
StringtoNumberThis library is used to convert Text type numbers are numbers.
Library "StringtoNumber"
str1 = '12340' , vv = numstrToNum(str1)
numstrToNum()
Example
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © hapharmonic
//@version=5
indicator("My Script")
import hapharmonic/StringtoNumber/1 as CV
TF = '240'
GETTF = CV.numstrToNum(TF)
L = label.new(bar_index, high, '|| numstrToNum :>> || ' + str.tostring(GETTF), style=label.style_label_down,size=size.large)
label.delete(L )
Price Converter WAVAX to USDT.eI wrote this script to display WAVAX equivalents as USDT.e while trading on the Avalanche network (The USDT.e value is taken from the Pangolin exchange).
TimeframeToMinutesLibrary "TimeframeToMinutes"
The timeframeToMinutes() function returns the number of minutes in an arbitrary timeframe string.
timeframeToMinutes()
Returns the number of minutes in the supplied timeframe string, which is arbitrary, i.e. it doesn't have to be the timeframe of the current chart but can be taken from an input.
The sole advantage over the short and neat Pinecoders f_resInMinutes function from their excellent MTF Selection Framework (at ) is that this one doesn't use up a security() call.
To convert the other way, from minutes to timeframe.period format, I would use the f_resFromMinutes function from the Pinecoders' MTF Selection Framework, which does not use security().
ERROR-CHECKING: It has light error-checking to try to make sure the string is in the format timeframe.period, e.g. 15S, 1 (minute), 60 (1H), 1D, 1W, 1M.
It will throw an error for some non-standard timeframes such as 30 hours (1800 minutes). Above 1440 minutes, only whole numbers of days are allowed. This is to be consistent with the security() function.
But it will allow some non-standard timeframes such as 7 hours (420 minutes). Such timeframes must still be supplied in the standard timeframe.period format.
param _tf
The timeframe to convert to minutes. Must be in timeframe.period format.
returns
An integer representing the number of minutes that the timeframe period is equivalent to.
Rate ConverterThis is a simple rate converter that can convert almost anything into almost anything else. It supports cryptocurrencies, currencies and most commodities.
On the chart we see the following:
USD (US Dollar) into EUR (Euro) as a candle stick chart
WTICO (West Texas Intermediate Crude Oil) into ISK (Icelandic Krona) as a bar chart
ADA (Cardano) into JMD (Jamaican Dollar) as a line chart
XPT (Platinum) into XAG (Silver) as a scatter plot
It supports plotting the rates as japanese candlesticks, bars, lines, or as a scatter plot.
AutoView - Hodl to SodlWrite your own strategy and use Hodl to Sodl to send Alerts for when to buy & sell, and automatically plot your anticipated buys/sells to the chart. A must have for AutoView users. Requires Pine Script coding. Not compatible with "Strategy Tester" tab and "Paper Trading" tab in TradingView.
Hodl-Sodl itself is not a strategy. It is a framework for building AutoView strategies. For demonstration purposes, the image featured with this script shows an example of a very simple CCI strategy (and not a very good one), but you would presumably replace that with your own ideas. If you'd like a little help plugging in your own strategy, contact jdhadwin for custom coding.
Price Converter from BTCJPY to USDThis script shows USD equivalent price which converted from BTCJPY and BTCKRW by fetching latest rate of those local currencies.
By using this script, you can easy to compare the difference of BTC price in USD, JPY and KRW.
Fetching price from BitFlyer for BTCJPY, Bithumb for BTCKRW. Enjoy!
Convert Yuan value symbols to USDIGNORE PREVIOUS SCRIPT/POST (titled: "yuan normiz")
If you like to look add symbols that are valued in China's Yuan and want to convert them to USD accurately then this is the perfect script for you.
"I'm not sure if this script is for me. Does my setup apply here?"
If either of these resemble your chart setup then this is for you:
Example 1: You have COINBASE:BTCUSD on your main chart often add to compare Bitstamp:btcusd and Okcoin:btccny.
Example 2: You have SPY or SPX (or DJIA etc) as your main chart but like to add other composites to compare like SSE(Shanghai Stock Exchange index) to your main chart.
This takes the symbol of your choice (default is BTCCHINA:BTCCNY) that is expressed in Yuan and divides it by the corresponding value of IDC's USDCNH ticker. Not the last value of USDCNH, but the respective tick mark----BTCCNY's close 3 months ago is divided by USDCNH's close 3 months ago.
yuan normizapply to symbols expressed/valued in Chinese Yuan to automatically divide the symbol by FX:USDCNH. For example, I like to apply OKCOIN:BTCCNY to my main BTCUSD chart to compare, but I'd like to have the value for BTCCNY converted to USD for each tick---whether USDCNY was 6.30 or 6.80.
This is a very narrow use script designed to be applied on top of of symbols (press the 'apply indicator' + sign button)