//
// 量與前一根bar的量大於2倍時計數+1
// 但顯示計數與用眼睛看plot 計數不合
//
// 用 BVcnt +=1 未能累加
// 用 countif 與用眼睛看plot 計數不合
// 累加數應越來越大,但有時變小.
//
// 用日線, 30分鐘, 10分鐘線都有同樣結果
//
input: len(55), // 區間
Vtms(2); // 量的倍數
var: BVcnt(0); //大量bar的計數
BVcnt = 0;
if V[1]<>0 then value1 = V/V[1];
condition1 = value1 > Vtms;
value2 = countIf(condition1,len);
if condition1 then
begin
plot1(C,"BigV");
BVcnt += 1;
plot2(BVcnt,"BVcnt");
end;
plot3(value2,"Cntif");
//---------version change-------------
//
// Start 2023/08/01
1 評論