ts語法問題 - 財經
By Dinah
at 2010-02-11T14:59
at 2010-02-11T14:59
Table of Contents
小弟這2天才開始使用ts...對於內建的語法還不熟練..
因此想請教各位大大...
我若希望每次的低點回檔20點後買進.....
例如:台指從8000->..7997->..7993->..7995->..7999->.....->8013
(目前的低) 回檔 (買進)
我寫的語法如下:
inputs:PP(20);
var:ML(0);
if time = 0845 then
ML = lowd(0);---------------在8:45時 ML會等於當日最低
if l < ML then
ML = l;---------------------若創新低後ML會等於新的低
if marketposition = 0 then begin
buy("BBB") at ML(0) + PP limit;
end;----------------------------若手上沒單時 我要買進目前低點+20的地方
if marketposition = 1 and time = 1329 then begin
exitlong;
end;----------------------------1:29時多單平倉
請問這樣的寫法哪裡有錯呢??因為跑出來的結果是完全沒有交易....
想知道正確的寫法應該是如何??感恩....
--
Tags:
財經
All Comments
By David
at 2010-02-13T02:22
at 2010-02-13T02:22
By Daniel
at 2010-02-16T04:51
at 2010-02-16T04:51
By Kama
at 2010-02-19T14:57
at 2010-02-19T14:57
By Michael
at 2010-02-20T08:56
at 2010-02-20T08:56
By John
at 2010-02-23T13:10
at 2010-02-23T13:10
By Catherine
at 2010-02-27T23:21
at 2010-02-27T23:21
By Andy
at 2010-03-04T19:44
at 2010-03-04T19:44
By Agatha
at 2010-03-06T06:16
at 2010-03-06T06:16
By Dora
at 2010-03-11T02:31
at 2010-03-11T02:31
By Yuri
at 2010-03-11T22:31
at 2010-03-11T22:31
By Dorothy
at 2010-03-14T18:06
at 2010-03-14T18:06
By Blanche
at 2010-03-14T20:18
at 2010-03-14T20:18
Related Posts
Tradingfuture 2010 第六周: 抽插後重新開始
By Daph Bay
at 2010-02-10T17:52
at 2010-02-10T17:52
發表 外匯mt4 程式交易程式碼. for EURUSD.
By Daniel
at 2010-02-05T12:08
at 2010-02-05T12:08
外匯當沖之業餘水電工
By Ophelia
at 2010-02-04T23:11
at 2010-02-04T23:11
台指操作第5天
By Kumar
at 2010-02-04T16:59
at 2010-02-04T16:59
外匯操作第108天--"多多益善"
By Frederica
at 2010-02-03T13:49
at 2010-02-03T13:49