- 金币:
-
- 奖励:
-
- 热心:
-
- 注册时间:
- 2004-5-17
|
|
""分钟线下没有我想要的指标,连macd这个指标都没有,"
不明白你的问题,再化一点时间看看帮助文件吧
“N-period candlesticks (time compression)
http://www.amibroker.com/library/formula.php?id=244
用它可以看周线,比较好用 ""
可以将两天K线压为一天
ab可以调设周线的
不过Timeframegetprice 函数更容易点吧。
不同周期K线同一主图:
//USING Timeframegetprice to overlap the chart
bSpanType = Param("0:W; 1:D; 2:H; 3:M", 1, 0, 3); //setting the different timeframe
if ( bSpanType == 0 )
{Span=inWeekly;}
else if ( bSpanType == 1 )
{Span=inDaily;}
else if ( bSpanType == 2 )
{Span=inHourly;}
else if ( bSpanType == 3 )
{Span=in15Minute;}
// could add more accord to your own need
wo = TimeFrameGetPrice( "O", Span, 0, expandPoint );
wh = TimeFrameGetPrice( "H", Span, 0, expandPoint );
wl = TimeFrameGetPrice( "L", Span, 0, expandPoint );
wc = TimeFrameGetPrice( "C", Span, 0, expandPoint );
Plot( C, "close", 1, 5); //price chart at current timeframe
PlotOHLC( wo, wh, wl, wc, "OTHER PERIOD", 1, 64 ); //overlap from the selected timeframe
//end
[ Last edited by thingdi on 2005-3-17 at 07:10 ] |
|
|