以下是我的程式碼? 目前是在指標的最後一天, 才會劃四條橫線。
請問可以在游標指定的查價日期就顯示這四條橫線嗎? 而不是只有最後一天。
謝謝!
variable:CDP(0),AH(0),AL(0),NH(0),NL(0);
CDP=(High[1] + Low[1] + Close[1] * 2) /4;
AH=CDP + (High[1] - Low[1]);
AL=CDP - (High[1] - Low[1]);
NH=2*CDP - Low[1];
NL=2*CDP - High[1];
plot1(CDP,"CDP");
plot2(AH,"追買點");
plot3(NH,"賣出點");
plot4(NL,"買進點");
plot5(AL,"追賣點");
if islastbar=true then
begin
plot7(AH,"追買點");
plot8(NH,"賣出點");
plot9(NL,"買進點");
plot10(AL,"追賣點");
end;
1 評論