Using exploration for selecting only top 5 signals

Hi

I want to use exploration and send automated email of the top 5 signals by some score. I already have a column for the score , but i am not able to send only the top 5 out of all the signals.
Right now it sends email alert for all the signals.

One way would be to generate ordinal rank numbers for the results using StaticVarGenerateRanks. Then use the value from the output of that to conditionally determine what is sent.

You can find an example of how to generate the values in the Analysis window at the bottom of this page, under the heading “How to use StaticVarGenerateRanks in Analysis window”.

All you’d then need is:

if (rank <= 5)
{
    // Your send mail code here.
}
2 Likes