StockFetcher Forums · General Discussion · help with coding this Thanks!!! Geniuses 3x2 system<< >>Post Follow-up
lvainik
52 posts
msg #49751
Ignore lvainik
2/1/2007 11:39:05 AM

See stockpickr

The Three By Two System: Very simple system. We will be introducing tweaks and improvements in the coming weeks.
BUY: If a stock goes down 3 days in a row, BUY at the open the next day
SELL: when a stock goes up 2 days in a row, sell at the close of the second day:

Results: simulated on all Nasdaq 100 stocks, plus deletions from the Nasd 100 index, from January, 1997 until December, 2006. Simulated using 5% of equity per trade.

Number of trades: 6,492. Winning trades: 4,243 (65.3%). Average return per trade: 1.51%. In future weeks we will be examining ways to improve the system further.

Simulated using Wealth-lab, a product of Fidelity.

Code:

var Bar: integer;

for Bar := 5 to BarCount - 1 do
if (priceclose(Bar - 1) > priceclose(Bar - 2)) AND
(priceclose(Bar) > priceclose(bar - 1)) then
SellAtMarket(Bar + 1, #All, '')

else
if (priceclose(Bar - 1) < priceclose(Bar - 2)) AND
(priceclose(Bar) < priceclose(Bar - 1)) AND
(priceclose(Bar - 2) < priceclose(Bar - 3)) then
if priceopen(bar) > priceclose(bar - 1) then
buyatmarket(Bar + 1, '');

1997: 153%
1998: 82%
1999: 128%
2000: 130%
2001: 57%
2002: -3.9%
2003: 50%
2004: 22.75%
2005: 11.3%
2006: 17.2%

[Click image to see larger view]



StockFetcher Forums · General Discussion · help with coding this Thanks!!! Geniuses 3x2 system<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.