SMA= SMA of last 20 bars
if (SMA > SMA[1]) then buy at (SMA + AverageTrueRange(of last 20 bars))
if (SMA < SMA[1]) then sell at (SMA - AverageTrueRange(of last 20 bars))
Can this be done using the wizard? I can't get it to work.
If it can't be done with the wizard, can you reply with the code?
Thanks!

Comment