Currency translate indicator v1.0
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © yechankun

//@version=5
indicator("Currency translate indicator", overlay=false)

stock = input.symbol(defval = "FX_IDC:KRWUSD", title="자산")

[price_o, price_h, price_l, price_c] = request.security(stock, timeframe.period, [open, high, low, close])

nextPriceOpen = price_o * open
nextPriceHigh = price_h * high
nextPriceLow = price_l * low
nextPriceClose = price_c * close

paletteColor = nextPriceClose >= nextPriceOpen ? color.teal : color.red
plotcandle(nextPriceOpen, nextPriceHigh, nextPriceLow, nextPriceClose, color = paletteColor, bordercolor = paletteColor, wickcolor = paletteColor)