后台交易中,开多仓后,每上升M点后回撤M1点平多仓,开空仓后,每下降M点后回撤M1点平空仓,如何描述
后台交易中,开多仓后的最高价,开空后的最低价的表达式,如何描述
其实和图表差不多,用extgbdata来代替variable
比如
if islastbar then begin
if 下单条件 then begin
tbuy;
extgbdataset('hh',h);
end
if h>extgbdata('hh') then extgbdataset('hh',h);
end
我是菜鸟,能否把我描述的内容写全,并给写一下解释,我看不明白
if islastbar then begin
if 下单条件 then begin
tbuy;
extgbdataset('hh',h);
extgbdataset('hh2',h);
end
if h>extgbdata('hh') then extgbdataset('hh',h);
if extgbdata('hh')-extgbdata('hh2')>=m and extgbdata('hh')-c>=m1 then tsell;
end
上面的是上升M点后下降M1点平仓是对的,但上升了2xM点后回落M1点平仓就没表达出来,如合表达谢谢
上面的是上升M点后下降M1点平仓是对的,但上升了2xM点后回落M1点平仓就没表达出来,如合表达谢谢 |