Hi tstudent -- Your question does not say how you will be using the result. If it will be assigned to ProfitScore, try this:
rrr = rsi; // however you do this ret = weeklyreturn; // however you do this PositionScore = 1000*rrr + ret; // adjusted as necessary so the numbers come out with the meaning you want PositionScore will be sorted in order of rrr, with ties broken by ret. Thanks, Howard On Mon, Sep 6, 2010 at 12:55 PM, tstudent <[email protected]> wrote: > > > How i do a double sort? > > For example i want give a priority to: > > 1) stocks with worst rsi > 2) sort stocks within point one for best 1 week return > > Thanks > > >
