I have a vector called longentryindex which
might be (26, 45, 67 ).
I then do
pos1amt=currpos[longentryindex]/totalcaplong (
totalcaplong is a scalar )
Then I do :
badindices=which((pos1amt) > maxstockpercent )
my problem is that, since, I already am dealing with a sub
vector ( longentryindex ),
I think the badindices are gonna be 1,2,3 ( if any of them
meet the criterial ) rather than 26,45,67. I haven’t
checked this but I am fairly certain that’s going to
be the case.
Is there a way around this so that badindices returns 26,45
or 67 rather than 1,2,3 ?
Thanks.