| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| James16: the EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=377 |
Page 1 of 8 |
| Author: | SteveHopwood [ Sun Feb 26, 2012 8:59 pm ] |
| Post subject: | James16: the EA |
SERIOUS WARNING
Ehup all James16's thread is one of the oldest at Forex Factory. Started in about 2005, it is still going strong. Shelley is ploughing her way through it in the hope of being able to provide synopses that I can automate. Automated strategies I have automated tow of the trading methods:
As I add new trading strategies to the EA, each fresh block will have the same input names with a prefix that is the initials for the method - hence all those Bovb.TakeProfit etc inputs. Each block will also start with a link to the post in which Shelley publishes her summary. xxx.AtrPeriod allows you to use Atr to calculate stop losses and take profits. Disable this by setting the value to zero. xxx.RsiPeriod allows you to use the Rsi to determine an overall trend direction. This little masterpiece was provided by scooby-doo a couple of years ago. Scoobs is a rich, retired former pro trader who gave us this gem:
xxx.Trade turns the individual trading method on or off. xxx.TimeFrame allows you to specify the trading time frame. The default of 0 means, 'current chart', but some methods may be better suited to different time frames, so these inputs will allow you to be specific. I have abandoned all attempts to hide from the crims the fact that we are trading using an EA here. We are going to end up with an EA that trades a wide range of systems on the same chart, so James has to know which one is which. Each system will have its own magic number and trade comment. General inputs:
I am in no hurry to add further trading methods at this stage. Once the existing code is watertight, then adding them will be simple. For now, let's concentrate on debugging. Note to coders I have given a lot of thought to the code structure. I wanted to create a structure that allows strategies to be added easily, with just a few copy/paste amendments. Here is how to add new strategies:
No idea where all this is heading. Let's see. Matters of general interest Read this post: http://www.forexfactory.com/showthread. ... ost4923611 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration. There is a thread devoted to Sam's trading method at http://www.forexfactory.com/showthre...25#post5118825 Masterly summary of hedging: http://www.forexfactory.com/showthread. ... ost4977179 EA coding I receive may requests to code EA's. Traders, if I code your EA for free, then I will share it here. If you want me to code your EA without sharing, then my fee is $100 payable into my paypal account. I explain why at http://www.forexfactory.com/showthread. ... ost4431794, at the bottom of the post. Useful utilities/EA's/scripts Matt's chart-population script at http://www.stevehopwoodforex.com/phpBB3 ... 5733#p5733. Use this every time you start a fresh platform. MaryJane has posted a fabulous utility to allow us to resize EA input windows: http://www.forexfactory.com/showthread.php?t=299017 Multi purpose trade manager: http://www.forexfactory.com/showthread.php?t=89371 Account equity analyser: http://www.forexfactory.com/showthread. ... ost4693716 Also at http://www.forexfactory.com/showthread. ... ost4709098, which includes a template for both USD and the Euro. Past-trades display indi by squalou; shows a graphical display of the success/failure of trades in your History tab. Breathtaking piece of work. http://www.forexfactory.com/showthread. ... ost3830610 My shell EA – the code I use to produce EA's so quickly. http://www.stevehopwoodforex.com/phpBB3 ... p?f=5&t=15 |
|
| Author: | okehiedon [ Sun Feb 26, 2012 10:43 pm ] |
| Post subject: | Re: James16: the EA |
This looks good. Will follow closely cos the manual strategy is sound. |
|
| Author: | hiredwhip [ Sun Feb 26, 2012 11:17 pm ] |
| Post subject: | Re: James16: the EA |
This is a great thread Steve......Been around a long while......Will give this a go Have a great week whip |
|
| Author: | SteveHopwood [ Mon Feb 27, 2012 11:56 am ] |
| Post subject: | Re: James16: the EA |
Hehe. Dozy twazzock that I am, there is a magnificent bloop in the code. Fix in post 1. Coders, go to void BovbTrading() and find this line of code in the Buy filters section, and its partner in the Sell section: Code: Select all if (Bovb.RsiPeriod > 0 && Bovb.Trend != up) SendLong = false; |
|
| Author: | fxozgirl [ Mon Feb 27, 2012 12:31 pm ] |
| Post subject: | Re: James16: the EA |
I've got this set up on a chart... looking forward to seeing how it goes Thanks Steve |
|
| Author: | SteveHopwood [ Mon Feb 27, 2012 9:46 pm ] |
| Post subject: | Re: James16: the EA |
Latest update in post 1. I found a damn silly mistake when I thought to run a backtest tonight. Coders, amend start() so it reads thus: Code: Select all |
|
| Author: | grimweasel [ Tue Feb 28, 2012 12:53 am ] |
| Post subject: | Re: James16: the EA |
The crux of the method Steve is price action reversal candles at support and resistance. When combined with Fib levels (swing high to low 38, 50 and 61% levels) for added confluence it can be quite powerful. The issue is coding the EA to recognise the candles (Bearish/Bullish Engulfing, Bear/Bull Outside Bar, Hammers and Shooting Stars) and when to trade those candles. No point trading a hammer for example in the middle of the chart not resting on a support level. Some people wait for the first candle to trigger then trade the retrace into the signal candle as this effectively gives you a lower high confirmation with a BEEB or Shooting Star. This also prevents the trader/EA from trying to pick counter trend tops and bottoms. You could combine the entry with Squalou's daily SR indicator? ie the signal candle must be touching one of the dynamic daily or weekly levels. This would ensure confluence with a SR level and prevent taking candles hanging in between major levels? For added security you could add a filter that only enters the trade in the direction of the 10 or 20 ema. This would ensure you only take trades with the underlying trend (ie a reversal candle on a retrace into the underlying weekly / monthly trend if using daily charts as your trading time frame) |
|
| Author: | fxozgirl [ Tue Feb 28, 2012 5:28 am ] |
| Post subject: | Re: James16: the EA |
The EA took 3 trades this morning: AUDUSD (currently +20 pips) NZDUSD (currently +2) AUDCAD (currently -9) So EA is taking trades correctly |
|
| Author: | grimweasel [ Tue Feb 28, 2012 4:16 pm ] |
| Post subject: | Re: James16: the EA |
Two points on those activated trades: 1. I never take BUOB or BEOB trades unless they are in the 'correct'place. For a BUOB I would like to see this at the bottom of a move down. The bar shows buyers stepped in at that level and overcame sellers; vice versa for a BEOB which I would like to see at the top of a rally. Same principals behind trading hammers and shooting stars (or Pin Bars, as J16 calls them). 2. I have always opened orders on the breaking of the extreme of the bar and wick. This shows the full days movement and the rejected area in the case of a wick. It's safer for MM and RM to place orders above and below the bar and wick extremes, not the body of the bar. Trading manually I would not have taken any of those trades as they are just bars in areas of consolidation. For them to be active signal bars they need to be on an area of SR or a strong trendline, and they need to be at a retrace or top/bottom of a rally/fall. |
|
| Author: | Surya buana [ Tue Feb 28, 2012 6:10 pm ] |
| Post subject: | Re: James16: the EA |
halo everyone this is my first post , i learn a lot in this forum, many thanks to Steve and others i have an idea that estimate lowest or top price for a day using RSI we need indicator for that to make it easy to calculate previous Bar price close - currrent Bar price close examp 1 : 1.3420 - 1.3450 = 30 pip RSI previous Bar= 45 - RSI current Bar = 55 examp 2 : RSI 45 -55 = 10 examp 1 divided examp 2 ( 30 / 10 ) = 3 pip conclusion : 1 RSI = 3 pip if RSI 75 = 75-55 = 20 * 3 = 60 pips so the top price estimate = 1.3450 + 60 = 1.3 can someone make this indi it will be very useful |
|
| All times are UTC | Page 1 of 8 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|