Iceman777 Posted May 25, 2010 Report Share Posted May 25, 2010 Hi, Can someone please make this ea work on 5 digits please? works fine currently on 4 digit http://www.4shared.com/file/5oaO5znA/Paulo_Costa_Hedge.html Thanks Steve Quote Link to comment Share on other sites More sharing options...
dinj Posted May 25, 2010 Report Share Posted May 25, 2010 Here you go: http://www.multiupload.com/DQEY2KDV8Y I can't promise it works, I modded it to be automatic but only tested on 4digits. Have a go and tell me if it worked. Btw, is that EA good? Which pairs and TF does it work on? Quote Link to comment Share on other sites More sharing options...
huuu Posted May 25, 2010 Report Share Posted May 25, 2010 Here you go: http://www.multiupload.com/DQEY2KDV8Y I can't promise it works, I modded it to be automatic but only tested on 4digits. Have a go and tell me if it worked. Btw, is that EA good? Which pairs and TF does it work on? looks like it came from here: http://www.forexfactory.com/showthread.php?t=184861 Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 26, 2010 Author Report Share Posted May 26, 2010 Thanks Dinj for trying but still giving error code 130 for 5 digit accounts This is the sure fire hedging strategy. I have manually traded this on GBPUSD 1HR with great success over the last few weeks. The key is not to trade this when markets are very quiet. Can someone have another crack at this to make it work for 5 digits please? You cant backtest this either, not accurate. Over the last 2 days on 4 digit this robot at 0.1 lot trading GBPUSD took account from $500 to $702. $2 floating profit as we speak, when i backtest same period, blows account Quote Link to comment Share on other sites More sharing options...
dinj Posted May 26, 2010 Report Share Posted May 26, 2010 Thanks Dinj for trying but still giving error code 130 for 5 digit accounts This is the sure fire hedging strategy. I have manually traded this on GBPUSD 1HR with great success over the last few weeks. The key is not to trade this when markets are very quiet. Can someone have another crack at this to make it work for 5 digits please? You cant backtest this either, not accurate. Over the last 2 days on 4 digit this robot at 0.1 lot trading GBPUSD took account from $500 to $702. $2 floating profit as we speak, when i backtest same period, blows account Hi Iceman. Try again, but this time increase your account balance or decrease the lot size. I downloaded Alpari to backtest and it works for a while, until it blows the account and all the new orders get error 130 because it can't send the order as the balance is too low. Tell me if it works, cause if it doesn't then it might be that you're testing it on an ECN account. Quote Link to comment Share on other sites More sharing options...
radicaltour Posted May 26, 2010 Report Share Posted May 26, 2010 hi Iceman, here's a second crack at it http://www.multiupload.com/TZTVAVGEJ2 I backtested it and it works for 4 and 5 digits and also ECN. By the way, the FF thread seems to say that there are other issues with this EA. Have you resolved them or do you have your own twist to make this thing work better? Thanks. Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 26, 2010 Author Report Share Posted May 26, 2010 very odd, it places trades on backtest but on forward test still will not trade error 130 still Tried setting up demo with high balance but still not good. tried two different 5 digit brokers GoMarkets and tadawulFX, again both backtest but both will not trade in forward demo or live test Quote Link to comment Share on other sites More sharing options...
dinj Posted May 26, 2010 Report Share Posted May 26, 2010 (edited) very odd, it places trades on backtest but on forward test still will not trade error 130 still Tried setting up demo with high balance but still not good. tried two different 5 digit brokers GoMarkets and tadawulFX, again both backtest but both will not trade in forward demo or live test What are your settings for losses and lotsize and account balance? EDIT: I just set it up on Alpari UK GBPUSD H1 demo, 5000 deposit with 0.5 lots and it imidiately opened 2 trades... What kind of Tadawul account do you have? Is it ECN? Edited May 26, 2010 by dinj Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 26, 2010 Author Report Share Posted May 26, 2010 Here is another way to attack this if we can get this EA working for 5 digit brokers This ea magneto works the same way and does work on 5 digit, you just need to set lines on your chart for support and resistance and rename them hline and lline then the EA automatically sets pending orders on these lines and when it hits onethe EA starts and workd exactly the same as paulo costa EA Only problem is that it sets TP 60 and SL 120, double what paulo costa does I find this does not work as well. Can someone look into this code and set it up so you can adjust the distant, SL and TP levels like in the paulo costa EA? then we might have a good comprimise to something that will work on 5 digits http://www.4shared.com/file/M5-gY3t4/Magneto.html Quote Link to comment Share on other sites More sharing options...
dinj Posted May 26, 2010 Report Share Posted May 26, 2010 Yep, it's working fine on alpari. I mistook though. It opened a sell and it has a buystop ready. I'm not surprised about gomarkets, but it should work on tadawul if you have enough balance. Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 26, 2010 Author Report Share Posted May 26, 2010 Yes you are right dinj, it does now trade on tadawulfx with higher balance I was testing gomarkets with higher balance excellent, I am testing 1 HR GBPUSD with TP 30 sL 60 stop distance 30 I will post results this weekend from my other $500 demo that has been running all week on these settings Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 27, 2010 Author Report Share Posted May 27, 2010 (edited) $500 demo in 3 days up to $1198 I may have a way to reduce the risk considerably because if the pair continues in a 60 pip range for too long then you risk margin call as the pending orders keep doubling the lot size If someone can code this to open a max of 4 trades but the fourth trade needs to be smaller than the third trade so from that point on the pair can range forever but it will eventually hit one of the SL's and if the sequence below can be coded then worse case you lose 60 pips, keep in mind 95% of the time it wont hit the fourth pending order as it looks for 30 pips each time so this would make this EA safer The sequence needs to go like this 0.10, 0.30, 0.60, 0.40 so if 0.10 is buy, then 0.30 will be sell stop, if hit then 0.60 will be buy stop, if hit then 0.40 will be final sell stop. Will 100% hedge at that point and worth losing 60 pips than blowing the whole account, then sequence starts again Can someone code this please using latest version above as this works on 5 digits now http://www.4shared.com/file/izhqM2vL/Paulo_Costa_Hedge.html Edit - Even better, after the fourth trade could it enable a break even feature so if the pair moves to the 50% median point (between the two SL's) then it could close the trade without any loss Edited May 27, 2010 by Iceman777 Quote Link to comment Share on other sites More sharing options...
dinj Posted May 27, 2010 Report Share Posted May 27, 2010 hi iceman here's something to play with: http://www.multiupload.com/09XYC00CC3 I added the first part (0.1 0.3 0.6 0.4 and that's it) to the code I didn't add the breakeven because i didn't understand how the ea really works and when to apply the breakeven. The problem is, like all martingales, once in a rare while, it comes the perfect storm that kills the account. By hedging, this ea is protected against trending, but still, when it is not trending, that's when it is bad for it. The thing is, you wanted to decrease the risk by doing that, but by decreasing the risk you also decrease the profit. That's maybe why the 1 3 6 4 strategy is not as good on backtest. What do you think? radicaltour 1 Quote Link to comment Share on other sites More sharing options...
radicaltour Posted May 27, 2010 Report Share Posted May 27, 2010 from a strategy standpoint, doesn't it make sense to use this EA on GJ and EJ during london open (breakout)? I just think from a statistical standpoint, these 2 pairs during that hour will almost guarantee to move more than 100 pips. So you're range would be around 45-60 pips. Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 27, 2010 Author Report Share Posted May 27, 2010 Dinj, in the backtest the EA would not progress past 0.30 hence the losses when it hit the opposing SL. Here is my statement this week on demo to show my point better http://www.4shared.com/document/jmgGWB53/DetailedStatement.html Now it has only hit the 1.20 progression order twice (and is in one currently), so in what I want to do this would have hit the 0.40 three times instead (remember 0.10,0.30,0.60,0.40) So (assuming there is no breakeven function which would be even better after it hits the 0.40 progression) we would have lost 60 pips for all three orers = 180 pips which for the demo would equal $180 loss That $180 loss I can live with because even with these "protection" losses the account still made $750 pure profit in 4 days from a $500 demo!!! Now if we can also code a breakeven only to kick in when it hits the 0.40 (or 4th pending order that gets hit) we would lose even less this is all due to the probability that 90% or more of the time the pair will not go past the 2nd or 3rd progression Hopefully you can see how great this EA can be if we can code these changes Quote Link to comment Share on other sites More sharing options...
dinj Posted May 28, 2010 Report Share Posted May 28, 2010 Wow. It's unbelieveable sometimes what happens inside the program. If someone has a clue, I would love to know why, here: if(a==3b) is true for a=3 and b=a but it is false for a=0.1 and b=0.3, in which a and b are doubles, not ints. actually it is even true for a=1.5 and b=0.5, but not 1.2 and 0.4. crazy... This took me more than an hour until I realized that the problem was there. The last mod I sent you worked and I tested it if you backtested with Lots=1, which is why I found it very strange when you said it only went until 0.3. I went around it and put it in a different way. Give it a go: http://www.multiupload.com/UNKAFL9KKM About the breakeven: From what I understood, in theory the EA creates a trade in one direction. If the price goes 30 pips on the opposite direction it creates another one in that opposite direction, but larger trade... and so on. Can you give an example about how the breakeven would work, like: Trade A: 0.1 BUY at 1.5030 TradeB: 0.3 SELL at 1.5000 Trade C: 0.6 BUY at 1.5030 Trade D: 0.4 SELL at 1.5000 From what I understood, before, it closed all the trades at the same time when the highest trade reaches the take profit of 30 pips. What I didn't understand, and using the example above, when would the breakeven work? and to be more precise, I think that last trade is unnecessary. Here's why: Whe you open the last trade, and using the previous example, you're gonna have in todal 0.7 lots short and 0.7 long, which means, whereever the market goes, the drawdown will always be the same, it will never break even. I don't know if you understood, what do you think? Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 28, 2010 Author Report Share Posted May 28, 2010 You are spot on Dinj regarding the breakeven, yes you cant get it to breakeven, didnt think this through enough Would still be better to cop the 60 pip loss each time the fourth trade gets triggered as this is rare enough to keep this EA remaining profitable, especially seeing you can contol the times to trade the EA I will try your updated version when I get home tonight Quote Link to comment Share on other sites More sharing options...
dinj Posted May 28, 2010 Report Share Posted May 28, 2010 Something came to my mind. On the backtest of the original version, every once in a while it kills the account. What came to my mind was: What if this EA was implemented inside a trend robot or even a counter-trend robot. Because this robot doesn't perform well on range markets, then if there was another robot with a good entry point so that this one would enter in action I don't know if it would work. Another idea was: Because this robot is good on crazy markets, in other words, when the volatility is high, what if a volatility filter was added for the entry point? What do you think? Quote Link to comment Share on other sites More sharing options...
Iceman777 Posted May 28, 2010 Author Report Share Posted May 28, 2010 volatility filter would be good. Even running this on other pairs like GBPJPY and only running robot near news events would also be beneficial Quote Link to comment Share on other sites More sharing options...
hanumanth Posted March 15, 2011 Report Share Posted March 15, 2011 can someone modify this Ea, so that it stops trading after reaching total profit of $50 or $100 per day and start trading in the next day only. Profit is limited to only 50-100$ per day. since it gives consistent profit. Thanks Hanumanth Quote Link to comment Share on other sites More sharing options...
KENG Posted June 30, 2011 Report Share Posted June 30, 2011 can someone modify this Ea, so that it stops trading after reaching total profit of $50 or $100 per day and start trading in the next day only. Profit is limited to only 50-100$ per day. since it gives consistent profit. Thanks Hanumanth pls pls, tq Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.