_____________________________________________________________________________________________________
Welcome to the scooby-doo Shag'emAll trading robot. Go to http://www.forexfactory.com/showpost...postcount=3932 to read about the genesis of this robot and how it came upon its, um, unusual name.
- Download MTF Moving Average to your Indicator folder.
- Download the robot to your Experts folder.
- Download the template to your Templates folder.
- Close down and restart your platform.
Here is the trading system:
- 4H chart. Apply the template or set up the following Moving AVerage indis manually.
- Add 2 MovingAverage indicators:
- Period 2: Method Simple: Apply to Low: Colour Blue
- Period 2: Method Simple: Apply to High: Colour Red
- Add a MTF Moving Average indi to the chart. Settings are:
- TimeFrame: 15
- Period: 200
- Method: 0
- AppliedPrice: 0
- Backtesting: false
- Add 2 MovingAverage indicators:
- Enter a Buy trade when:
- Blue and red lines are both above the yellow line.
- Price falls to touch or pierce the blue line.
- There is a decent distance between both lines.
- Enter a Sell trade when:
- Blue and red lines are both below the yellow line.
- Price rises to touch or pierce the red line.
- There is a decent distance between both lines.
- Take profit is:
- Buy trade: the value of the red line
- Sell trade: the value of the blue line
- Stop loss is:
- Buy trade: Entry price minus the mid point between the red and blue lines.
- Sell trade: Entry price plus the mid point between the red and blue lines.
There you are. Simplest system in the world. One of my oft-repeated sayings is that you should never trade a robot until you have traded the system manually and that the robot is not a robot for dummies.
This one is a robot for dummies. The biggest idiot in the world can use it. Just set it up and watch it go:
- Create a GBPJPY chart. Time frame doesn't matter because the robot sends appropriate time-frame calls to the moving average indicators. You do not need them on your chart.
- Set up your PairsToTrade input by deleting pairs your bloodsucking criminal does not offer and adding any others that you fancy.
- Set CriminalIsEcn to true if your bloodsucking criminal es a 2-stage order sender.
- Set the FridayClose to the hour on Friday that you want trading to cease.
You only need one instance of the robot on one chart. It is a multi-pair trader and will look at all the pairs in your PairsToTrade input.
In the AJ pic, you can see where the robot took an AUDJPY trade. This took just under an hour to hit tp.
The other pic shows the robot set up and running. The values of all the pairs it is trading are not shown. Only those whose MA values and depth of channel are correct for trading are shown, to avoid clutter on the screen.
Don't use the robot on your live accounts just yet. We need a few days on demo to make sure the system is as profitable as it looks with the value of hindsight.
Possible discussion points are:
- Should trade entry be an immediate market order, or should it be a stop order to allow for those occasions when the markets continue to move in the 'wrong' direction?
- The stop loss setting of entry price +- half the depth of the channel?
- Should the tp be slightly in from the extremes of the channel?
- What should the minimum channel depth be (the MinChannelDepth input)?
There are no news or maximum spread filters. We can add these if necessary but I want to keep this robot as simple as possible.
A few little points to note:
- The robot is not a trading tart, despite its name. It is basically a 4H tf channel trader, so trades are going to be infrequent.
- The MinChannelDepth default is set for 5 digit bloodsucking criminals. Users with 4 digit accounts need to divide this figure by 10.
- The robot only works on its own trades, but it counts all open trades when working out when it is allowed to send its own; it will not send new trades if the open trade count exceeds MaxTradesAllowed. This is to help prevent overtrading and blowing the account.
- About the "symbol name for MarketInfo must be a string" error. Posters about this can expect a visit from a hitman. I neither know nor care what gives rise to this bloody error. I can confirm for anybody stupid enough to post about this that every single damned MarketInfo() call has a string as its first paramater. Trust me, I know. I am the programmer. Changing timeframes whilst the robot is loaded throws up this error. Don't ask me why. I don't bloody well know. Nor do I care. It does not impact on the working of the robot. Contributors daft enough to post this blasted error risk being barred from posting at all. Think twice before posting about it. Then think thrice. Then forget about it. You should never change timeframes whilst running an ea as the results are unpredictable. If you insist on doing so in this case, then drag a fresh instance of the bot onto the chart.
Cheers guys. Thanks to Scoobs for bringing this channel trading method to our attention. Let's see if this robot has legs.
Updates:
19th Dec 2009:
The robot now sends pending trades instead of market orders.
- Depending on trend direction, entry price is the high or low of the channel +- 10% of the channel depth.
- The tp is offset from the channel extremes by 10%.
- There is a 1H pending order expiry time.
5th Jan 2010
I have added a TakeWrongDirectionTrades input. When set to 'true', it forces the robot to send a market order in the 'wrong' direction, i.e. buy at the top of the channel, sell at the bottom. The associated stop loss and take profits are purely arbitrary guesses. There is no need to modify these 5 digit wally-dipstick figures for normal 4 digit criminals; the bot does this automatically.
I did this because the robot has slowly drained the demo account by sending consistently trades. Tonight, I noticed I had inadvertently left the robot on a 1H, not 4H chart and so is examining the wrong channel.
I am going to leave the bot running properly on the 4H, and 'wrongly' on the 1H to see what happens.