Does anyone now how to create a simple indicator out of the below strategy. I have been experimenting with paintbars etc. to no avail. It runs on 20 min bars.
Any help very appreciated!inputs: q(1.5),n(25);
if c > Average(c,n) then buy next bar at o of tomorrow+(q*range) stop;
sell next bar at o of tomorrow-(q*range) stop;
if c < Average(c,n) then sell short next bar at o of tomorrow-(q*range) stop;
buy to cover next bar at o of tomorrow+(q*range) stop;