| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Multi 10:4 Trader EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1619 |
Page 40 of 160 |
| Author: | snailbeard [ Tue Mar 26, 2013 8:28 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Continuing on the theme of RSI versus STO Interestingly, there is now also a pending sell order just below D-S1 (Mid WP-WS1), so I have both a pending sell and pending buy. The buy order is twice as far away (>130 pips) as the sell order (>60 pips). I have not been through all the charts yet but if your using the EA to suggest opportunities then running it both ways gives more pairs to look at (which is how I am using it at the moment). ================================================== 18:47:35 open # buy stop 0.09 GBPUSD at 1.53140 ok ================================================== 22:00:14 open # sell stop 0.22 GBPUSD at 1.51173 ok ================================================== |
|
| Author: | MrLong [ Tue Mar 26, 2013 8:31 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Hi Brian, I just spoted a few of these, I'll look into it. |
|
| Author: | McNish [ Tue Mar 26, 2013 9:15 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Maybe my bad but I haven't come across this last rule you stated. It's more like "And AO opposite color (red for long)" than "Or AO below zero for a long". I will check again at my end and report back. None the less, apart from this, the EA is working exceptional. There are other few things but I will need to study the code to see if it is Design or Error. New bar would mean the H4 bar? Rather than hard code the Deletes, put user option to "Y/N delete Hedge Trades" after either one Sell / Buy fills. The Cable here has not yet filled either Buy or Sell trade. So now if price moves back up or goes down and fills one of them, delete the other with use input or without user input but only after either Buy or Sell filled, not before. You must be kidding man! It's people like Yourself and other Seniors here at SHF who make it worth for us to pursue the Train Wreck. Can't stress that enough. Regards, Max. |
|
| Author: | glabbeek [ Tue Mar 26, 2013 9:19 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Hi Andy, I think the best way to go is to determine how much of your profit you're willing to give back. So if you are up 3% and your profit drops to 2.5%, get out. (also known as a trailing profit). Even better would be to use the ATR or ADR. This way you would't miss trades that go up like a rocket and could have given you double digit profit percentages. An even more sophisticated approach could be adjust the trailing exit referenced to the weekly resistance levels. In between the weekly pivot and the weekly Res 1, a trailing stop of 0.25 ADR. In between Res 1 and Res 2, a trailing stop of 0.4 ADR. In between Res 2 and Res 3, a trailing stop of 0.55 ADR. This way you give your profits room the run without giving a way to much of your winnings. |
|
| Author: | MrLong [ Tue Mar 26, 2013 10:28 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Hi Max, I've had a look at the code for the TrendDirection and the code is correct, the EA should not take a trade in the opposite direction when the price is the otherside of the MA. I've added Pauls code to V1.09, so if it was the 10.4 RSI2_on_NT_TMA indi, that should fix the bug. I'll add a function to stop the EA taking LONG/SHORT trades, I think the guyz in US are not allowed a hedge trade, but I'll also make it optional. RULES FROM BOBS MANUAL: BUY TRADES BEST CASE SCENARIO. 1. When price is above the white 240 MA line on a 4H chart, you set your pending trades with the following signal(s). The signals can be used together or separately. You do not need each one to agree to set pending trades you can go with only one signal and the 240 MA line. 2. RSI 2 is flat-lined on the bottom 3. AO is below its 0 line Andy |
|
| Author: | MrLong [ Tue Mar 26, 2013 10:34 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Yes, I like the idea of a trailing percentage, kicks in when above whatever you set it at, the another setting if % drops below, close up shop. The beauty about the percentage approach, it will work with all sized accounts, on exactly the same ratio. Andy |
|
| Author: | Baluda [ Tue Mar 26, 2013 11:41 am ] |
| Post subject: | Re: Multi 10:4 Trader EA |
@MrLong, @Simplex, Minor issues in 'Multi_10_4_EAv1.08rsi_stoch_JM':
|
|
| Author: | slipshod [ Tue Mar 26, 2013 12:48 pm ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Andy, quick question re GetNextResistance() and GetNextSupport() If I read the logic correctly, shouldn't the lines that say:- if (bidPrice - pivot < (MinimumToNextSR / PFactor(symbol))) // from GetNextResistance ... actually read pivot - bidPrice? And in GetNextSupport, bidPrice - pivot? In other words, is this part inverted compared to what it should be? Reason being the pivots have been searched find one above and another below the price. With GetNextResistance the one above is used, and the lower one with GetNextSupport. Hence if you're looking at the one above, subtracting its value from bidPrice, which is lower than it, will always result in a negative number which makes the logic then look to the next pivot beyond it. Also there should be checking to ensure that you're not going to go off the end of the array or beyond the start of it in the code following that if statement. Hope I've explained that clearly. |
|
| Author: | McNish [ Tue Mar 26, 2013 1:23 pm ] |
| Post subject: | Re: Multi 10:4 Trader EA |
I thought for once I will beat slipshod in spotting a bloop But alas, I just missed again. Same here Andy. Correcting the code, it gave 2 more trades instantly. Earlier I was thinking that probably the H/L of the bar was the check point and the pending pivots was put that afar to keep it away from spikes. If this is the original Idea, it's not bad at all really. I get what you said about the rules to open trades. Here's another one. MA is good but no RSI, neither the AO match for the pending. |
|
| Author: | MrLong [ Tue Mar 26, 2013 1:52 pm ] |
| Post subject: | Re: Multi 10:4 Trader EA |
Hello slipshod, Where did the name come from by way? //+------------------------------------------------------------------+ //| expert Get Next Resistance function //+------------------------------------------------------------------+ double GetNextResistance(string symbol) { double askPrice = MarketInfo(symbol, MODE_ASK); double digits = MarketInfo(symbol, MODE_DIGITS); RefreshRates(); double pivot; double top = 0; if ( UseSR2 ) top = MR2; if ( UseMidSR2) top = R1; if ( UseSR1 ) top = MR1; for (int cc = 0; cc < ArraySize(Pivots); cc++) { if (askPrice > Pivots[cc] && askPrice < Pivots[cc + 1] && askPrice < top) { pivot = NormalizeDouble(Pivots[cc + 1], digits); if (askPrice - pivot < (MinimumToNextSR / PFactor(symbol))) pivot = NormalizeDouble(Pivots[cc + 2], digits); return(pivot); } } } No this looks correct to me, because we are looking for a LONG trade, ASK would be high and pivot would be low. |
|
| All times are UTC | Page 40 of 160 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|