|
樓主 |
發表於 12-10-3 22:08
|
顯示全部樓層
例如這個, 就是PLOT 2條MA 在圖上:
public void BasicSampleCS1()
{
// calculate the moving average of close price by calling the built-in MA function
ATArray mySlowMa = AFAvg.Ma(Close, 20);
// plotting the moving average
AFGraph.Plot(mySlowMa, "mySlowMa", Color.Black, Style.Thick);
ATArray ma5 = AFAvg.Ma(Close, 5);
// plotting the moving average
AFGraph.Plot(ma5, "5ma", Color.Black, Style.Thick);
}
基本上, 只係多了要create object, 其他程式碼是一樣 |
|