- Joined
- Mar 3, 2013
- Messages
- 2,101
Rep Bank
$3,195
$3,195
User Power: 161%
Sitting here in my plastic trailer, I was testing some old trading ideas in Amibroker, trying to see if anything would work with Forex. I found one that looks interesting. It is to swingtrade using 2 moving averages. One is the SMA of the CLOSE, and the other is the SMA of the OPEN. Let's call these:
CLOSE_SMA and OPEN_SMA
You go LONG if the CLOSE_SMA is OVER the OPEN_SMA. This means that the closing prices are, on average, above the open. So you are in an uptrend. I call this a CROSS_OVER.
You go SHORT if the CLOSE_SMA is UNDER the OPEN_SMA. This means that the closing prices are, on average, below the open. So you are in a downtrend. I call this a CROSS_UNDER.
You are always in the market, either LONG or SHORT.
If there is a CROSS_OVER during the day, you close your current SHORT position and open a new LONG position at the NEXT day's OPEN price. You don't flip-flop during the day. My FX data provider publishes at 5pm, so I would close old positions and open new positions around 6pm.
In my tests, I used a starting account balance of $10k, with $1k placed on each trade. No compounding of profits. This keeps the charts from going crazy because of an extreme good/bad year. The ideal is a steady increase in the account balance. You can fiddle with leverage and compounding to increase profits/losses.
I let the system do walk-forward testing with an anchored starting date. This means, the system was always using all the previous history (from the beginning of time) to determine the best system parameters. Some people use a sliding window of using the previous 4 years data to predict the next 1 year. I always use ALL previous years to predict the next 1 year. My method gives slightly better results in this test, but it's more of a philosophical difference for me (who trades without using all available data?). The only parameter in this system, is the length of the moving-averages. 25 seems to work best for EURUSD, but your system should be able discover the best one for the PAIR you are trading. I let the system choose an MA length between 5 and 100.
Here is the EURUSD, it has done well, but in 2013 it suffered:

The USDINR (USD vs Indian Rupee) has a better shape:

Silver vs Euro is a little choppy, but does well:

And the best by far (IMHO), is the USD vs Russian Ruble:

This is what a CROSS_OVER looks like:

The system has a lot of churning, and could probably benefit from some tweaking. I thought I would just throw it out there as an example of using OPEN/CLOSE moving-averages. I originally started looking at them for intraday swing-trading, but could never get them to work very well, so I tried them on EOD trading, and they looked okay.
The system has only 1 variable, the SMA length. You could put stops, take-profits, time-outs, reentry-delays, etc, but the system slowly starts to curve-fit the data as you tweak their parameters.
CLOSE_SMA and OPEN_SMA
You go LONG if the CLOSE_SMA is OVER the OPEN_SMA. This means that the closing prices are, on average, above the open. So you are in an uptrend. I call this a CROSS_OVER.
You go SHORT if the CLOSE_SMA is UNDER the OPEN_SMA. This means that the closing prices are, on average, below the open. So you are in a downtrend. I call this a CROSS_UNDER.
You are always in the market, either LONG or SHORT.
If there is a CROSS_OVER during the day, you close your current SHORT position and open a new LONG position at the NEXT day's OPEN price. You don't flip-flop during the day. My FX data provider publishes at 5pm, so I would close old positions and open new positions around 6pm.
In my tests, I used a starting account balance of $10k, with $1k placed on each trade. No compounding of profits. This keeps the charts from going crazy because of an extreme good/bad year. The ideal is a steady increase in the account balance. You can fiddle with leverage and compounding to increase profits/losses.
I let the system do walk-forward testing with an anchored starting date. This means, the system was always using all the previous history (from the beginning of time) to determine the best system parameters. Some people use a sliding window of using the previous 4 years data to predict the next 1 year. I always use ALL previous years to predict the next 1 year. My method gives slightly better results in this test, but it's more of a philosophical difference for me (who trades without using all available data?). The only parameter in this system, is the length of the moving-averages. 25 seems to work best for EURUSD, but your system should be able discover the best one for the PAIR you are trading. I let the system choose an MA length between 5 and 100.
Here is the EURUSD, it has done well, but in 2013 it suffered:

The USDINR (USD vs Indian Rupee) has a better shape:

Silver vs Euro is a little choppy, but does well:

And the best by far (IMHO), is the USD vs Russian Ruble:

This is what a CROSS_OVER looks like:

The system has a lot of churning, and could probably benefit from some tweaking. I thought I would just throw it out there as an example of using OPEN/CLOSE moving-averages. I originally started looking at them for intraday swing-trading, but could never get them to work very well, so I tried them on EOD trading, and they looked okay.
The system has only 1 variable, the SMA length. You could put stops, take-profits, time-outs, reentry-delays, etc, but the system slowly starts to curve-fit the data as you tweak their parameters.
Dislike ads? Become a Fastlane member:
Subscribe today and surround yourself with winners and millionaire mentors, not those broke friends who only want to drink beer and play video games. :-)
Access Restricted: Unlock 1,000,000+ Posts
Stop Peeking Through the Keyhole.
Open the Door.
You hit a wall because the best advice isn't free—it's earned. Since 2007, MJ DeMarco has been active here daily (99.9% active rate), building a war room for entrepreneurs who refuse to settle for mediocrity.
- Active Daily: Life-changing content posted dozens of times every day. No dead threads.
- MJ's Inner Circle: Direct access to the author of The Millionaire Fastlane.
- Vetted Network: Connect with founders scaling to 7 and 8 figures.
- Proven Roadmaps: Strategy over motivation. Execution over "hustle porn."
"SCALED TO 6-FIGURE MONTHS"
"Tips and advice here saved me from huge mistakes, others allowed me to scale my business to 6-figure months."— User MitchC
"INSANE QUALITY OF PEOPLE"
"The number of high quality people I've met from this forum has been insane. All of it predicated on building real value."— User Richard Peck
"You are the average of the five people you surround yourself with."
Are you surrounding yourself with success?
