Can anybody help me how to write and test the following formula:

when 10 day ema crosses the 20 day ema and the close of "X" fund is
higher than the close 50 days ago, then buy fund "A" and sell fund "B"

when 20 day ema crosses the 10 day ema and the close of "C" fund is
lower than the close 50 days ago, then sell fund "A" and buy fund "B"

Thank you.
Alan
  

Reply via email to