Can anyone please post the code for a simple backtesting strategy for buying when price closes above a moving average, and then reverses when it closes below a moving average? (to be more specific, I'm looking at displaced moving averages, like a 10 period moving average displaced 5 bars over.)
(Not just painting the bars green or red, but the code to where I can produce the actual backtesting report.)
I'm trying hard to understand how EFS works, but I just can't connect all the pieces together. I've read a huge portion of esignal central and I just can't find it. Maybe if I can see an entire code, then I can start to piece it together. I've read the beginner's guide to EFS, the backtesting help, the TS Support file, etc etc etc, and I just can't put all the pieces together.
Much appreciated,
thanks
ehsuhuang
(Not just painting the bars green or red, but the code to where I can produce the actual backtesting report.)
I'm trying hard to understand how EFS works, but I just can't connect all the pieces together. I've read a huge portion of esignal central and I just can't find it. Maybe if I can see an entire code, then I can start to piece it together. I've read the beginner's guide to EFS, the backtesting help, the TS Support file, etc etc etc, and I just can't put all the pieces together.
Much appreciated,
thanks
ehsuhuang
Comment