if day()<>ref(day(),1) or barstatus<>0 then
d:asset-1000000,noaxis,colorgreen;//按日
if weekday()<ref(weekday(),1) or barstatus<>0 then
w:asset-1000000,noaxis,coloryellow;//按周
if month()<>ref(month(),1) or barstatus<>0 then
m:asset-1000000,noaxis,colorred;//按月
if holding<>ref(holding,1) or barstatus<>0 then
t:asset-1000000,noaxis,colorcyan;//持仓变
e:asset-1000000,linethick0,colorwhite;//连续
这段代码放在程序后面,用来显示资金变化曲线的,现在显示不正常,是怎么回事
这哦肯定是你的数据量不同 交易的的位置不同 可能导致资金的变化
另外在指标里的资金设置 你看看是否改变了
d:asset,noaxis;
就行了,你干嘛写那么麻烦啊
d:asset,noaxis;
简化成这两句,仍不执行,2.3版本是正常的,资金线显示为连续折线,每天变动一次
d:asset,noaxis;
你把这两句贴在你的程序后面试试就看到了,只贴第二句可正常显示,但加了第一句就不显示资金线了
if day()<>ref(day(),1) then
d:asset,noaxis; |
这样当然是没有连线了,因为数据之间不连续
你要连续折线的话,加上一句代码,就可以了
variable:d=1000000;
if day()<>ref(day(),1) then
d:asset,noaxis; |
你是在日线上试的吧?
在日内周期比如30分钟图上, if day()<>ref(day(),1) then d:asset,noaxis; 这句公式,原版本是能够显示出连续折线的,而2.33版显不出