Simple Strat Numbers
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TraderCreatorPro

//@version=5
indicator("Simple Strat Numbers", "Strat Numbers", true)
import ZenAndTheArtOfTrading/ZenLibrary/2 as zen

//Input Groups
var djs = "Strat Colors"
var stratnumbers = "Strat Numbers"
//User Imputs
Ones = input.bool(true, "1's marked", inline = stratnumbers, group = stratnumbers)
Twos = input.bool(true, "2's marked", inline = stratnumbers, group = stratnumbers)
Threes = input.bool(true, "3's marked", inline = stratnumbers, group = stratnumbers)

inside = input.color(color.white, "Ones Color (Inside Bars)", inline = djs)
outside = input.color(color.yellow, "Threes Color (Outside Bar)", inline = djs)
twoup = input.color(color.fuchsia, "Two up red candle", inline = djs)
twodown = input.color(color.maroon, "Two down Green candle", inline = djs)
up = input.color(color.green, "Two up and Green Candle", inline = djs)
down = input.color(color.red, "Two Down and Red Candle", inline = djs)

//Add Strat numbers to the chart
plotchar(Ones? high<high[1] and low > low[1]: na, "Inside Bars", char = '1',location = location.belowbar, color = inside)
plotchar(Threes? high>high[1] and low<low[1]:na, "Outside Bars", char = "3", location = location.belowbar, color = outside)
plotchar(Twos? high> high [1] and low >low[1] or low<low[1] and high<high[1] :na, "Up and Down Bars", 
     char = "2", location = location.belowbar, color = (high> high[1] and low>low[1] and close<open)? twoup: (high< high[1] and low<low[1] and close>open)? twodown: high> high[1] and low>low[1]? up : down)
