空:O<=(ref(c,1));
我就输入了这段代码,然后应用于图表显示,为什么K线压缩看不清。如何让K线正常显示?
开多条件:O<(REF(C,1));
buy(开多条件 and holding=0,1,thisclose);我想在这个指令中,加入一个止盈指令!比方行情上涨到昨天收盘价的1%点位平仓。这个指令如何写。
比方说:RB 昨天的收盘价是3500,如何是我开了多单,我要都行情昨天收盘价上涨1%止盈,也就是3535
平仓.
开多条件:O<(REF(C,1));
开空条件:O>(REF(C,1));
sellshort(开多条件, 1,thisclose);
buy(开多条件 and holding=0,1,thisclose);
sell(开空条件,1,thisclose);
buyshort(开空条件 and holding=0,1,thisclose);
楼上的不对,这个公式
开多条件:O<(REF(C,1));
开空条件:O>(REF(C,1));
sellshort(开多条件, 1,thisclose);
buy(开多条件 and holding=0,1,thisclose);
sell(开空条件,1,thisclose);
buyshort(开空条件 and holding=0,1,thisclose);
if c>ref(c,todaybar)*1.01 then sell(1,0,thisclose);
if c<ref(c,todaybar)*0.99 then sellshort(1,0,thisclose);
谢谢,另外问一下,这个是不是要用固定间隔模式,而不是走完K线模式才可以
都可以,固定间隔出信号快但是不稳定,走完k线出信号慢但是信号稳定