|
各位好,我是很菜的菜鳥,我利用盤中成交量差寫了個陽春的策略,自我訓練,但永遠編譯無法成功,爬文了也沒用,可否請高手幫幫我好嗎?
data2及data3都有設好且也成功使用指標,但就是無法把訊號編譯成功!!
程式碼如下:
//data1=k bar
//data2=txf1_UV
//data3=txf1_DV
//value1=txf1_UV-txf1_DV
value1=close of data2-close of data3
Plot(value1,"UV-DV)
if marketposition=0 and value1=2500 then buy next bar at market;
if marketposition>0 and time=1344 then sell next bar at market;
if marketposition=0 and value1=-2500 then sellshort next bar at market;
if marketposition<0 and time=1344 then buytocover next bar at market;
|
|