Even Simpler Profitable Method

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);
}
 
Quote from panzerman:

Method:

Wait for the current bar to close above (below) the previous bar. If close above, go long with stop below low of bar. If close below, go short with stop above high of bar.

No, I haven't backtested this, but it is the essence of simplicity. Since the markets are fractal in nature, it should be valid for any time frame.


What time frame are u suggesting 1 min 2 min 3 min etc.?

mjh
 
Quote from igrimsley:

.... which means of course that the REVERSE strategy might be a good basis for a system. I tested the original strategy on a stop-and -reverse basis.

Food for thought: if an idea fails miserably, turn it around and it might work.
Smart guy :)
 
Quote from mjh:

What time frame are u suggesting 1 min 2 min 3 min etc.?

mjh

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.
 
what backtest software

Quote from igrimsley:

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);
}
 
Quote from jtnet:

what backtest software

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.
 
Back
Top