價格突破前20天的最高價,怎么寫?
作者:開拓者 TB 來源:cxh99.com 發(fā)布時間:2015年06月04日
- 咨詢內(nèi)容:
價格突破前20天的最高價,怎么寫?
- TB技術(shù)人員:
有人在嗎?
- TB客服:
- Params
- Numeric length(20);
-
-
- Vars
- Numeric HH;
- Numeric LL;
-
- Begin
- hh = Highest(High[1],length);
- ll = Lowest(Low[1],length);
-
- PlotNumeric("hh",hh);
- PlotNumeric("ll", ll);
-
- If(high>=hh) Buy(0,Max(hh,open));
-
- If(low<=ll) SellShort(0,Min(ll,open));
-
-
- End
復制代碼
- 網(wǎng)友回復:
謝謝版主,學會了