سلام لطفا یک اندیکاتور با زبان pinescript بنویس که انرا در تریدینگ ویو اجرا کنم این…
- User
سلام لطفا یک اندیکاتور با زبان pinescript بنویس که انرا در تریدینگ ویو اجرا کنم این اندیکاتور را با سبک اسمارت مانی به وجود بیاور یعنی مناطق نقدینگی را با خط مشخص کند و سطوح مصرف نشده را با نقطه چین مشخص کند
- Assistant
نوشتن یک اندیکاتور پیچیده با سبک اسمارت مانی و مشخص کردن مناطق نقدینگی و سطوح مصرف نشده ممکن است نیاز به تحلیل پیچیدهتری داشته باشد. اما میتوانم به شما یک پایه ساده از اندیکاتور نشان دهم که روی آن میتوانید بیشتر کار کنید.
این اسکریپت، با استفاده از پایناسکریپت (Pine Script) در تریدینگ ویو (TradingView)، خطوط سادهای را برای مناطق نقدینگی و نقاط چین برای سطوح مصرف نشده ترسیم میکند:
//@version=5 indicator("Liquidity Zones", overlay = true) // Input for setting the lookback period for high and low prices lookbackPeriod = input.int(14, title="Lookback Period") // Identify high and low prices over the lookback period highPrices = ta.highest(high, lookbackPeriod) lowPrices = ta.lowest(low, lookbackPeriod) // Identify liquidity zones by comparing current price with identified high and low prices liquidityZoneHigh = close >= highPrices liquidityZoneLow = close <= lowPrices // Plot Liquidity Zones plotshape(series = liquidityZoneHigh, location = location.abovebar, color = color.red, style = shape.labelup, text = "Liquidity Zone High") plotshape(series = liquidityZoneLow, location = location.belowbar, color = color.green, style = shape.labeldown, text = "Liquidity Zone Low") // Plot Unused Levels as Dotted Lines lineColor = color.new(color.blue, 50) hlinePrice = highPrices llinePrice = lowPrices hline = line.new(x1=bar_index[lookbackPeriod], y1=hlinePrice, x2=bar_index, y2=hlinePrice, width=1, color=lineColor, style=line.style_dotted) lline = line.new(x1=bar_index[lookbackPeriod], y1=llinePrice, x2=bar_index, y2=llinePrice, width=1, color=lineColor, style=line.style_dotted) - User
سلام به این کد بخشی را اضافه کن که سقف و کف قبلی در تایم فریم چهار ساعت را با رنگ قرمز بنویسدhigh 4 H, low 4 H و سقف و کف قبلی در تایم فریم یک ساعت را با رنگ ابی بنویسد high 1H , low 1H اینکار را برای تایم فریم 15 دقیقه هم انجام بدهد و بخشی به این کد اضافه کن که اخرین FVG مصرف نشده در تایم فریم چهار ساعت را برایم با رنگ سیاه مشخص کند
- Assistant
- User
این کد برایم این اررور را میدهد Could not find function or function reference 'avg'
- Assistant