//@version=6
indicator(title="Six AI Algo", shorttitle="Six AI Algo", overlay=false)

// Input variables for current timeframe
tf_c      = input.bool(title="🔹 Current Timeframe 🔹", defval=true)
ma_type_c = input.string(title="Type of MA=", defval="SMA", options=["RMA", "SMA", "EMA", "WMA", "VWMA", "SMMA", "HullMA", "TMA", "DEMA", "TEMA"])
ma_len_c  = input.int(defval=200, title="MA Length=", minval=1)
ma_src_c  = input.source(close, title="MA Source=")
ma_dsl_c  = input.float(defval=0.89, title="Depth Search Level", minval=0.0, step=0.01)
nopbtf_c  = input.int(defval=200, title="Number Of Previous Bars To Find Depth", minval=1)

// Input variables for timeframe 1
tf_1      = input.bool(title="🔹 Timeframe 1 🔹", defval=true)
ma_type_1 = input.string(title="Type of MA Timeframe 1", defval="SMA", options=["RMA", "SMA", "EMA", "WMA", "VWMA", "SMMA", "HullMA", "TMA", "DEMA", "TEMA"])
ma_len_1  = input.int(defval=200, title="MA Length Timeframe 1", minval=1)
ma_src_1  = input.source(close, title="MA Source Timeframe 1")
res1      = input.timeframe("2", title="Timeframe 1")
ma_dsl_1  = input.float(defval=0.89, title="Depth Search Level", minval=0.0, step=0.01)
nopbtf_1  = input.int(defval=200, title="Number Of Previous Bars To Find Depth", minval=1)

// Constants - Reduced transparency to 60 for brighter colors
var color red_color = color.new(#ff0000, 0)    // Brighter red
var color green_color = color.new(#00ff00, 0)  // Brighter green (#00FF00 is more vibrant than #32CD32)

// Rest of the code remains the same...
method calc_ma(string type, float src, int length) =>
    float sma = ta.sma(src, length)
    float ema = ta.ema(src, length)
    float rma = ta.rma(src, length)
    float wma = ta.wma(src, length)
    float vwma = ta.vwma(src, length)
    
    float smma = na(sma[1]) ? sma : (sma[1] * (length - 1) + src) / length
    float hullma = ta.wma(2 * ta.wma(src, length / 2) - ta.wma(src, length), math.round(math.sqrt(float(length))))
    float tma = ta.sma(sma, length)
    
    float dema_ema = ema
    float dema = 2 * dema_ema - ta.ema(dema_ema, length)
    
    float tema_ema1 = ema
    float tema_ema2 = ta.ema(tema_ema1, length)
    float tema_ema3 = ta.ema(tema_ema2, length)
    float tema = 3 * (tema_ema1 - tema_ema2) + tema_ema3
    
    result = switch type
        "RMA" => rma
        "SMA" => sma
        "EMA" => ema
        "WMA" => wma
        "VWMA" => vwma
        "SMMA" => smma
        "HullMA" => hullma
        "TMA" => tma
        "DEMA" => dema
        "TEMA" => tema
        => sma
    result

// Current timeframe calculations
ma_current = calc_ma(ma_type_c, ma_src_c, ma_len_c)
dist_current = math.abs(ma_src_c - ma_current)
niv_prof_current = ta.highest(dist_current, nopbtf_c) * ma_dsl_c

// Timeframe 1 calculations
ma_tf_1 = request.security(syminfo.tickerid, res1, calc_ma(ma_type_1, ma_src_1, ma_len_1))
src_tf_1 = request.security(syminfo.tickerid, res1, ma_src_1)
dist_tf_1 = math.abs(src_tf_1 - ma_tf_1)
niv_prof_tf_1 = ta.highest(dist_tf_1, nopbtf_1) * ma_dsl_1

// Color calculations
method get_color(float dist, float niv_prof, float src, float ma) =>
    color col = na
    if dist >= niv_prof
        if src > ma
            col := red_color
        if src < ma
            col := green_color
    col

col_tf_1 = get_color(dist_tf_1, niv_prof_tf_1, src_tf_1, ma_tf_1)
bg_color = get_color(dist_current, niv_prof_current, ma_src_c, ma_current)

// Time frame string conversion
method get_timeframe_string(string res) =>
    result = switch res
        "1" => "m1⌚"
        "2" => "m2⌚"
        "3" => "m3⌚"
        "5" => "m5⌚"
        "15" => "m15⌚"
        "30" => "m30⌚"
        "60" => "H1⌚"
        "120" => "H2⌚"
        "180" => "H3⌚"
        "240" => "H4⌚"
        "D" => "1D⌚"
        "45" => "m45⌚"
        "W" => "1W⌚"
        "M" => "1M⌚"
        => ""
    result

// Plotting
hline(0, color=color.new(color.black, 20), linewidth=1)
bgcolor(bg_color)
plotshape(0, style=shape.square, location=location.absolute, color=col_tf_1, size=size.tiny)

if barstate.islast
    label.new(bar_index, 0, text=get_timeframe_string(res1), color=color.new(color.white, 100), textcolor=color.black, style=label.style_none, yloc=yloc.price, xloc=xloc.bar_index, size=size.normal)
    line.new(bar_index, -0.5, bar_index, 6.5, xloc=xloc.bar_index, extend=extend.none, color=color.new(color.blue, 75), width=1)




This is my tradingview indicator it shows green sign for buy and red sign for sell 
make a version 6 trading strategy from this 

BUY when  1) Indicator shows greenn line or box  2) you get a green candle closure .. then open long with a stoploss of recent low and take profit of RR3  and vice versa for shorts 

give me options 
1) to change how much $ i want to risk on trade 
2) to change RR