Color Palette Options
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © darkbrewery 2021

//@version=5

indicator("Color Palette Options", overlay=true)

Color_Palette = input.string('Synth Wave','Bar Colors',
 options      = ['Synth Wave', 'Neon', 'Pastel', 'Charcoal'],
  tooltip     = "Right-click bars on the chart, then goto: 'Visual Order' -> 'Bring to Front' --OR-- Click 'Chart Options' then Uncheck 'Body', 'Borders' and 'Wick'")

Bull   = close >= open
S_Body = Bull ? #00fff9 : #E93479
S_Wick = Bull ? #00b8ff : #F62E97
N_Body = Bull ? #00D3BA : #FF3FBF
N_Wick = Bull ? #00B1A9 : #EE2EAE
P_Body = Bull ? #c8e1cc : #ff7c7c
P_Wick = Bull ? #b8d8be : #ef6969
C_Body = Bull ? #777777 : #333333
C_Wick = Bull ? #999999 : #444444

[Candle_C, Wick_C] = switch Color_Palette
    'Synth Wave' => [S_Body, S_Wick]
    'Neon'       => [N_Body, N_Wick]
    'Pastel'     => [P_Body, P_Wick]
    'Charcoal'   => [C_Body, C_Wick]

plotcandle(open, high, low, close, color = Candle_C, wickcolor = Wick_C, bordercolor = Wick_C, editable = false)
