pine腳本寫(xiě)的指標(biāo)可以改成文華的嗎? [文華財(cái)經(jīng)]
作者:文華財(cái)經(jīng) 來(lái)源:cxh99.com 發(fā)布時(shí)間:2025年09月02日 點(diǎn)擊數(shù):
【收藏到本網(wǎng)的會(huì)員中心】
-
咨詢(xún)內(nèi)容:
pine腳本寫(xiě)的指標(biāo)可以改成文華的嗎? ?
//@version=4
study("Heikin Ashi Smoothed Buy Sell v4 ", overlay=true)EMAlength=input(55,"EMA LENGTH?")
src = ohlc4haOpen = 0.0haOpen := (src + nz(haOpen[1])) / 2haC = (ohlc4 + nz(haOpen) + max(high, nz(haOpen)) + min(low, nz(haOpen))) / 4EMA1 = ema(haC, EMAlength)EMA2 = ema(EMA1, EMAlength)EMA3 = ema(EMA2, EMAlength)TMA1 = 3 * EMA1 - 3 * EMA2 + EMA3EMA4 = ema(TMA1, EMAlength)EMA5 = ema(EMA4, EMAlength)EMA6 = ema(EMA5, EMAlength)TMA2 = 3 * EMA4 - 3 * EMA5 + EMA6IPEK = TMA1 - TMA2YASIN = TMA1 + IPEKEMA7 = ema(hlc3, EMAlength)EMA8 = ema(EMA7, EMAlength)EMA9 = ema(EMA8, EMAlength)TMA3 = 3 * EMA7 - 3 * EMA8 + EMA9EMA10 = ema(TMA3, EMAlength)EMA11 = ema(EMA10, EMAlength)EMA12 = ema(EMA11, EMAlength)TMA4 = 3 * EMA10 - 3 * EMA11 + EMA12IPEK1 = TMA3 - TMA4YASIN1 = TMA3 + IPEK1
mavi = YASIN1kirmizi = YASIN
longCond=mavi>kirmizi and mavi[1]<=kirmizi[1]shortCond=mavi<kirmizi and mavi[1]>=kirmizi[1]
trendState = kirmizi < mavi ? true : kirmizi > mavi ? false : naclosePlot = plot(kirmizi, title="Close Line", color=#009900, linewidth=10, style=plot.style_line, transp=90)openPlot = plot(mavi, title="Open Line", color=#CC0000, linewidth=10, style=plot.style_line, transp=90)closePlotU = plot(trendState ? kirmizi : na, transp=100, editable=false)openPlotU = plot(trendState ? mavi : na, transp=100, editable=false)closePlotD = plot(trendState ? na : kirmizi, transp=100, editable=false)openPlotD = plot(trendState ? na : mavi, transp=100, editable=false)fill(openPlotU, closePlotU, title="Up Trend Fill", color=#009900, transp=1)fill(openPlotD, closePlotD, title="Down Trend Fill", color=#CC0000, transp=1)
last_signal = 0long_final = longCond and (nz(last_signal[1]) == 0 or nz(last_signal[1]) == -1)short_final = shortCond and (nz(last_signal[1]) == 0 or nz(last_signal[1]) == 1)
alertcondition(long_final, title="buy alarm", message="buy signal!!!")alertcondition(short_final, title="sell alarm", message="sell signal!!!")last_signal := long_final ? 1 : short_final ? -1 : last_signal[1]
plotshape(long_final, style=shape.labelup, location=location.belowbar, color=color.blue, size=size.tiny, title="buy label", text="BUY", textcolor=color.white)plotshape(short_final, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.tiny, title="sell label", text="SELL", textcolor=color.white)?
?來(lái)源:程序化99
-
文華技術(shù)人員:
?提供下具體的平臺(tái)鏈接,我們結(jié)合分析看下。
?
?來(lái)源: www.weiqiv.net.cn
-
文華客服:
https://cn.tradingview.com/?這個(gè)平臺(tái)的指標(biāo)Heikin Ashi Smoothed Buy Sell v4 這個(gè)指標(biāo)
?
-
網(wǎng)友回復(fù):
?tv網(wǎng)站應(yīng)該受到某種限制,現(xiàn)在登錄不上了,沒(méi)法具體比對(duì)
另外1樓這個(gè)源碼:
haOpen := (src + nz(haOpen[1])) / 2
涉及變量引用自身,wh6 不支持的
有思路,想編寫(xiě)各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫(xiě)!
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容