jjke 發表於 12-11-16 01:48

請問如何儲存optimize結果


optimize run玩之後 會有結果

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

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


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

謝謝^^


joshsmi 發表於 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.

joshsmi 發表於 12-11-16 04:28

Or use OLE

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

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

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

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

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

    WScript.echo( "Completed" );

    NewA.Close(); // closing analysis window
}
}
catch ( exc )
{
WScript.echo( "Exception: " + exc.message ); // display error that may occur
}

jjke 發表於 12-11-19 01:57

====================

獲益良多非常謝謝^^


====================

數學家 發表於 12-12-16 17:33

joshsmi 發表於 12-11-16 04:25 static/image/common/back.gif
If using Amibroker 5.5 or 5.6:

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


十分謝謝大大熱心分享! ^_^
頁: [1]
查看完整版本: 請問如何儲存optimize結果