RPbb2021$$ 8 posts msg #161031 - Ignore RPbb2021$$ |
4/28/2024 5:10:33 AM
Hello you all,
How do I get my results sorted by the position of the symbol in my symlist?
To help understand my predicament imagine a symlist that reads...
symlist(c,wen,ero,wal)
I would like to see my results ordered by the position of the symbol in the symlist therefore the order or the results I would like it to be...
c
wen
ero
wal
Thank you in advance!
|
dwiggains 444 posts msg #161033 - Ignore dwiggains |
4/28/2024 9:05:49 AM
sort column 1 ascending
See ya
David
|
RPbb2021$$ 8 posts msg #161034 - Ignore RPbb2021$$ |
4/28/2024 11:13:25 AM
Hi David,
unfortunately that doesn't do the trick, I do not want to sort it by "symbol name" but by the order of the symbols in the symlist command.
Thank you for looking into it.
|
sr7 145 posts msg #161041 - Ignore sr7 |
4/30/2024 4:33:27 PM
Fetcher has the Sort Column feature, but you would probably need some kind of sorting Function for that, like most programming languages.
fetcher[
/* This code below DOESN'T work; it's just something I imagine it would look like*/
symlist(c,wen,ero,wal)
sort[symlist(ero,wal,wen,c)]
]
|
glgene 616 posts msg #161044 - Ignore glgene |
4/30/2024 10:36:07 PM
2 lines of code + whatever else you want to include …
Symlist(c,wen,euro,wal)
Sort column 1
|
sr7 145 posts msg #161045 - Ignore sr7 modified |
5/1/2024 12:50:17 AM
@ Glgene --- he doesn't want it in alphabetical order --- if I'm not mistaken.
He wants C first, and then WEN, and so on..
|
glgene 616 posts msg #161049 - Ignore glgene |
5/1/2024 7:54:23 PM
SR7 — Oh, I see what you mean. I don’t know if his “Sort” desire is doable. ??
|
RPbb2021$$ 8 posts msg #161065 - Ignore RPbb2021$$ |
5/7/2024 7:19:12 AM
Thank you all for looking into it but as pointed out above, what I'm looking for is for the order of the tickers in the symlist() function so to have it sorted in the order I have operated the tickers - provided I have added the new ones at the end of the list.
Is there a whishing-list of desired functions to be requested to the development team?
Thank you again :)
|