RunTheNumbers
Member
- Messages
- 65
- Likes
- 1
jtrader said:Hi
I WANT to design two separate intraday mechanical strategies and implement them using Tradestation 8.1 with the AIM of profiting from the two main market types – trending and ranging-sideways markets.
I do not intend to hold positions overnight.
I plan to run these 2 distinct strategies simultaneously on the same instrument, on seperate charts,spreading the risk between 2 strategies, accepting that they will both lose money at times, but will make a profit overall – HOPEFULLY.
To avoid curve-fitting, stable indicator-strategy parameters are also important.
I want both strategies to be as simple & successful as possible, with as little drawdown and few negative trades as possible. So -
1. A strategy designed to profit from a ranging market, which tries to restrict trade entries during a trending market.
2. A strategy designed to profit from a trending market which tries to restrict trade entries during ranging/sideways markets.
So far, for the strategy designed to profit from ranging markets, I am considering basing trade entries around a cross above an RSI 14 value of 30 and a cross below an RSI14 value of 70. In essence, the RSI Long Entry (LE) & Short Entry (SE) strategies. I accept that this strategy/s will lose money during trending markets, as prices continue to fall. Therefore I wish to try and identify trending periods, and keep this strategy on the sidelines during trending periods. I am considering combining this entry strategy with the ADX or ADXR indicator. The ADX measures the strength of a prevailing trend as well as whether movement exists in the market. A low ADX value (generally less than 20) can indicate a non-trending market with low volatility whereas a cross above 20 may indicate the start of a trend (either up or down). If the ADX is over 40 and begins to fall, it can indicate the slowdown of a current trend. This indicator can also be used to identify non-trending markets, or a deterioration of an ongoing trend. Therefore if I limited RSI entries to times when ADX14 was 25 or below for example, my chances of achieving a higher % of profitable trades MIGHT be increased.
So far, for the strategy designed to profit from trending markets, I am considering basing trade entries around the MovAvgCross LE and SE strategies. I accept that this strategy will lose money during sideways - ranging market periods, so wish to try and identify sideways periods, and restrict trade entries during sideways-ranging market periods.
I could combine the ADX/ADXR indicators again with the MovAvgCross.
I could also add conditions so that the strategy will not enter another trade following a negative trade/s, until a price breakout has occurred. Therefore I could combine the MovAvgCross LE & SE with a strategy like “Price Channel” LE & SE, which waits for a breakout from the HI-LO of x number of bars.
I have not yet fully considered the combination of exit strategies that I want to use in both strategies. But for both strategies, possibilities include a stop loss Long Exit (LX) & Short Exit (SX), percent trailing LX & SX, profit target LX & SX, Profitable closes LX & SX, breakeven stop LX & SX.
For the MovAvgCross strategy, specific exit criteria could be the MovAvgCross LX & SX, that will exit a trade once the price, or x number of closes have crossed back above or below the MA. line.
This is just a basic outline of what I am trying to accomplish, the direction in which I am considering going, and the approach that I HOPE to see work.
1. A strategy designed to profit from a ranging market, which tries to restrict trade entries during a trending market.
2. A strategy designed to profit from a trending market which tries to restrict trade entries during ranging/sideways markets.
I am after any input, ideas, comments and criticisms with the aim of making these 2 strategies as robust as possible, including any ideas as to what combination of indicators and entry and exit strategies may work well within such proposed strategies.
Do you have any comments, criticisms, ideas, etc. that will enable improvement upon what I have outlined :?:
ALL feedback welcome, many thanks
jtrader.
The following is a copy from a post on TMF by a valuable poster hokusai2908 who has an interesting history. He indicates the system is best in ranging markets than trending, but is a proven system and well worth looking into IMO.
Remember in what follows that I was dealing with commodity and financial futures rather than stocks, though of course very much the same kind of 'rules' apply to both:
(1) The majority of daily bars in a reasonably volatile instrument of any kind have an open, a close, a high which is higher than both of these and a low which is lower than both.
(2) The most frequent course of a day's trading is either:-
-- Open, rising to a high, then falling to a low and rising again to the close, or
-- Open, falling to a low, then rising to a high and falling again to the close.
(3) It follows (so I reasoned) that you can set:
(a) a price U1 points above the open, at which you will sell:
(b) a price D1 points below the open, at which you will buy;
(c) a target number of points, T, which you intend to 'scalp', starting at either U1 or D1, whichever occurs first;
(d) a stop-loss U2, above U1, and
(e) a stop-loss D2, below D1.
Hence, a trade will result in one of the following (this is all terribly Run-Jane-Run, but that was my general level of comprehension back then):-
(a) Price rises through U1 and then falls through (U1 - T) wihout hitting U2. You win T, your target number of points.
(b) Price falls through D1 and then rises through (D1 + T) without hitting D2. You win T points.
(c) Price rises through U1 and hits U2 before U1 - T. You lose U2 - U1 points.
(d) Price falls through D1 and hits D2 before D1 + T. You lose D1 - D2 points.
[ Note: I experimented briefly with 'closing out at the end of the day anyway' (which gives two further possible outcomes) but without perceptible gain in performance so I dropped this rule; all trades are thus left in place until they either succeed or hit their stops.
(e) Price reaches neither U1 nor D1 during the day, in which case no trade is initiated.
U1, U2, D1, D2 and notably T are chosen so that most trades are completed inside one day, occasionally remaining in place overnight until the next day and, on a very few occasions, until Day 3. ]
That's it. Pretty childish really, as I say.
-----------
Main question, of course: How to pick U1, U2, D1, D2 and T?
Answer:- I wrote a small machine-code and Basic program which, before each day's trading, simply
(1) Looked at all the Os, Hs, and Ls for the preceding 14 trading days, held as a small rolling database on 5.25" diskette (yes we're talking that ancient);
(2) Ran through all possible combinations of U1, U2, D1, D2 and T for those days, and
(3) Returned the selection of U1, U2, D1, D2 and T which yielded the greatest total number of points over the 14 days examined.
Then I used these 5 figures to set up 'today's trading'.
Regards
Ben