許教授: 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;
1 評論