I am working on an afl that rotates into the top 3 ETFs on the last trading day 
of the month.  Here, I set MaxOpenPositions and WorstRankHeld to 3.  I 
understand how to do this, but would like the afl to set WorstRankHeld to say 
15 for any other day in the month.  That is, if the ranking of an owned ETF 
falls to below 15, on any other market day in the month, then I want to sell 
the ETF and buy the next ranked (at that point in time) ETF.

Does anyone have sample code for this?

Thanks

Bert 

Reply via email to