|  | Drew Kellerman 2019-10-31 12:01:57
 
 
 
 |  | 
	 Hi,I'm applying the info from two, recent blog posts on how to create tactical asset allocation strategies. I'm building a long strategy based on a universe
 of 21 ETFs, filtered at the end of each month, and re-balanced on the first trading day of the following month. All criteria are based on month-end data.
 
 I'm running into errors with my formulas, and need help with others.
 
 The month-end EMA4 value must be above the EMA10 value:                                                               buy = cross(ema(4),ema(10);
 sell = cross(ema(10),ema(4);
 
 If the rsi(14) score of a fund is over 75, the fund is disqualified:                                                            sell = rsi(14) >= 75;
 
 Re-enter consideration once the month end rsi(14) score drops below 75
 AND experiences one month of RSI-14 score increase.                                                                         ???
 
 Stop Loss: 10% month-end price close drop from rolling 6-month month-end high:                                 ???
 
 Re-enter consideration when month-end closing price attains new rolling 6 month high:                           ???
 
 The qualifying funds are then ranked by rsi(14):                                                                                  rank1 = comp(RSI(14), "rank");
 
 The top seven funds are purchased:                                                                                                   buy = rank1 >= 7;
 
 Appreciate any help with these formulas!
 
 Cheers,
 
 Drew
 
 
 
 
 
 
 
 
 
 
 
 
 
 |  |