100万,每10万1手
意思是最开始开10手,然后每多10万就多开1手?
hhv(asset,exitbars+1)
是的,
variable:n=0;
s1:=floor(asset/100000);
s2:=floor(asset/200000);
if barpos=1 then n:=s1;
if asset<=hhv(asset,exitbars+1)*0.9 then n:=s2;
if asset>=hhv(asset,exitbars+1) then n:=s1;
n就是你要求的手数了