做这说绝不重绘的枢轴点通道系统
需要把这个源码该处MT4格式// This source code is subject to the termsof the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © alexgrover//@version=4study("Extrapolated Pivot Connector",overlay=true,max_bars_back=5000)//----length = input(100)astart = input(1,"A-HighPosition"),aend = input(0,"B-High Position")bstart = input(1,"A-LowPosition"),bend = input(0,"B-Low Position")csrc = input(false,"Use Custom Source?"),src = input(close,"Custom Source")//----up =pivothigh(iff(csrc,src,high),length,length)dn =pivotlow(iff(csrc,src,low),length,length)//----n = bar_indexa1 = valuewhen(not na(up),n,astart)b1 = valuewhen(not na(dn),n,bstart)a2 = valuewhen(not na(up),n,aend)b2 = valuewhen(not na(dn),n,bend)//----line upper = line.new(n,up,n,up, extend=extend.right,color=color.blue,width=2)line lower = line.new(n,dn,n,dn, extend=extend.right,color=color.orange,width=2)line.delete(upper)line.delete(lower)//----label ahigh = label.new(n,up,"A-High", color=color.blue,style=label.style_labeldown,textcolor=color.white,size=size.small)label bhigh = label.new(n,up,"B-High", color=color.blue,style=label.style_labeldown,textcolor=color.white,size=size.small)label alow = label.new(n,dn,"A-Low", color=color.orange,style=label.style_labelup,textcolor=color.white,size=size.small)label blow = label.new(n,dn,"B-Low", color=color.orange,style=label.style_labelup,textcolor=color.white,size=size.small)label.delete(ahigh),label.delete(bhigh),label.delete(alow),label.delete(blow)//----plot(up,"PivotHigh's",color.blue,4,style=plot.style_circles,transp=0,offset=-length,join=true)plot(dn,"PivotLow's",color.orange,4,style=plot.style_circles,transp=0,offset=-length,join=true)
{:1_180:} 朋友,直接发个指标文件吧 这样的那样的发一堆,没一个结尾了的,也不知道怎么想的。 错的代码 谢谢 朋友们啊,我是想把这个源码(非MT4的),做成MT4指标啊。我不会,所以上传 找deepseek转换了,生成的MT4和截图不一样,有点像唐奇安通道
页:
[1]