|
在網上找到用amibroker做港股的BLOG
加上BUY&SELL訊號
教大家在陰陽圖上加入o的買賣訊號..可以更清楚股價走勢
以10天50天平均線做例子...10天升穿50天買入...50天跌穿10天賣出
定義買賣標準
Buy=Cross( MA(C,10), MA(C,50) );
Sell= Cross( MA(C,50), MA(C,10) );
檢驗舊數據加入buy sell字
dist = 1.5*ATR(10);
for( i = 0; i < BarCount; i++ )
{
if( Buy ) PlotText( "BUY@" + C[ i ], i, L[ i ]-dist, colorGreen );
if( Sell ) PlotText( "SELL@" + C[ i ], i, H[ i ]+dist, colorRed, colorYellow );
}
PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy, colorGreen, colorRed ) );
指標下載832724-Unnamed 3.zip
將指標拖拉到陰陽線圖上..即出如下的畫面
http://amibroker.mysinablog.com/index.php?op=ViewArticle&articleId=717497 |
|