請問小編 我寫一指標找最高價與最高量 並找出近兩根最高價標示
條件如下:(註:圖示成本標示紅色線 最高價標示為"綠色閃電"符號,最高量標示黃色圈圈)
如圖一,問題如下:
6/22 09:20分那根5分K為26.2 符合條件 但為何沒幫我標示出最高價的綠色閃電?

如圖二,問題如下:
8/23 09:30那根5分k 為收黑k 符合條件 為何沒標示出成本紅線?

再麻煩小編 謝謝~~
//$$$$$$$$$$$$$$$程式碼如下$$$$$$$$$$$$$$$$$$
var:_COST(0);
if date <> date[1] then begin
value1 = 0;
value2 = 0;
value3 = 0;
_cost=0;
end;
if time > 090500 then begin
if H > value2 then value2=H;
if V > value1 then value1=V;
end;
condition1 = V = value1 and H = value2;
condition2 = value2=highest(H,2);
if condition1 then begin
value3=1;
end;
if time > 091000 and time < 114500 and value3 = 1 and condition2 and C < O then begin
_COST=C;
end;
if condition1 then plot1(H,"價高");
plot2(_COST,"成本");
plot3(value1,"量高");
2 評論