有朋远来提到的”重心”公式改成通达信的
2020/7/14 18:39:27
公式编写说明:
先谢谢了!!!!重心:=AMOUNT/(V*100);两日重心:=(SUM(AMOUNT,2))/(SUM((V*100),2));三日重心:=(SUM(AMOUNT,3))/(SUM((V*100),3));四日重心:=(SUM(AMOUNT,4))/(SUM((V*100),4));上日重心:=ref(重心,1);上两日重心:=ref(两日重心,1);上三日重心:=ref(三日重心,1);上四日重心:=ref(四日重心,1);前日重心:=ref(重心,2);前两日重心:=ref(两日重心,2);前三日重心:=ref(三日重心,2);前四日重心:=ref(四日重心,2);DRAWTEXTREL(0,100,'■今日重心:'+重心),COLORGREEN;DRAWTEXTREL(85,100,'■两日重心:'+两日重心),COLOR0099ef;DRAWTEXTREL(0,150,'■三日重心:'+三日重心),COLORGREEN;DRAWTEXTREL(85,150,'■四日重心:'+四日重心),COLOR0099ef;DRAWTEXTREL(185,100,'■上日重心:'+上日重心),COLORGREEN;DRAWTEXTREL(270,100,'■上两日重心:'+上两日重心),COLOR0099ef;DRAWTEXTREL(185,150,'■上三日重心:'+上三日重心),COLORGREEN;DRAWTEXTREL(270,150,'■上四日重心:'+上四日重心),COLOR0099ef;DRAWTEXTREL(370,100,'■前日重心:'+前日重心),COLORGREEN;DRAWTEXTREL(455,100,'■前两日重心:'+前两日重心),COLOR0099ef;DRAWTEXTREL(370,150,'■前三日重心:'+前三日重心),COLORGREEN;DRAWTEXTREL(455,150,'■前四日重心:'+前四日重心),COLOR0099ef;
公式源码回答:
重心:=AMOUNT/(V*100);
两日重心:=(SUM(AMOUNT,2))/(SUM((V*100),2));
三日重心:=(SUM(AMOUNT,3))/(SUM((V*100),3));
四日重心:=(SUM(AMOUNT,4))/(SUM((V*100),4));
上日重心:=REF(重心,1);
上两日重心:=REF(两日重心,1);
上三日重心:=REF(三日重心,1);
上四日重心:=REF(四日重心,1);
前日重心:=REF(重心,2);
前两日重心:=REF(两日重心,2);
前三日重心:=REF(三日重心,2);
前四日重心:=REF(四日重心,2);
高点:=REFDATE(HHV(H,140),DATE);
DRAWTEXT(CURRBARSCOUNT-129,高点,'■今日重心:'),COLORGREEN;
DRAWNUMBER(CURRBARSCOUNT-121,高点,重心),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.98,'■两日重心:'),COLOR0099EF;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.98,两日重心),COLOR0099EF;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.96,'■三日重心:'),COLORGREEN;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.96,三日重心),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.94,'■四日重心:'),COLOR0099EF;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.94,四日重心),COLOR0099EF;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.92,'■上日重心:'),COLORGREEN;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.92,上日重心),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.90,'上两日重心:'),COLOR0099EF;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.90,上两日重心),COLOR0099EF;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.88,'上三日重心:'),COLORGREEN;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.88,上三日重心),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.86,'上四日重心:'),COLOR0099EF;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.86,上四日重心),COLOR0099EF;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.84,'前日重心:'),COLORGREEN;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.84,前日重心),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.82,'前两日重心:'),COLOR0099EF;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.82,前两日重心),COLOR0099EF;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.80,'前三日重心:'),COLORGREEN;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.80,前三日重心),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT-129,高点*0.78,'前四日重心:'),COLOR0099EF;
DRAWNUMBER(CURRBARSCOUNT-121,高点*0.78,前四日重心),COLOR0099EF;
投股 票网 www.tou1 8.cn
股市公式下载推荐