这个公式是仿造 通达信的系统自带公式吸拉派落 XLPL,跟系统公式完全一样了。
含未来函数(介意勿下载)
与系统源码完全一样。
主要的是一段不含未来函数的源码,但显示的是断续的曲线,再加上一段含未来函数的源码就成了完整曲线。
并且和通达信系统加密的XLPL完全一致。看来通达信XLPL就是含未来函数的,由于加了密,系统并未提示“用到未来函数”。
要加的源码如下:
{XLPL3}
EME13:=(EMA(EMA(C,13),13)/REF(EMA(EMA(C,13),13),1)-1)*1000;
吸:IF(EME13< 0 AND EME13> REF(EME13,1),EME13,DRAWNULL),NODRAW,COLORLIRED,LINETHICK3;
拉:IF(EME13>=0 AND EME13> REF(EME13,1),EME13,DRAWNULL),NODRAW,COLORRED,LINETHICK3;
派:IF(EME13>=0 AND EME13<=REF(EME13,1),EME13,DRAWNULL),NODRAW,COLORGREEN,LINETHICK3;
落:IF(EME13< 0 AND EME13<=REF(EME13,1),EME13,DRAWNULL),NODRAW,COLORWHITE,LINETHICK3;
NOTEXT吸:IF(BACKSET(EME13< 0 AND EME13> REF(EME13,1),2),EME13,DRAWNULL),COLORLIRED,LINETHICK3;
NOTEXT拉:IF(BACKSET(EME13>=0 AND EME13> REF(EME13,1),2),EME13,DRAWNULL),COLORRED,LINETHICK3;
NOTEXT派:IF(BACKSET(EME13>=0 AND EME13<=REF(EME13,1),2),EME13,DRAWNULL),COLORGREEN,LINETHICK3;
NOTEXT落:IF(BACKSET(EME13< 0 AND EME13<=REF(EME13,1),2),EME13,DRAWNULL),COLORWHITE,LINETHICK3;