Technical analysis by anas6424 about Symbol PAXG on 3/28/2025

//version=5 indicator("سیگنالهای خرید/فروش با TP1 و TP2", overlay=true) // تنظیمات اندیکاتور length = input(14, title="طول") src = close // محاسبه میانگین متحرک و نوساننما ema_fast = ta.ema(src, length) ema_slow = ta.ema(src, length * 2) // سیگنالهای خرید و فروش buySignal = ta.crossover(ema_fast, ema_slow) sellSignal = ta.crossunder(ema_fast, ema_slow) // تعیین اهداف سود (TP) tp1 = close + (close * 0.01) // هدف 1% tp2 = close + (close * 0.02) // هدف 2% // رسم سیگنالها روی نمودار plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="سیگنال خرید") plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="سیگنال فروش") // نمایش TP1 و TP2 label = "TP1: " + str.tostring(tp1) + "\nTP2: " + str.tostring(tp2) label_pos = buySignal ? close + 10 : na label_new = label_pos ? label : na label1 = label_new != na ? label.new(x=time, y=label_pos, text=label, color=color.blue, textcolor=color.white, size=size.small) : na