Hey what should I change to code to give top 3 and bottom 3 currencies wise. Instead of just the just the strongest and weakest? Any advice would be greatly appreciated. Regards.
exlux99
⋅
@EonGalactic, hi mate, for this you would need a special search algorithm. here you can see the base of something like that 1) Initialize the largest three elements as minus infinite. first = second = third = -∞
2) Iterate through all elements of array. a) Let current array element be x. b) If (x > first) { // This order of assignment is important third = second second = first first = x } c) Else if (x > second and x != first) { third = second second = x } d) Else if (x > third and x != second) { third = x }
3) Print first, second and third.
exlux99
⋅
@EonGalactic, and then for the lowest you would have to do the same
Project_Money_Heist
⋅
I can't see numbers on red columns, can U customize colours ?
erdinczeytin94
⋅
Can you modify it a little and add a feature such as changing the charts, let's determine the parity we want.
Gully7
⋅
Hey, can you leave a link to this indicator please. When I click add to favourites it doesn’t save…
exlux99
⋅
@Gully7, you can copy the source code and add it directly into your chart from the study/strategy pinescript window after you copied and pasted it there
How can I add alert?