[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Ranking multiple scores?



PureBytes Links

Trading Reference Links

So if I have multiple scores, how can I rank them all in one positionscore.
 
typically you see something like this: 
  
---------------------------------------------------------------------------------------------------------------
EnableRotationalTrading();

EachPosPercent =
5
;

PositionScore = ROC( C, 20
);

PositionSize
= -EachPosPercent;

SetOption("WorstRankHeld", 20
);
SetOption("MaxOpenPositions", 20
);
 
----------------------------------------------
 
But if I have multiple scores that each have a value and I want to rank based on the highest values can I do this?
 
I would have:  Array1, Array2, Array3
 
PositionScore = would rank those three arrays, buying the highest valued array as the highest valued array is actually the security I should be buying in my example.
 
I guess I  would link each score to a security using an iff statement. 
 
If anyone can help,
 
Thanks,
 
Erik S
 


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS