6评论

9收藏

做这说绝不重绘的枢轴点通道系统

 

avatar wufuhehe | 1394 人阅读 | 6 人评论 | 2024-06-28

需要把这个源码该处MT4格式


// This source code is subject to the termsof the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © alexgrover
//@version=4
study("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_index
a1 = 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[n - a1 +length],up[n - a1],n[n - a2 + length],up[n - a2],
extend=extend.right,color=color.blue,width=2)
line lower = line.new(n[n - b1 +length],dn[n - b1],n[n - b2 + length],dn[n - b2],
extend=extend.right,color=color.orange,width=2)
line.delete(upper[1])
line.delete(lower[1])
//----
label ahigh = label.new(n[n - a1 +length],up[n - a1],"A-High",
color=color.blue,style=label.style_labeldown,textcolor=color.white,size=size.small)
label bhigh = label.new(n[n - a2 +length],up[n - a2],"B-High",
color=color.blue,style=label.style_labeldown,textcolor=color.white,size=size.small)
label alow = label.new(n[n - b1 +length],dn[n - b1],"A-Low",
color=color.orange,style=label.style_labelup,textcolor=color.white,size=size.small)
label blow = label.new(n[n - b2 +length],dn[n - b2],"B-Low",
color=color.orange,style=label.style_labelup,textcolor=color.white,size=size.small)
label.delete(ahigh[1]),label.delete(bhigh[1]),label.delete(alow[1]),label.delete(blow[1])
//----
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)


00.png
""
还没有人打赏,支持一下

评论|共 6 个

琳妈

发表于 2024-6-28 22:25:25 | 显示全部楼层

奴力力

发表于 2024-6-28 22:40:43 来自手机 | 显示全部楼层

朋友,直接发个指标文件吧

qq_qzuser_sM4

发表于 2024-6-30 23:20:48 来自手机 | 显示全部楼层

这样的那样的发一堆,没一个结尾了的,也不知道怎么想的。

macus007

发表于 2024-11-14 22:04:27 | 显示全部楼层

错的代码

上帝之子

发表于 2024-11-22 14:40:56 | 显示全部楼层

谢谢

wufuhehe

发表于 3 小时前 | 显示全部楼层

朋友们啊,我是想把这个源码(非MT4的),做成MT4指标啊。我不会,所以上传

您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则