Can anyone code this up for me in AFL?  Thanks so much, RVIII


if (this is the start of a new month) then 
    set buy flag = true 

if (buy flag == true) and 
   ((close today is less than 3% 
      below the close five days ago) or 
   (this is the last trading day of the month)) then
        buy (monthly allocation budget)/(share price) shares 
          of SPY on the close 
    set buy flag = false 

Reply via email to