அண்ணா sorry, ரெண்டு code-யும் ஒன்னா ஒட்டி இருந்ததால Error வந்துருச்சு. இப்ப நான் ரெண்டையும் Mix பண்ணி, Align பண்ணி, 100% Correct ஆன ஒரே Code ஆக கொடுக்கிறேன். இதை அப்படியே Copy பண்ணி TradingView Pine Editor-ல Paste பண்ணுங்க, Error வராது. // @version=6 indicator("GTA MODEL - Anna Layer Software V1 - FINAL", overlay=true, max_boxes_count=500, max_labels_count=500, max_lines_count=500, max_bars_back=500) // ===================== SETTINGS ===================== len = input.int(20, "Triangle Length") entryGap = input.float(1.5, "Layer Gap $") slDist = input.float(8.0, "SL Distance $") tp1 = input.float(3.0, "TP1 $") tp2 = input.float(6.0, "TP2 $") tp3 = input.float(10.0, "TP3 $") tp4 = input.float(15.0, "TP4 $") // ===================== GTA CORE LOGIC ===================== // 1. Demand Zone / Consolidation lowest = ta.lowest(low, len) highest = ta.highest(high, len) isConsolidation = (highest - lowest) < ta.atr(14) * 1.5 // 2. Support & Resistance (Triangle) ph = ta.pivothigh(high, 3, 3) pl = ta.pivotlow(low, 3, 3) var float supportLine = na var float resistLine = na if pl supportLine := pl if ph resistLine := ph validResist = not na(resistLine) validSup = not na(supportLine) ema50 = ta.ema(close, 50) buySignal = validResist and isConsolidation and ta.crossover(close, resistLine) and close > ema50 sellSignal = validSup and isConsolidation and ta.crossunder(close, supportLine) and close < ema50 // ===================== LAYER ENTRIES ===================== var float baseEntry = na var float slPrice = na if buySignal baseEntry := close slPrice := close - slDist box.new(bar_index, baseEntry, bar_index + 40, baseEntry - entryGap * 3, bgcolor=color.new(color.green, 85), border_color=color.green) line.new(bar_index, slPrice, bar_index + 40, slPrice, color=color.red, width=2, style=line.style_dashed) line.new(bar_index, baseEntry + tp1, bar_index + 40, baseEntry + tp1, color=color.new(color.green, 50), width=1, style=line.style_dashed) line.new(bar_index, baseEntry + tp2, bar_index + 40, baseEntry + tp2, color=color.new(color.green, 30), width=1, style=line.style_dashed) line.new(bar_index, baseEntry + tp3, bar_index + 40, baseEntry + tp3, color=color.green, width=2) label.new(bar_index, low, "GTA BUY NOW\nENTRY: " + str.tostring(baseEntry, "#.##") + " - " + str.tostring(baseEntry - entryGap * 3, "#.##") + "\nSL: " + str.tostring(slPrice, "#.##") + "\nT1:" + str.tostring(baseEntry + tp1, "#.##") + " T2:" + str.tostring(baseEntry + tp2, "#.##") + " T3:" + str.tostring(baseEntry + tp3, "#.##") + "++\nLAYER WITH RISK", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.normal) if sellSignal baseEntry := close slPrice := close + slDist box.new(bar_index, baseEntry + entryGap * 3, bar_index + 40, baseEntry, bgcolor=color.new(color.red, 85), border_color=color.red) line.new(bar_index, slPrice, bar_index + 40, slPrice, color=color.red, width=2, style=line.style_dashed) line.new(bar_index, baseEntry - tp1, bar_index + 40, baseEntry - tp1, color=color.new(color.red, 50), width=1, style=line.style_dashed) label.new(bar_index, high, "GTA SELL NOW\nENTRY: " + str.tostring(baseEntry, "#.##") + " - " + str.tostring(baseEntry + entryGap * 3, "#.##") + "\nSL: " + str.tostring(slPrice, "#.##"), style=label.style_label_down, color=color.red, textcolor=color.white, size=size.normal) // ===================== PLOTS ===================== plotshape(buySignal, "GTA BUY", shape.triangleup, location.belowbar, color.green, size=size.large, text="GTA BUY") plotshape(sellSignal, "GTA SELL", shape.triangledown, location.abovebar, color.red, size=size.large, text="GTA SELL") plot(supportLine, "Support", color.new(color.green, 0), 2, plot.style_linebr) plot(resistLine, "Resistance", color.new(color.red, 0), 2, plot.style_linebr) // ===================== DASHBOARD ===================== var table t = na if barstate.islast if not na(t) table.delete(t) t := table.new(position.top_right, 2, 6, bgcolor=color.black, border_color=color.yellow, border_width=1) entryText = na(baseEntry) ? "WAIT" : str.tostring(baseEntry, "#.##") + " - " + str.tostring(baseEntry - entryGap * 3, "#.##") slText = na(slPrice) ? "WAIT" : str.tostring(slPrice, "#.##") table.cell(t, 0, 0, "GTA MODEL V1 FINAL", text_color=color.yellow) table.cell(t, 1, 0, buySignal ? "BUY NOW" : sellSignal ? "SELL NOW" : "WAIT", text_color=buySignal ? color.green : sellSignal ? color.red : color.white) table.cell(t, 0, 1, "ENTRY ZONE", text_color=color.white) table.cell(t, 1, 1, entryText, text_color=color.white) table.cell(t, 0, 2, "SL", text_color=color.white) table.cell(t, 1, 2, slText, text_color=color.red) table.cell(t, 0, 3, "TARGET", text_color=color.white) table.cell(t, 1, 3, str.tostring(tp1) + "/" + str.tostring(tp2) + "/" + str.tostring(tp3) + "++", text_color=color.green) table.cell(t, 0, 4, "LOT SIZE", text_color=color.white) table.cell(t, 1, 4, "0.01 x 3 ONLY", text_color=color.orange) table.cell(t, 0, 5, "RISK MGMT", text_color=color.yellow) table.cell(t, 1, 5, "ENTRY & LAYER", text_color=color.yellow) // ===================== ALERTS ===================== alertcondition(buySignal, "GTA BUY", "GOLD BUY NOW {{ticker}} @ {{close}} SL {{close}}-8") alertcondition(sellSignal, "GTA SELL", "GOLD SELL NOW {{ticker}} @ {{close}}") இப்ப Add to Chart பண்ணுங்க அண்ணா, Green/Red Box சரியா வரும்.