請問XS script 是否有函式可自行設定陰陽線開盤/收盤/最高/最低價 ?
例如在其他軟體所提供的函式:
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, “", barcolor, styleCandle );
目前在XS只知道有Plot, 只能先利用plot 劃出克難的陰陽線 (寫法如下)
Price=haC-haO;
if Price>=0 then
begin
plot2(haMax,"上漲高點");
plot3(haMin,"上漲低點");
plot4(haC,"上漲收盤");
plot5(haO,"上漲開盤");
end;
if Price<0 then
begin
plot7(haMax,"下跌高點");
plot8(haMin,"下跌低點");
plot9(haC,"下跌收盤");
plot10(haO,"下跌開盤");
end;
不知是否有其他較好的建議?謝謝
3 評論