How to retrieve current position size when using Rotational Trading?

I want to treat existing positions differently than new securities being evaluated and can't figure out how to retrieve that info.

Many thanks.

The purpose here is to have a varying trend criteria where a strict criteria is required for entry but a looser one is needed to remain in the position. Then apply ranking using rotational trading to determine which positions to keep or add, etc.

Example:

Enter if MA(C,30) > Ref( MA(C,30), -1) AND MA(C,10) > Ref( MA(C,10), -1), 1, 0);

but if the strategy owns a particular stock, criteria to keep it would be:

MA(C,30) > Ref( MA(C,30), -1) OR MA(C,10) > Ref( MA(C,10), -1)

Doing this when not using RotationalTrading is easy. I can't figure out how to do it within Rotational though.

Thanks in advance for your assistance!

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.