九毛八公式指标
源码如下,K一浪a,K二浪b,K三浪c,P一浪a,P二浪b,P三浪c,不要输出这六个的价格,请输出这六个的所在K线的时间序列 x1:=TROUGH(4,p,1);//BARPOS x8:=TROUGHBARS(4,p,1)=0; x11:=TROUGHBARS(4,p,参a); x18:=TROUGHBARS(4,p,参b); x13:=TROUGHBARS(4,p,参c); x3:=PEAK(4,p,1); x31:=PEAKBARS(4,p,参a); x38:=PEAKBARS(4,p,参b); x33:=PEAKBARS(4,p,参c); x5:=PEAKBARS(4,p,1)=0; 光标位置:=SYSPARAM(1),linethick0; cldis:=x13[SYSPARAM(1)],linethick0; chdis:=x33[SYSPARAM(1)],linethick0; tcl:=光标位置-cldis,linethick0; tch:=光标位置-chdis,linethick0; bldis:=x18[SYSPARAM(1)],linethick0; bhdis:=x38[SYSPARAM(1)],linethick0; tbl:=光标位置-bldis,linethick0; tbh:=光标位置-bhdis,linethick0; aldis:=x11[SYSPARAM(1)],linethick0; ahdis:=x31[SYSPARAM(1)],linethick0; tal:=光标位置-aldis,linethick0; tah:=光标位置-ahdis,linethick0; K一浪a:=IF(tcl>tch,tal+A偏移,tah+A偏移),linethick0; K二浪b:=IF(tcl>tch,tbh+B偏移,tbl+B偏移),linethick0; K三浪c:=IF(tcl>tch,tcl+C偏移,tch+C偏移),linethick0; PH:=H; PL:=L; P一浪a:IF(tcl>tch,PL[tal+A偏移],PH[tah+A偏移]),LINETHICK0; P二浪b:IF(tcl>tch,PH[tbh+B偏移],PL[tbl+B偏移]),LINETHICK0; P三浪c:IF(tcl>tch,PL[tcl+C偏移],PH[tch+C偏移]),LINETHICK0;
公式模块:
回:
那六个不都是价格, K开头的三个是时间序列,P开头的三个是价格. 想看时间序列只需将K开头那三行的等号去掉: K一浪a:IF(tcl>tch,tal+A偏移,tah+A偏移),linethick0; K二浪b:IF(tcl>tch,tbh+B偏移,tbl+B偏移),linethick0; K三浪c:IF(tcl>tch,tcl+C偏移,tch+C偏移),linethick0;