COCO研究院

 找回密碼
 註冊
搜索
查看: 1882|回復: 4

請問如何儲存optimize結果

[複製鏈接]
發表於 12-11-16 01:48 | 顯示全部樓層 |閱讀模式

optimize run玩之後 會有結果

關閉AB後 我希望下次還能夠 看到這個結果

不過按了 Save as 之後 再打開來...結果都不見了


請問 要怎麼儲存 optimize的結果呢?  (除了excel 因為他只能儲存100萬row)

謝謝^^


發表於 12-11-16 04:25 | 顯示全部樓層
If using Amibroker 5.5 or 5.6:

Go to File -> Export HTML/CSV and save as HTML

Then after next start of Amibroker you can re-import it by open New Analysis and go to File -> Import HTML


If you want to export to Excel then you can do it directly by right-clicking the Optimization result list and choosing 'Select all',  copying the result list and directly pasting it into Excel.

評分

參與人數 2金錢 +7 收起 理由
kilroy + 5 按一個讚!
acerman + 2 按一個讚!

查看全部評分

發表於 12-11-16 04:28 | 顯示全部樓層
Or use OLE

  1. AB = new ActiveXObject( "Broker.Application" ); // creates AmiBroker object

  2. try
  3. {
  4.   NewA = AB.AnalysisDocs.Open( "C:\\Program Files\\AmiBroker\\APX\\Test.apx" ); // opens given analysis project file
  5.   // NewA represents the instance of New Analysis document/window

  6.   if ( NewA )
  7.   {
  8.     NewA.Run( 4 ); // starts analysis (asynchronous - returns immediatelly
  9.       // (0-scan, 1- exploration, 2- portfolio backtest, 3- Individual Backtest, 4- optimization, 5- Individual Optimization (not supported yet), 6-walk forward)

  10.     while ( NewA.IsBusy ) WScript.Sleep( 500 ); // wait for completion

  11.     NewA.Export( "test.html" ); // exporting results

  12.     WScript.echo( "Completed" );

  13.     NewA.Close(); // closing analysis window
  14.   }
  15. }
  16. catch ( exc )
  17. {
  18.   WScript.echo( "Exception: " + exc.message ); // display error that may occur
  19. }
複製代碼
 樓主| 發表於 12-11-19 01:57 | 顯示全部樓層
====================

獲益良多  非常謝謝^^


====================
發表於 12-12-16 17:33 | 顯示全部樓層
joshsmi 發表於 12-11-16 04:25
If using Amibroker 5.5 or 5.6:

Go to File -> Export HTML/CSV and save as HTML

十分謝謝大大熱心分享! ^_^
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-11-23 08:59

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 |