If anyone's interested, here's the code I used for testing: #Even Simpler Strategy my $Units = 0; #Entry Conditions #Entry Long if (Now(Close) > Previous(High)) { if (LongPosition) { return; } if (ShortPosition) { $Units = 200; } else { $Units = 100; } BuyOpen('U',$Units); } #Entry Short if (Now(Close) < Previous(Low)) { if (ShortPosition) { return; } if (LongPosition) { $Units = 200; } else { $Units = 100; } SellOpen('U',$Units); }
First off, thanks everyone for all the great input in this thread. Yes, any time frame should be as valid as the next. From a practical viewpoint however , if you used one minute bars and manually entered orders, you would realy need to be on the ball. I have been experimenting with five minute and daily bars. This really is analogous to a short term Turtle system or one bar break charting system.
I coded that in Seer - wwww.seertrading.com It uses an event-driven Perl-based script so it's much faster to write code for than delphi-based tools like Wealthlab. Sorry about the lack of indentation - it was indented when I pasted it.