金字塔后台公式问题
以下公式在日内1分钟得到“开多仓”后达到的最高价"hhv_holding",用于保本操作。图表方式工作正常
variable:hhv_holding=0;
if time=090100 then hhv_holding:=0;
if holding<=0 then hhv_holding:=0;
if (high>hhv_holding and holding>0) then hhv_holding:=high;
debugout('hhv_holding_=%.0f',hhv_holding);
当在后台工作时,把“holding”用“tholding”代替后"hhv_holding"与上结果不同,仅是当前最后1分钟高点价,而非开多后的最高价
if time=090100 then hhv_holding:=0;
if tholding<=0 then hhv_holding:=0;
if (high>hhv_holding and tholding>0) then hhv_holding:=high;
debugout('hhv_holding_=%.0f',hhv_holding);
以至于无法将图表公式移植到后台。请各位高手指点是何问题,如何解决,谢谢!!
我也遇到同样问题,从图表移植后台,最高价不是图表上的最高价