As76
September 25, 2021, 6:52pm
#1
Hello everyone,
Is there a way to output values into column while running an exploration.
Example with range set to 2 days
Filter=1;
AddColumn(C,"Close");
will output closes for all tickers in the database (AAPL, IBM)
AAPL 02.01.1981 0.15
AAPL 05.01.1981 0.16
IBM 02.01.1981 17.28
IBM 05.01.1981 17.56
I would like to get the following format
XXXX 02.01.1981 05.01.1981
AAPL 0.15 0.16
IBM 17.28 17.56
So basically I would like to transpode the output.
fxshrat
September 25, 2021, 7:02pm
#2
Almost everything has been covered already
Yes, you can do that via AddRow in conjunction with AddColumn.
https://www.amibroker.com/guide/afl/addrow.html
https://www.amibroker.com/guide/afl/addcolumn.html
Filter variable is set to zero if you just want to output data via AddRow.
(AddRow has been the vital missing link to output any data in any way in Explorer. You can also output Matrices and any non symbol's related data there easily in nice table format. The only missing part of AddRow in comparison to using Addcolumn is some color…
1 Like
As76
September 25, 2021, 7:31pm
#3
Thanks a lot @fxshrat for your quick response!
I'm completelly new to amibroker and unfortunately not able to understand what your templete does within the for loop and how to use the AddRow function in the last line of your templete correct.
As a newbie, who is really willing to learn AFL, would you mind to share a code example with more details.
Thank you a lot in advance!
system
Closed
January 3, 2022, 7:31pm
#4
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.