| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Baluda Slope Strength auto-trader https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=603 |
Page 1 of 27 |
| Author: | SteveHopwood [ Sat Jun 02, 2012 4:23 pm ] |
| Post subject: | Baluda Slope Strength auto-trader |
SERIOUS WARNING
Ready? Here goes: Listen, you pathetic, pea-brained, dim-witted cretin: even begin to consider using this robot without understanding 10.2 and you will lose all your money. Sorry about that, but I needed to make a point. Are you a pathetic, pea-brained, dim-witted cretin? No? Then do the reading required to trade successfully. You must understand the 10.2 Tma Slope indicator for any of this to make any sense. DO NOT USE THIS EA ON A LIVE ACCOUNT. IT IS EXPERIMENTAL. Intro Paul (user name Baluda) has created/adapted two fantastic Slope strength indis: Slope Strength; Currency Slope Strength. They both have the same calculation engine and display the Slope data in different ways. Both have a average strength of the individual currency on the far right of the screen. This EA uses the information in the summary to create pairs for trading. Baluda does not need any of the indicators from 10.2. Thanks to Paul (Baluda), the code for them is subsumed within the EA. I suggest you have one of the attached indi's on your chart so you can confirm the accuracy of the figures displayed by Baluda. Paul's contribution here is monumental. He joins the list of Incomparables: TIP - The Incomparable Paul; TIB - The Incomparable Bob; TIG - The Incomparable George; TIGA - The Incomparable Garry; TIPH - The Incomparable Philippe. I just enjoy confusing people. TIP handed me the Slope calculation code on a plate. All I needed were a couple of tiny mods, so the guts of thie ea come from Paul. Chart Baluda is a multi-pair ea. He goes on any chart you fancy - just one; make it gbpjpy because it is one of the most volatile and so has regular ticks. Time frame does not matter. Trade entry Baluda identifies the strong currencies and pits them against the weak.
You can set the levels in these inputs at any figure you please, but remember 10.2 basics:
Lots(v1e) If 'AccountRiskUnit' is set to non zero value, Baluda will calculate the lot size according this percentage and the ATR of the symbol of the trade. Trade exit This is a blunt instrument at the moment. Taking the example sell:
Trading styles Described above is the original trading style of this EA: enter a trade if the two currencies of a symbol are above 0.4 and below -0.4, exit the trade if one of the currencies falls below 0.3 or above -0.3. This style is 'TradeByLevel' Version 1b introduces a new trading style 'TradeByDifference'. This style enters a trade if the difference of the two currencies is above 0.8 and exits if it is below 0.4. Set the 'TradeByLevel' and 'TradeByDifference' to the style you like. 'TradeByLevel' takes priority if both are enabled. Tresholds (v1e) After starting the EA it waits to trade currencies until they have been ranging (>-0.3, <0.3 - user configurable). This prevents opening trades for currencies that are already trending but loosing/gaining strength at the start of the EA. You can enable or disable this feature. Tresholds can be set for currencies and symbols independently. Swap filter Newbies may not know that negative swap on CAD, NZD, AUD pairs is crippling. The xxxPairsPositiveOnly inputs are there to eliminate shorting these pairs. When you look on a chart and view a long-term trend on a high timescale, all you see is a yummy movement that raised shed-loads of pips for those who stayed with it. What it does not highlight so well are those long periods of consolidation where the market ranges around for days, sometimes weeks before taking off again. All through these consolidation periods, the criminal level of swap is massacring your profits. The positive swap from a buy is wonderful. I love an ADUxxx buy. Closing trades manually Remember that Baluda the EA is a piece of computer code not a sentient being. If you close a trade manually and the conditions are still correct for trading, B will immediately send a fresh one. To close a trade manually, you have first to remove the pair from the PairsToTrade list. Temporary stuff There is code to force B to go through its trading-opportunity function even though the markets are closed. This will generate error alerts that you can use to check the accuracy of the trades (remember to turn the TradeSundayCandle to 'true' if you are reading this on Sunday, and off again when you load up on demo for forward testing). I shall remove this in time for market open. In conclusion We all had a blast last week with Shelley. Baluda uses 10.2 Tma Slope, and so has every chance of also being successful. Have fun. 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: | phil_trade [ Sat Jun 02, 2012 4:49 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
Steve You are really the most prolific serials coders |
|
| Author: | monkeh [ Sat Jun 02, 2012 5:08 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
i think i need to buy mooooore hardware thanks a million, Steve, -bows- |
|
| Author: | Zypip [ Sat Jun 02, 2012 5:17 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
THE FUN NEVER ENDS ON YOUR FORUM STEVE |
|
| Author: | garyfritz [ Sat Jun 02, 2012 5:27 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
Steve, there's an oops in LookForTradeClosures(): Code: Select all For comparison / verification purposes I looked at the current values from Baluda's strength/slope calculations (from the EA Comment()) vs. the values from my currency strength indicator. I scaled my values to cover the same range as his. They're mostly fairly similar, but there are some significant differences. E.g. Paul's numbers have NZD as one of the weakest currencies, while my indicator has it being one of the strongest. My indicator says NZD has been gaining strength since about the 23rd. I looked at NZD and CAD, since CAD (by my indicator anyway) is near zero and pretty flat. That should be a neutral contribution. So if NZD is weak, NZDCAD should be going down. If NZD is strong, NZDCAD should be going up. Clearly it's been heading up for the last several days -- roughly since the 23rd. Most other NZD pairs seem to indicate a strong NZD. The EA calls for NZDUSD and NZDJPY to go down, but they've been pretty flat since NZD started showing strength. So I'm suspicious of the weak NZD number. Overall, though, the pairs selected by Paul's values have been moving nicely. Should be interesting to see how this performs! This is almost identical to the EA I wanted to build with my indicator so I'm eager to see it go. |
|
| Author: | SteveHopwood [ Sat Jun 02, 2012 5:45 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
Yes, it should be an easy job to replace the Slope code with yours. Thanks for spotting the oops. |
|
| Author: | phil_trade [ Sat Jun 02, 2012 6:24 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
Steve I never notice that before ( Only Steve want to trade on week end if (TimeDayOfWeek(TimeCurrent()) == 5 for Saturday That's why B trigger some trade for me even with TradeSaturdayCandle= false ! Code: Select all |
|
| Author: | SteveHopwood [ Sat Jun 02, 2012 6:37 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
TimeCurrent() returns the most recent time of the current candle, which is the Friday candle, so B tries to send the trades. This filter is for our friends in upside-down land, to avoid getting into trades too late in the week. |
|
| Author: | phil_trade [ Sat Jun 02, 2012 6:56 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
Ok, but for your Temporary stuff why not use TimeLocal() to allow desactivation alert ? |
|
| Author: | SteveHopwood [ Sat Jun 02, 2012 7:12 pm ] |
| Post subject: | Re: Baluda Slope Strength auto-trader |
'cos I don't care enough to bother. |
|
| All times are UTC | Page 1 of 27 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|