mechanicaldaytrader
Active member
- Messages
- 189
- Likes
- 7
...you must have rigid rules for backtesting past charts. It's just basic common sense to me that a signal cannot be filled on the same bar that it is generated. If the price is a good price for a reversal then the time of the chart should display at least one more bar containing that price in the near future (afterwards). The only exception I can think of is the use of 'daily bars'.
Something that is done trading the S&P is the use of 60 minute bars for signals and then Tradestation will plot the system fills on a faster chart, such as a 5 minute. The 60 minute bar will generate the limit order number, and the fill or kill will be plotted on the related 5 minute (or 3 minute or 7 minute, etc.) bar.
I would definitely backtest whatever methodology 24 months at least. If you're using intraday futures data, you would have to buy the data and string the contracts together. Tickdata.com handles this with custom software. A simplier way is to take your signals off the cash index and backtest the cash index of what you are trading (futures index for instance), then apply the signals to the futures contract (the current one will do) and determine your money management of your futures entry. The cash chart would determine the approximate time and technicals, the futures chart would be adjusted for the vagaries of the futures contract.
NOTE: on many American futures contracts the institutions purposely 'fuzz up' the futures data to frustrate mechanical traders - but the cash index (that underlies the futures contract) is technically perfect (that can't be fuzzed up).
About ten years ago, I used to trade a couple NASDAQ stocks, and would use NYSE stocks and indexes to key my reversals sometimes because the NYSE issues were technically perfect, whereas the NASDAQ stocks would try to stop you out. The technicians at the NYSE played their usual games in holding back fills, but the actual bid prices were right on.
When backtesting, use a 3:1 ratio to start, although you can have Tradestation adjust this during backtesting (all my systems have adjustable parameters to find the best setups (this is called curve fitting) so I have idea an of what to expect during live trading. If I traded based on 'curve fitted' data, then my backtesting data had to be 4+ years. Anything less than that was looking thru 'rose colored glasses' imo.
You should have two completely different sets of trading rules, one for trends another for trading ranges. Look at my attachment of my mechanical 'end' of an Uptrend, for instance. Mechanically, the end of a Trading Range is similar but time & a couple different cycle components come into play that do not come into play for trends.
Good luck.
The Mechanical Day Trader
Something that is done trading the S&P is the use of 60 minute bars for signals and then Tradestation will plot the system fills on a faster chart, such as a 5 minute. The 60 minute bar will generate the limit order number, and the fill or kill will be plotted on the related 5 minute (or 3 minute or 7 minute, etc.) bar.
I would definitely backtest whatever methodology 24 months at least. If you're using intraday futures data, you would have to buy the data and string the contracts together. Tickdata.com handles this with custom software. A simplier way is to take your signals off the cash index and backtest the cash index of what you are trading (futures index for instance), then apply the signals to the futures contract (the current one will do) and determine your money management of your futures entry. The cash chart would determine the approximate time and technicals, the futures chart would be adjusted for the vagaries of the futures contract.
NOTE: on many American futures contracts the institutions purposely 'fuzz up' the futures data to frustrate mechanical traders - but the cash index (that underlies the futures contract) is technically perfect (that can't be fuzzed up).
About ten years ago, I used to trade a couple NASDAQ stocks, and would use NYSE stocks and indexes to key my reversals sometimes because the NYSE issues were technically perfect, whereas the NASDAQ stocks would try to stop you out. The technicians at the NYSE played their usual games in holding back fills, but the actual bid prices were right on.
When backtesting, use a 3:1 ratio to start, although you can have Tradestation adjust this during backtesting (all my systems have adjustable parameters to find the best setups (this is called curve fitting) so I have idea an of what to expect during live trading. If I traded based on 'curve fitted' data, then my backtesting data had to be 4+ years. Anything less than that was looking thru 'rose colored glasses' imo.
You should have two completely different sets of trading rules, one for trends another for trading ranges. Look at my attachment of my mechanical 'end' of an Uptrend, for instance. Mechanically, the end of a Trading Range is similar but time & a couple different cycle components come into play that do not come into play for trends.
Good luck.
The Mechanical Day Trader