forexample Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Most of the bugs are ironed out now, except that the Fib SL code is a bit wonky. There's an option in the EA to use a fib level for SL. At the moment it is at 138, but can be changed to any other fib level depending on trade direction. It's a bit bugged and placing SL on the wrong fib at the moment There's also an issue of buy trades occuring when SR break hasn't broken. I assume this has to do with the Ask price clipping over the line, but the Bid price not doing so. Even still, drawdown is huge (as in my own trading ideas) - but most of the time trades are hitting TP. Perhaps it would be easier to trade on the retracement levels after the initial break, rather than the break itself? Just an idea anyway. I will release some tests later on. So far, the EA is Asskicker, and not Kickass. Perhaps I will release it anyway, and you guys can all try optimizing the settings (Momentum, Kicker, and SL settings should prove most interesting to optimize). Good work Rio. I also used the daily candle/weekly candle fibbing thing for a while. If that could be coded and backtested there is a world of opportunity waiting I think, though let's save that for once the HarshRioEA is bugged out. Your idea to enter only on retraces after the conditions for a trade is good as it will provide much better RR. I guess it all depends on whether most trades rush straight to TP after breaking SR or they tend to retrace and backtests would help work out which level is best to enter at - if that could be coded to be a fib level as well it would be amazing. Jealous of your coding skills! FE Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 10, 2010 Author Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Hey Peeps, See - I already got one EA coded by one of our members here. It works on Retracements by SR Levels. This EA is a good concept, But I also would want an EA which works on the breakout of S/R Levels. See , candle penentration on the Kicker INdicator is the big deal - we immidiately go in to trade after the candle satisfaction , MTF_MACD & Momentum rules are satisfied. Trust me , this system is more active , Frequency of trades increase drastically, Drawdown decreases drastically & Moreover the Breakout of S/R Levels means that the trend is forming up - Early detection to a trend & can be used on any TF and can give 50-70 Pips ( m15 TF ) Quite easily many times on a M15 TF. I also liked the retracement method, it is also good. Good Work Everyone! :D Harsh124 \m/ Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
Rio Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Well, I think the bugs are mainly squished... I have added minimum profit and maximum profit settings (so you don't enter potential trades which are too small to profit, and trades which have the potential for massive drawdown.) You will all eventually have fun optimizing those levels too. I still don't yet have MTF_MACD rules, or candle breaking rules. Please advise me on that. I might add retrace trades within the 38/50/61 fib area as well. An interesting addition would be to modify SL and TP if the trade breaks a consecutive SR level before completing the first, and adding an additional trade. I will leave the EA running on a demo $5000 account on the 6 majors on the M15 to see what happens. So far, the EURUSD bot made a nice 12 pip profit trade (at 0.5 lots, so $60). It's an FXDD demo, so spreads will have a lot to do with trades getting taken (or not) and FXDD spreads are fairly high even on demo, so it should be a good test. Min TP value is set to 5, so potential trades which do not have a probability of scalping 5 pips will be avoided. We'll see what the account looks like tomorrow (if it's still there!), and then I will consider releasing what I have at the moment. I'm working on backtests as well. Just not quite yet. Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 10, 2010 Author Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Hey Rio, Nice to hear that, The rules are , FOR LONG :- => The Kicker has recently changed from Red to Blue or Yellow To Blue. => The Candle has to pierce the Kicker ( 81 ) , Upwards and has to close 50 % upwards, 50 % means that half or more than half of the candle should be closed above the Kicker ( 81 ). => Momentum is above 100. => MTF_MACD is above 0. => Open your Long position after the last candle is closed 50 % above the Kicker ( 81 ) , as in open on a new CANDLE. A standard 10 Pip Take Profit should be set for H1 TimeFrames and A standard 40 Pip Take Profit should be set on M15 Timeframe. Trailing stop nd jumping profit -> Jumping profit as in the profit gets locked at every 20 pips nd the take profit is pushed further for further achieving pips! Another way of closing trades is , when Kicker ( 35 ) changes from Blue to red ! For Short :- Go Vice Versa to what I told in Long! I hope I made myself clear , Any More doubts I am there! :D Harsh124 \m/ Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
Rio Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy => The Kicker has recently changed from Red to Blue or Yellow To Blue. This can't be done because the indicator has no way of detecting yellow lines. Kicker will need a bit of a rewrite to accomodate this I think. => The Candle has to pierce the Kicker ( 81 ) , Upwards and has to close 50 % upwards, 50 % means that half or more than half of the candle should be closed above the Kicker ( 81 ). => MTF_MACD is above 0. => Open your Long position after the last candle is closed 50 % above the Kicker ( 81 ) , as in open on a new CANDLE. Just a warning... the more rules you implement, the less often we will get trades, and there's no guarantee that they will all be winners. I've made convoluted trading system EAs before and they mostly explode anyway. A standard 10 Pip Take Profit should be set for H1 TimeFrames and A standard 40 Pip Take Profit should be set on M15 Timeframe. Trailing stop nd jumping profit -> Jumping profit as in the profit gets locked at every 20 pips nd the take profit is pushed further for further achieving pips! Easy to implement Breakeven and Trailing stop. Only problem with that we should really be aiming for solid achievable fib TP levels and not guessworking where the trade is going to end up. Secondly, you'd need different inputs per trade timeframe. Another way of closing trades is , when Kicker ( 35 ) changes from Blue to red ! That's doable, but then the kicker will fake out on you occasionally and cause you to lose where you may have otherwise completed a winning trade. I think kicker should be used as confirmation, but not as a controlling mechanism of the trade. I've tried making an EA with the trend slope line indicator and that happened more often than I liked. It sounds like a good idea on paper, but it doesn't work in backtests. Also, in the EAs current testing, the SL is bigger than the TP. Eventually at this rate, when it loses, it will lose hard and wipe out a lot of good trades. Ideally we should be trading with bigger TPs than SLs, and we should change our trading strategy to address that. Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 10, 2010 Author Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Rio - About Kicker ( 35 ) , I meant checking after a bar is closed and it turns red then we close trade. *Experimental* I have suggested the inputs which I trade Live, And Mate I am not implementing more rules - THESE are the ONLY RULES we need for the Original Kicker System, which is HIGHLY profitable! And If you can look in to kicker - about that yellow thing, it'll become much more compaitible to the system, But for the time being, The Best Trading Frequency & Profitability comes from the Set of Rules in my Last Posts. Harsh124 :-bd Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
sodeypunk Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy harsh, what do you mean by momentum above 100. how are you checking momentum. Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 10, 2010 Author Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy I mean that the Momentum Line Goes above the 100 Level! Harsh124 Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
paws Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Looking at back history, looking very good, :-bd harsh! Quote Link to comment Share on other sites More sharing options...
sodeypunk Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy I mean that the Momentum Line Goes above the 100 Level! Harsh124 ok, i didnt realize there was a momentum indi inside mt4, ;)) Quote Link to comment Share on other sites More sharing options...
Rio Posted March 10, 2010 Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy I let the EA I made run for last last 10 hours or so. So far, a steady stream of green TP trades in my account history! :-bd So far so good, but some trades are still hanging into drawdown, by about 30 pips or so. X_X There is also a lingering bug in which a trade did not get set with a TP or SL, due to calculations placing the TP too close to trade entry. I closed it manually, but obviously some extra checking needs to be done to avoid the problem. Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 10, 2010 Author Report Share Posted March 10, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Rio - Mate you still haven't sent me our Kick a** expert :(( When are you going to send me mate :-S Harsh124 Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
Rio Posted March 11, 2010 Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy It's still got that lingering bug, and I'll add the MACD indicator as well. To whet your appetite for results, here are some. I'm still calling the EA AssKicker, because with the following results I got from it overnight, you'll see why... SL was set to the opposite 138 fib, and that GBP trade hit it. Honestly, we should either change the strategy, or reduce the SL to a more manageable level. Either way, having a small profit/loss ratio is a sure way to lose demo money ;) 85062014 2010.03.10 09:37 balance Deposit 5 000.00 85063377 2010.03.10 09:58 sell 0.50 eurusd 1.3561 1.3605 1.3549 2010.03.10 10:01 1.3549 0.00 0.00 0.00 60.00 10002 10002[tp] 85074800 2010.03.10 12:43 buy 0.50 usdjpy 90.44 89.93 90.54 2010.03.10 16:29 90.54 0.00 0.00 0.00 55.22 1002 15[tp] 85075051 2010.03.10 12:48 sell 0.50 gbpusd 1.4882 1.4988 1.4859 2010.03.10 18:04 1.4988 0.00 0.00 0.00 -530.00 1002 15[sl] 85088401 2010.03.10 16:23 buy 0.30 eurusd 1.3629 1.3584 1.3634 2010.03.10 17:29 1.3634 0.00 0.00 0.00 15.00 1002 15[tp] 85093310 2010.03.10 17:22 sell 0.30 usdchf 1.0723 1.0762 1.0718 2010.03.10 17:51 1.0718 0.00 0.00 0.00 14.00 1002 15[tp] 85093636 2010.03.10 17:29 buy 0.30 eurusd 1.3636 1.3581 1.3644 2010.03.10 17:52 1.3644 0.00 0.00 0.00 24.00 1002 15[tp] 85097903 2010.03.10 18:13 buy 0.40 gbpusd 1.4974 1.4901 1.4980 2010.03.10 18:15 1.4980 0.00 0.00 0.00 24.00 1002 15[tp] 85098593 2010.03.10 18:29 buy 0.40 gbpusd 1.4974 1.4901 1.4980 2010.03.10 21:55 1.4980 0.00 0.00 0.00 24.00 1002 15[tp] 85101738 2010.03.10 19:15 sell 0.30 audusd 0.9144 0.9208 0.9138 2010.03.10 19:15 0.9138 0.00 0.00 0.00 18.00 1002 15[tp] 85102453 2010.03.10 19:22 sell 0.30 audusd 0.9144 0.9208 0.9138 2010.03.10 19:29 0.9138 0.00 0.00 0.00 18.00 1002 15[tp] 85103853 2010.03.10 19:48 sell 0.30 audusd 0.9144 0.9208 0.9138 2010.03.10 20:53 0.9138 0.00 0.00 0.00 18.00 1002 15[tp] 0.00 0.00 0.00 -259.78 Closed P/L: -259.78 Open Trades: Ticket Open Time Type Size Item Price S / L T / P Price Commission Taxes Swap Profit 85092494 2010.03.10 17:11 buy 0.40 usdjpy 90.80 90.21 90.87 90.33 0.00 0.00 0.00 -208.13 1002 15 0.00 0.00 0.00 -208.13 Floating P/L: -208.13 Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 11, 2010 Author Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Mate, Please just send over the expert, I want to make some additions ( from my side ) & try my optimization, Now I am getting tired of asking you to send the expert to me again and again! Harsh124 Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
Rio Posted March 11, 2010 Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy It's not ready yet. I know you're impatient, but really, this thing is still bugged and will wreck your account in its current state. I will post it soon, but here are the trades since I last sent them. you will note that a single loss will wipe your account out very fast. Accuracy means nothing if the losses are huge. 85092494 2010.03.10 17:11 buy 0.40 usdjpy 90.80 90.21 90.87 2010.03.11 05:25 90.21 0.00 0.00 0.00 -261.61 1002 15[sl] 85093310 2010.03.10 17:22 sell 0.30 usdchf 1.0723 1.0762 1.0718 2010.03.10 17:51 1.0718 0.00 0.00 0.00 14.00 1002 15[tp] 85093636 2010.03.10 17:29 buy 0.30 eurusd 1.3636 1.3581 1.3644 2010.03.10 17:52 1.3644 0.00 0.00 0.00 24.00 1002 15[tp] 85097903 2010.03.10 18:13 buy 0.40 gbpusd 1.4974 1.4901 1.4980 2010.03.10 18:15 1.4980 0.00 0.00 0.00 24.00 1002 15[tp] 85098593 2010.03.10 18:29 buy 0.40 gbpusd 1.4974 1.4901 1.4980 2010.03.10 21:55 1.4980 0.00 0.00 0.00 24.00 1002 15[tp] 85101738 2010.03.10 19:15 sell 0.30 audusd 0.9144 0.9208 0.9138 2010.03.10 19:15 0.9138 0.00 0.00 0.00 18.00 1002 15[tp] 85102453 2010.03.10 19:22 sell 0.30 audusd 0.9144 0.9208 0.9138 2010.03.10 19:29 0.9138 0.00 0.00 0.00 18.00 1002 15[tp] 85103853 2010.03.10 19:48 sell 0.30 audusd 0.9144 0.9208 0.9138 2010.03.10 20:53 0.9138 0.00 0.00 0.00 18.00 1002 15[tp] -- 11 Mar 2010, 17:14 -- Oh bugger it... I'll release the code I have now. It will most likely kill any account it touches.... I haven't given it a thorough backtesting, so maybe somebody will be able to do that for us or something. Remember that this is alpha software and should not be used live unless you love giving your money away to the forex market and never getting it back. Note that I never fixed a bug in the code which caused one of my test trades to open without setting a SL and TP due to invalid inputs. This happened because of the ECN mode (which opens a trade and then sets SL/TP data - except that in the bug's case, it failed to set this) install by dropping the experts folder into your main MT4 folder and merging. The EA only needs the Kicker indicator in order to work. SR and momentum are handled internally. [url]http://www.4shared.com/file/238783395/db5de41a/AssKicker.html[/url] Some exaplanation about inputs PipGap. Number of pips above level needed before trade confirmed MinProfit - minimum number of pips profit required before considering opening a trade MaxProfit - maximum number of pips allowed to enter a trade on (to avoid potential drawdown) SLFibCode - input number of which fib you'd like the SL to be at. The tightest SL is at the 50. You can also enter 0 for no stop loss and watch the account blow. Kicker and Momentum logic - if you want to optimize the indicator parameters Trade Time Settings - unused. I was going to add a GMT hour filter to the code but I really can't be bothered at this point Trade TimeFrames - the EA can trade the same strategy on multiple timeframes. At the moment it is hardwires to 2 (M15) but you can simultaneously make it work across multiple timeframes. Doing that may kill your account, but that's not my problem. Kudo if you think it was worth the effort. Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 11, 2010 Author Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Rio, I can see some brilliant piece of codework! But I wasn't able to find out where the EA recognizes candle piercing pattern! Once again, thank you for investing your time to programme this EA! Harsh124 Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
Rio Posted March 11, 2010 Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Rio, I can see some brilliant piece of codework! But I wasn't able to find out where the EA recognizes candle piercing pattern! Once again, thank you for investing your time to programme this EA! Harsh124 It doesn't recognize candle piercing patterns. Can you post a visual example of what you mean? Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 11, 2010 Author Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Yes Sure & Could you forward me any of your email or Instant Messenger ID so we could discuss this more precisely ? I found out that certain trades were not closed on thier desired stoploss levels - I changed the Fibonacci stop loss level to a fixed stoploss however certain trades refused to close at s/l level. And certain Unconventional ( Unrequired ) trades open up in a large number and all close at some stop loss level which loses quick cash. And Yes, Here's what I mean by Candle Piercing :- http://img709.imageshack.us/img709/1874/capu1.jpg The First Red Box ( Left Side ) , Shows a big pip trade, the candle pierces Kicker ( 81 ) & then also breaks S/R Levels, 10-15 pip ideal tp is seen in this. The White Box Shows , A Nice Trade of 5-10 Pips can be expected here. Though the market trended nicely, its not necessary everytime. The Second RED TRADE ( Right Side ) IS NOT AN IDEAL TRADE, because the Candle has not been able to Pierce Kicker from downwards to upwards for more than 50 %. Candle Piercing means, that the Candle has to open from Below the Kicker ( 81 ) and close at a level which is greater than 50 % , What I mean is More than 50 % of the candle should CLOSE above kicker ( 81 ) , MTF_Macd of 7,19,7 should also be considered important, To go Long it should be above zero and to go short it should be below zero - This Indicator - Filters out a ton of bad trades. And Here is the Formula for Candle Piercing. :- If Close - Kicker > Kicker - Open - Then Go Long If Kicker - Close > Open - Kicker - Then Go short Kicker ( 81 ) is used in the above formula - However this formula shouldn't be considered if the Candlesticks DON'T Pierce Kicker. You know about Momentum, so no need to explain that! P.S. We go in to the trade after the previous candle closed & the signal became confirmed. For More Ease I have added Stars on the candles where we have to open our trade. Any more doubts, I am there ! :D Harsh124 Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
danmarius7 Posted March 11, 2010 Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Rio, Kudos for you not for completing the work, but for the nice helping comments that were time consuming, but helps 100 people looking at your code. Quote Link to comment Share on other sites More sharing options...
paws Posted March 11, 2010 Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy As a step toward ea development, consider using an indicator to test this system: Long signal: 1. Kicker( W ): (Value W variable user input) A. slope of X or greater (X variable user input) B. positive slope maximum of Y bars previously (Y variable user input) C. Midpoint of bar > Kicker - Z distance (Z variable user input) 2. Momentum A. On/off switch for both long and short signals B. Momentum period of M for both long and short signals (M variable user input) C. Momentum > 100 + N (N variable user input) 3. MTF MACD A. On/off switch for both long and short signals B. Period P variable input Short signal: 1. Kicker( W ): A. slope of X or less (X variable user input, negative of 1. A. long above) B. negative slope for maximum of Y bars previously (Y variable user input, same Y for long signal) C. Midpoint of bar < Kicker + Z distance (Z variable user input, negative of 1.B. above) 2. Momentum A. On/off switch for both long and short signals as 2. A. above B. Momentum period of M for both long and short signals (M variable user input) C. Momentum < 100 - N (N as in 2. C. above) 3. MTF MACD A. On/off switch for both long and short signals B. Period P (same P value as above, variable input) Alert on/off switch when conditions above met Just a thought - you could go through the signals relatively quickly and eyeball in what PT and SL should be, how the breaking of SR lines figue in on PT's Quote Link to comment Share on other sites More sharing options...
oktoeight Posted March 11, 2010 Report Share Posted March 11, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy PAWS thats actually a great idea - such an indicator would be VERY GOOD - to bad i cant program it, but i am sure one of our great coders will pick up your concept KUDO from me :) Quote Link to comment Share on other sites More sharing options...
paws Posted March 12, 2010 Report Share Posted March 12, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Thanks oktoeight. I've done a little progamming in Tradestation "easylanguage" but nothing in MT4. Would need to know the logic of kicker to do anything. Quote Link to comment Share on other sites More sharing options...
Rio Posted March 12, 2010 Report Share Posted March 12, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy For my next trick, I think I will make the EA I made work in reverse. That is, it will trade from support to next resistance and vice versa... stop loss at the 138 extension. If anything, that would hold more potential for profit, as the EA has poor R:R at the moment Quote Link to comment Share on other sites More sharing options...
harsh124 Posted March 12, 2010 Author Report Share Posted March 12, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Yeah. And Rio, Did you look in to the Candle Piercing Rules ? Harsh124 Quote Please Dont Forget the Kudos Coming! :-bd Link to comment Share on other sites More sharing options...
Rio Posted March 12, 2010 Report Share Posted March 12, 2010 Re: Developing S/R Expert : Highly Profitable : 99 % Accuracy Yeah. And Rio, Did you look in to the Candle Piercing Rules ? Harsh124 You can see that candle pierce that the kicker does not match the direction of the candle, and so that trade wouldn't get taken anyway. It would be simple to add a rule to check it though. For that sell trade in your example, you would need to check that the candle open occurs above the price of the kicker value (you can see where the kicker value and direction is found in the code), and check each tick of the current price for going below that value. I don't really think it will help the strategy much at all though. 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.