Hello, I'm an amibroker formula beginner. I want to create a formula / system with the following rules:
a) there are just two symbols: TLT + SPY
b) periodcity: monthly
c) at the end of the month:
c1) if SPY > Moving Average (SPY, 6 months) then buy 70% SPY and 30% TLT
c2) if SPY <= Moving Average (SPY, 6 months) then buy 100% TLT
Could you please give me an advice regarding the AFL code.