| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Pivoty Slope https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=723 |
Page 1 of 7 |
| Author: | SteveHopwood [ Sat Jul 21, 2012 5:56 pm ] |
| Post subject: | Pivoty Slope |
SERIOUS WARNING
DO NOT USE THIS EA ON A LIVE TRADING ACCOUNT. IT IS EXPERIMENTAL. Background 'Bob and Jem and Shelley's Pivot Basket auto-trader' (http://www.stevehopwoodforex.com/phpBB3 ... f=44&t=658) is the inspiration for this one. I found myself wondering what would happen if we had an individual-pair ea that uses Slope as part of the trading decision. I started a demo last week, trading a break of the D1 pivot so long as all three pivots line up. It has been successful and it is fascinating to watch trades that start badly eventually return to profit - Bunker's 'snap back' perhaps? I toyed with the idea of adding Slope to the mix, but did not get around to doing so and so have coded Pivoty Slope to do this for me. Pivoty Slope trades long when the Weekly pivot is above the Monthly, and short when below. EnforceTripleAlignment forces PS to wait for all three pivots to line up, so Daily > Weekly > Monthly for long, vice versa for short. In addition, Slope is used to ascertain the overall trend and forces PS to wait for the pivots to line up in the direction of the trend, or sit out if either there is no trend or the pivots do not line up. There are the usual Slope inputs; a zero value in the relevant xxxTimeFrame turns them off. My original plan was this, taking a buy as an example (and vice versa for a sell). Buy when:
In backtesting on M5 Open Candle, with PivotCrossTimeFrame = 240 was magnificently profitable. I only noticed that I had not coded the D1 pivot cross in a visual backtest. I added the cross code and it killed trading stone dead - maybe two trades in umpteen months. Mind, they were profitable. So, we have a group of inputs with a vast amount of flexibility. There is a wide range of combinations of pivot/Slope enforcement to play with. Inveterate tinkerers have oodles to inveterately tinker with. Have fun guys. Other inputs I leave you to work most of them out for yourself. Here are those that might not be obvious to noobs:
As usual, I have not a clue what the best approach is. Using a stop loss kills the account in backtesting. Coders who look into bool LookForTradeClosure(int ticket) will see commented out attempts to close trades on a recross of the D1 pivot; these kill the account. By default, I have adopted the BreakEven/JumpingStop combo I have been manually demoing this week - successfully. How to exit the inevitable loosing trades will be one of the keys to success here. Maybe this will become more obvious with demo testing. Slope Guys, you really need to understand what the Slope indi tells you, so do not take this brief summary as The Definitive Statement. Basically, Slope tells us this:
You do not need Slope on your chart or in your indi folder; Baluda sent me the code that brings the calculation 'in-house' a long time ago. Our thanks to Paul for that. In conclusion Let's see if this puppy has a decent tail to wag. Have fun. Matters of general interest Read this post: http://www.stevehopwoodforex.com/phpBB3 ... p=800#p800 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.stevehopwoodforex.com/phpBB3 ... p=803#p803, 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.stevehopwoodforex.com/phpBB3 ... p=516#p516 Account equity analyser: http://www.forexfactory.com/showthread. ... ost4693716Also 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=803#p803 |
|
| Author: | garyfritz [ Sat Jul 21, 2012 6:05 pm ] |
| Post subject: | Re: Pivoty Slope |
Let me make sure I understand... ...but you forgot to do the DP check, so you were just buying when HTF slope is happy and all 3 pivots line up? And that was what worked well? So set EnforcePivotCross to false (NOT the default value) for the magnificently profitable version? |
|
| Author: | SteveHopwood [ Sat Jul 21, 2012 6:17 pm ] |
| Post subject: | Re: Pivoty Slope |
Yup. At first, I had not even coded that Bid must be the correct side of D1 pivot. |
|
| Author: | zen4x [ Sat Jul 21, 2012 6:55 pm ] |
| Post subject: | Re: Pivoty Slope |
I would love to be a genius like you guys, I am serious |
|
| Author: | Bunker [ Sat Jul 21, 2012 8:11 pm ] |
| Post subject: | Re: Pivoty Slope |
Oh Man!, the elasticity theory is now becoming the slingshot theory. We use the pivots as the sticks holding the rubber band! Steve!! this stuff prevents me from sleeping at night! It is simply out of this world all the concepts that emerge from the pivot and slope indicators!!! OK…before I start all my analysis (where is the mini-icon for drooling ?) Let’s see if I get it right. So, in a buy example If I place the EA on a chart where WP > DP and…. SCENARIO 1: HtfSlope >= 0.8 but DP < WP, the trigger will be when DP crosses WP to get the right order ? SCENARIO 2 We get the right pivots order but HtfSlope < 0.8, the trigger will be when HtfSlope move to 0.8 ? Did I get it ? |
|
| Author: | grimweasel [ Sat Jul 21, 2012 8:16 pm ] |
| Post subject: | Re: Pivoty Slope |
Very interesting Steve - I love it that you forgot to code the daily pivot cross and it worked better!! Downloaded ready for testing on Mon open! |
|
| Author: | SteveHopwood [ Sat Jul 21, 2012 9:56 pm ] |
| Post subject: | Re: Pivoty Slope |
Yep. If WP > MP, as described in post 1. Yep. If you have your inputs set up for this. As described in post 1. I believe I explained all this in post 1? |
|
| Author: | Bunker [ Sun Jul 22, 2012 12:41 am ] |
| Post subject: | Re: Pivoty Slope |
You sure did ! I was just verifying my english comprehension skills. I think I'm doing ok for a Frenchie Thanks for confirming ! Bunker |
|
| Author: | ivanyong [ Sun Jul 22, 2012 1:05 am ] |
| Post subject: | Re: Pivoty Slope |
Thanks you very much Steve, I will test it and see how good is the result. |
|
| Author: | sandybeach [ Sun Jul 22, 2012 3:40 am ] |
| Post subject: | Re: Pivoty Slope |
Another big thank you, I can't believe how many systems Bob & friend's TMA Slope is enhancing. Thanks for this new toy, will put it into the mix this week and report how it goes. Cheers Marlene |
|
| All times are UTC | Page 1 of 7 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|