How to plot value from text file

Hi ,

How to plot values from text file. In text file I have date, time and some value .I wan to plot text file values in amibroker. Any Ideas ?

For example you may study this example code given here
https://www.amibroker.com/kb/2015/09/26/how-to-populate-matrix-from-a-text-file/

For further Matrix functions scroll down to the bottom of this site
https://www.amibroker.com/guide/a_catfunref.html

e.g. MxGetBlock to retrieve a submatrix:

// get 1st row of source matrix
matblock1 = MxGetBlock( mat, 0, 0, 0, MxGetSize(mat,1)-1, false );

You may also excess matrix elements via subscripts, either within loop or:

value_1_3 = mat[0][2]; // retrieve matrix element of first row and 3rd column
2 Likes

Just import that file using Import Wizard
http://www.amibroker.com/guide/w_impwizard.html

First column date, second time and third column close. Set remaining columns to SKIP. And that's it. You will have imported data added as artificial ticker that you can refer to using Foreign() function or PlotForeign() for example.

PS. This is much faster and easier than using matrices.

1 Like