- Most Forex traders lose all their money.
- Using the robot posted here in trading Forex does not guarantee success.
- Trading this robot could lead to serious financial loss.
- Trading this robot without understanding its underlying trading strategies guarantees traders will lose their money.
- This is not a set-and-forget ea; there is no such thing and anyone who tries to claim there is, is either stupid or lying. This ea requires frequent manual intervention.
- At best, a trading robot is only 90% as good as the manual strategy it trades. At best. At worst, it can be much less effective. If the strategy is rubbish, so is the robot.
- To trade this robot, you have to understand:
- How to use EA's.
- My peak hilo indi. Read an explanation of what it does and how to use it at http://www.stevehopwoodforex.com/phpBB3 ... 46#p161246. SPB does not need it on your charts.
This is Slopey Peaky Bob but with the HTF trading direction determined by the relationship of the previous day instead of SuperSlope.:
Directional Rules
===============
1) If yesterday closed above last week's close then trade long. If yesterday closed below last week's close then trade short.
2) If trading Monday then last Friday's close obviously uses the prior week's close for direction.
===============
DigitalCrypto sent both the idea and the cod. Brilliant, David.
Here is the PM that David sent me:
Everything else is SPB with the display showing "TD" for "Trading Direction." Go to http://www.stevehopwoodforex.com/phpBB3 ... 59#p159559 for the user guide; simply ignore the stuff about SuperSlope.DigitalCrypto wrote:Steve,
Just a heads up.
In an attempt to reduce some basket draw downs I made an experimental mod to SPB that recalculates the trade direction based on the daily/weekly close instead of Superslope. This is because SPB will add to losing positions on a weekly pullback which leads us to where we are today with baskets hanging in the balance. While draw downs can't be stopped the trend change can be seen sooner than waiting for SS calculations.
Directional Rules
===============
1) If yesterday closed above last week's close then trade longs. If yesterday closed below last week's close then trade short.
2) If trading Monday then last Friday's close obviously uses the prior week's close for direction.
===============
It's still too early to gauge the success but the negative positions so far have been greatly reduced leaving the basket sitting mostly in profits.
If it looks like this thing has legs I can post it up. Or if you want to do it then I am totally fine with that. At least I know it's done correctly. Feel free to name it.
I'm attaching my code for ReadIndicatorValues() for you. I'm 100% positive you have a better way to do this.
-David
Code: Select all
//Read the HTF SS at the open of each candle if (OldHtfIndiReadBarTime[PairIndex] != iTime(symbol, HtfSsTimeFrame, 0) ) { OldHtfIndiReadBarTime[PairIndex] = iTime(symbol, HtfSsTimeFrame, 0); //Read SuperSlope at the open of each new trading time frame candle //val = GetSuperSlope(symbol, HtfSsTimeFrame,HtfSsSlopeMAPeriod,HtfSsSlopeATRPeriod,1); //Changed by tomele. Many thanks Thomas. //Set the colours HtfSsStatus[PairIndex] = white; //if (val > 0) //buy // if (val - HtfSsDifferenceThreshold/2 > 0) //blue // HtfSsStatus[PairIndex] = blue; //if (val < 0) //sell // if (val + HtfSsDifferenceThreshold/2 < 0) //red // HtfSsStatus[PairIndex] = red; //A more simple way to get trend direction if (iClose(symbol,PERIOD_D1,1) > iClose(symbol,PERIOD_W1, 1)) HtfSsStatus[PairIndex] = blue; //If we look for signal on Monday use Friday's if (iClose(symbol,PERIOD_D1,1) == iClose(symbol,PERIOD_W1, 1)) if (iClose(symbol,PERIOD_D1,1) > iClose(symbol,PERIOD_W1, 2)) HtfSsStatus[PairIndex] = blue; //Going down if (iClose(symbol,PERIOD_D1,1) < iClose(symbol,PERIOD_W1, 1)) HtfSsStatus[PairIndex] = red; //If we look for signal on Monday use Friday's if (iClose(symbol,PERIOD_D1,1) == iClose(symbol,PERIOD_W1, 1)) if (iClose(symbol,PERIOD_D1,1) < iClose(symbol,PERIOD_W1, 2)) HtfSsStatus[PairIndex] = red; }//if (OldHtfIndiReadBarTime != iTime(symbol, HtfSsTimeFrame, 0) )
Matters of general interest
Go here to download and run the script that will fill your platform's missing chart history: http://www.stevehopwoodforex.com/phpBB3 ... f=15&t=254
Read this post:
http://www.stevehopwoodforex.com/phpBB3 ... p?f=6&t=78 Newbie traders, read this for inspiration and warning. Those of you who have suffered losses, read it for inspiration.
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.stevehopwoodforex.com/phpBB3 ... ?f=15&t=79, at the bottom of the post.
Useful utilities/EA's/scripts
- Multi purpose trade manager: http://www.stevehopwoodforex.com/phpBB3 ... ?f=21&t=64
- Account equity analyser: 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 ... ?f=15&t=79
-