公式1:
hh:ref(hhv(h,30),1);
ll:ref(llv(l,30),1);
然后就用stkindi引用公式1里面3分钟周期下的hh和ll值
谢谢您老,我的构思是在30秒图表上,突破30周期后做多,不设止盈,只以跌破3分钟最低价止损
//中间变量
h30:=ref(hhv(h,30),1);
l30:=REF(llv(l,30),1);
short:=l<l30 and time>011500 and time<045000;
if short then
begin
sell(HOLDING>0,0, LIMITR,l30);
buyshort(holding=0,ss,LIMITR,l30);
往下怎么写引用跌破3分钟最低价平多开空? 麻烦您了
能帮我写下去吗
l3:=callstock(stklabel,vtlow,17);
if cross(l3,close) then begin
sell(1,0,market);
buyshort(holding=0,1,market);
end
公式1:
hh:ref(hhv(h,30),1);
ll:ref(llv(l,30),1);
然后就用stkindi引用公式1里面3分钟周期下的hh和ll值
就如前面写的,用stkindi引用公式1里面3分钟周期下的ll