ویرایشگر پاین
hoseinnasimi67

مشخصات معامله
قیمت در زمان انتشار:
۰.۱۴۸۶
توضیحات
//@version=5 indicator("سیستم معاملاتی 369 تسلا", overlay=true) // --- پارامترها --- mult = input.float(1.5, title="ضریب حجم", minval=0.1) showLevels = input.bool(true, title="نمایش خطوط مضرب 9") // --- بررسی سه کندل صعودی متوالی --- candle1_up = close > open candle2_up = close > open candle3_up = close > open three_up = candle1_up and candle2_up and candle3_up // --- شرط حجم --- vol_avg6 = ta.sma(volume, 6) vol_check = volume >= mult * vol_avg6 // --- شرط بسته شدن کندل سوم بالاتر از کندل اول --- price_check = close > close // --- سیگنال خرید --- buy_signal = three_up and vol_check and price_check plotshape(buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", size=size.small) // --- EMA 9 و 36 برای تشخیص روند --- ema9 = ta.ema(close, 9) ema36 = ta.ema(close, 36) plot(ema9, color=color.orange, title="EMA 9") plot(ema36, color=color.blue, title="EMA 36") // --- رسم خطوط مضرب 9 --- var line levelLines = array.new_line() if showLevels and bar_index == 1 for i = 1 to 100 price = i * 9 l = line.new(x1=bar_index, y1=price, x2=bar_index + 100, y2=price, color=color.gray, style=line.style_dotted) array.push(levelLines, l)