System to sort and make arbitrage beetween trade

Post Reply
User avatar
scanner
Trader
Posts: 20
Joined: Mon Jul 16, 2012 2:32 am

System to sort and make arbitrage beetween trade

Post by scanner »

here a method that I imagine to choose between two trades to do. Do you have any other system to compare and sort a list of value ?

I use this system to select the best Symbol to trade when several Symbol has been selected to be trade after the execution of my SetUps sort and when my financials 'risk capacities doesn't allowed to trade all of them.
( The other moment, is to close a trade not as good as the hope of the new one to open).

Example :

let's tell that 3 candidats are avalaible to be trade A,B,C. and when each one is better the other ,
we incrementes it by +1 .
So we know that the max could be 2 ( total candidat -1, no one can't be superior to itself)

- let's tell A > B; A > C; and C > B.

if A>A; A=+1 else A=+0 >> so A=+0
if A>B; A=+1 else A=+0 >> so A=0+1
if A>C; A=+1 else A=+0 >> so A=0+1+1 >>> A=2

if B>A; B=+1 else B=+0 >> so B=+0
if B>B; B=+1 else B=+0 >> so B=+0+0
if B>C; B=+1 else B=+0 >> so B=+0+0+0 >>> B=0

if C>A; C=+1 else C=+0 >> so C=+0
if C>B; C=+1 else C=+0 >> so C=+0+1
if C>C; C=+1 else C=+0 >> so C=+0+1+0 >>> C=1

Now , just have to find who get the highter result wich will be inevitably maximim Totalcandidat-1:

(Totalcandidat-1) = here 2 = A first place
(Totalcandidat-2) = here 1 = C second place
(Totalcandidat-max) = here 3 = B third place and loser.


is there a better way for anybody ?
Post Reply

Return to “Coders Hangout”