盤中最高點最大量

  •   37 
  • 最後發表   小梯子  2 週前
小梯子 發文於   2026/06/03

許教授: 5分K 站上均價進場, 進場後, 來到盤中最高點同時量是盤中最大量出場, 

請問要如何修改

 

var: Avg(0);

Avg=GetField("均價");

 

value1=getBarOffset(date,090000);

condition1 = GetField("最高價", "D") and v > highest(v[1],value1);

 

var:intrabarpersist bcostA(0);

 

if close cross over Avg 

then begin plot1(low,"站上均價進場");

           bcostA = close;

end

else if bcostA <> 0 then begin                                 

                         if  condition1

then begin plot2(close,"出場");

                         bcostA = 0; end; end;

 

虎科大許教授 發文於   2026/06/03

if barFreq <> "Min" or barinterval <> 5 then raiseRunTimeError("限用5分鐘");
var: Avg(0);
var:intrabarpersist bcostA(0);
Avg = GetField("均價");
value1 = getBarOffset(date,090000);
condition1 = c = GetField("最高價", "D") and v > highest(v[1],value1);
if close cross over Avg then 
    begin 
        plot1(low,"站上均價進場");
        bcostA = close;
    end;
if bcostA <> 0 then 
    if condition1 then 
        begin 
            plot2(close,"出場");
            bcostA = 0; 
        end;

發表回覆
Close