extgbdata,extgbdataset如果 是在逐k线模式下,由于金字塔的运算模式,会将历史的k线每根都会算一遍过去,那么这中间的过程,extgbdataset更改的值在每根k线上都 会发生作用
比如总共有十根k线,初始值是0
if barpos=4 then extgbdataset('barpos',4);
if extgbdata('barpos')>=4 then buy .....
if barpos=10 then extgbdataset('barpos',10);
那么在新产生一根k线后,extgbdata('barpos')在这11根k线是否仍是的值依次 10 10 10 4 4 4 4 4 4 10
原本的值是为:0 0 0 4 4 4 4 4 4 10
逐k线原理是每根k线都计算一遍公式,不是按每根k线的值来赋值给公式,这两个是不一样的
这个函数只有当前值,没有历史值,这个只会记录最后产生的值,