Hi Khalaad,
A question about RSI trend: I have been experimenting with RSI as a filter on H1. Using RSI 20 and manually checking past trades, the improvement in profit is fantastic (I know there is the issue of how the RSI varies during the bar in real time compared to looking back at completed bars, but putting that aside for now ...).
However, I am struggling to get my second demo to trade using the 'UseRsiTrendDetection' in the EA, setting this to true with RsiTdTf=60 and RsiTdPeriod=20. I want to verify that the EA actually makes the same decisions for RSI filtering. It's just not taking trades that are clear and away within the filter parameters.
I haven't gone through the code in detail yet (other than to check the RSI levels) - that section is active in the code isn't it? Should I be changing any of the other parameters?
Let me know if you get a chance ... Freereed.
swingONE
- freereed
- Trader
- Posts: 19
- Joined: Sat Nov 19, 2011 10:01 pm
- Location: UK
- freereed
- Trader
- Posts: 19
- Joined: Sat Nov 19, 2011 10:01 pm
- Location: UK
Re: swingONE
Yes, of course - thanks.
Mahmut, any ideas?
Freereed
Mahmut, any ideas?
Freereed
- freereed
- Trader
- Posts: 19
- Joined: Sat Nov 19, 2011 10:01 pm
- Location: UK
Re: swingONE
- freereed
- Trader
- Posts: 19
- Joined: Sat Nov 19, 2011 10:01 pm
- Location: UK
Re: swingONE
Best way is to do a search in the code (I am using v2) for UseTrendDetection and for UseRsiTrendDetection, but the externs are defined on line 921 and 926 with the RSI values being tested on line 4283 et seq. The EA also displays the trend direction and the RSI value on screen. Funny how sometimes you can answer your own questions ... LOL
Freereed
Freereed
-
markft
- Trader
- Posts: 82
- Joined: Thu Dec 08, 2011 12:06 pm
- Location: Sydney, Australia
Re: swingONE
Hi Freereed,freereed wrote:Best way is to do a search in the code (I am using v2) for UseTrendDetection and for UseRsiTrendDetection, but the externs are defined on line 921 and 926 with the RSI values being tested on line 4283 et seq. The EA also displays the trend direction and the RSI value on screen. Funny how sometimes you can answer your own questions ... LOL
Freereed
Yes you do need to set UseTrendDetection to true to use any of the trend filters e.g. RSI, AA, NB. Hope you found the logic in the code easy enough to follow.
Cheers,
Mahmut
-
markft
- Trader
- Posts: 82
- Joined: Thu Dec 08, 2011 12:06 pm
- Location: Sydney, Australia
Re: swingONE
I have been working on a new version of swingOne to incorporate new ideas from Khalid. Result is the swingOne V2.0. I have been testing for the last few days so at least the options I have been testing appear to be working correctly. I am sure there will be some more bugs but these should not be too tricky to resolve I would imagine.
Changes in this version compared to previously posted 2.0 RC4 are:
1- Added alternate entry options: Gann cross (Trade if GannPlus and GannMinus cross) and Gann Hi-Lo (Trade if previous bar high breached) entries.
2- Added ATR based SL, BE, and TS. OOTB settings now default to ATR based SL/BE/TS. However the actual TF, period, and multiplier of these are probably not ideal and need to be adjusted.
3- Little things such as more information log messages; email reports now show run-up and drawdown for each position when positions are closed.
4- Earlier exit methods designed to not give back as much pips. Trades are now closed when a candle closes on the opposite side of 8MA (can be disabled with the option ExitOnMAFilterCross).
5- The EA now allows up to two open trades per pair if multiple entry options are enabled. The second entry can only be taken due to MA cross or Gann cross.
6- Added entry filter based on ADX. Trades will not be taken if ADX has not been increasing. This is an option which is on by default.
I have attached the new version to this post. Khalid will also update post 1 in a few days.
Please experiment and let me know what you think.
Cheers
Mahmut
Edit - As promised there were some bugs
Luckily I saw them first during backtesting. Please see attached V2.1.
Changes in this version compared to previously posted 2.0 RC4 are:
1- Added alternate entry options: Gann cross (Trade if GannPlus and GannMinus cross) and Gann Hi-Lo (Trade if previous bar high breached) entries.
2- Added ATR based SL, BE, and TS. OOTB settings now default to ATR based SL/BE/TS. However the actual TF, period, and multiplier of these are probably not ideal and need to be adjusted.
3- Little things such as more information log messages; email reports now show run-up and drawdown for each position when positions are closed.
4- Earlier exit methods designed to not give back as much pips. Trades are now closed when a candle closes on the opposite side of 8MA (can be disabled with the option ExitOnMAFilterCross).
5- The EA now allows up to two open trades per pair if multiple entry options are enabled. The second entry can only be taken due to MA cross or Gann cross.
6- Added entry filter based on ADX. Trades will not be taken if ADX has not been increasing. This is an option which is on by default.
I have attached the new version to this post. Khalid will also update post 1 in a few days.
Please experiment and let me know what you think.
Cheers
Mahmut
Edit - As promised there were some bugs
You do not have the required permissions to view the files attached to this post.
Last edited by markft on Sat Mar 24, 2012 4:30 pm, edited 1 time in total.
-
markft
- Trader
- Posts: 82
- Joined: Thu Dec 08, 2011 12:06 pm
- Location: Sydney, Australia
Re: swingONE
Thank you Khalid.Khalaad wrote:Thank you, Mahmut.![]()
I hope all of us are now able to build on the enormous hard work you have put into this EA and earn consistent profits.
Profitable trading, everyone.
I am taking this opportunity to attach a backtest report -- default settings (but without stops) of the version Mahmut has posted above, on 3 minute charts trading London hours only, MB Trading data feed into MultiCharts.
Another backtest, over a longer period of time, produced different results; the equity graph over the 6 months is also attached.
Please understand the attachments are:
• not an assertion of likely results; or
• indicative of future EA performance in any way at all.
They are simply statements of the EA potential, and the possible pitfalls.
Profitable trading demands a number of things, and lot of individual effort on part of the trader.
Khalid
I just posted a V2.1 of the EA and updated the original attachment couple of posts above. There were three downloads of V2.0 before I could post the new version. Can you guys please re-download the new attachment? As promised there were some bugs in V2.0.
-
fx800
- Trader
- Posts: 1334
- Joined: Sun Dec 04, 2011 4:11 am
Re: swingONE
markft wrote:I have been working on a new version of swingOne to incorporate new ideas from Khalid. Result is the swingOne V2.0. I have been testing for the last few days so at least the options I have been testing appear to be working correctly. I am sure there will be some more bugs but these should not be too tricky to resolve I would imagine.
Changes in this version compared to previously posted 2.0 RC4 are:
1- Added alternate entry options: Gann cross (Trade if GannPlus and GannMinus cross) and Gann Hi-Lo (Trade if previous bar high breached) entries.
2- Added ATR based SL, BE, and TS. OOTB settings now default to ATR based SL/BE/TS. However the actual TF, period, and multiplier of these are probably not ideal and need to be adjusted.
3- Little things such as more information log messages; email reports now show run-up and drawdown for each position when positions are closed.
4- Earlier exit methods designed to not give back as much pips. Trades are now closed when a candle closes on the opposite side of 8MA (can be disabled with the option ExitOnMAFilterCross).
5- The EA now allows up to two open trades per pair if multiple entry options are enabled. The second entry can only be taken due to MA cross or Gann cross.
6- Added entry filter based on ADX. Trades will not be taken if ADX has not been increasing. This is an option which is on by default.
I have attached the new version to this post. Khalid will also update post 1 in a few days.
Please experiment and let me know what you think.
Cheers
Mahmut
Edit - As promised there were some bugsLuckily I saw them first during backtesting. Please see attached V2.1.
Thank you, Mahmut and Khalid, for further improvements to the ea.
My demo is still over 1% in the red. Will be interesting to see if it can claw its way back into positive territory in the coming weeks.
Peter
Last edited by Anonymous on Sun Mar 25, 2012 10:28 am, edited 1 time in total.
- freereed
- Trader
- Posts: 19
- Joined: Sat Nov 19, 2011 10:01 pm
- Location: UK
Re: swingONE
Fantastic work, and great to see the ATR parameters!
I have a question about stops. I am trading this with no SL, and allowing the EA to close when the close criteria are met. However, I would like to have a shirt-saving stop on each trade (in case of a large move in the wrong direction (or if the internet drops/computer crashes whilst away etc), often very soon after the trade is made, rather like in some of Steve's code. Can that be done with the present inputs available in the EA? I think I can just use the Stop Loss papameter fro this, is that right?
Freereed
I have a question about stops. I am trading this with no SL, and allowing the EA to close when the close criteria are met. However, I would like to have a shirt-saving stop on each trade (in case of a large move in the wrong direction (or if the internet drops/computer crashes whilst away etc), often very soon after the trade is made, rather like in some of Steve's code. Can that be done with the present inputs available in the EA? I think I can just use the Stop Loss papameter fro this, is that right?
Freereed
- freereed
- Trader
- Posts: 19
- Joined: Sat Nov 19, 2011 10:01 pm
- Location: UK
Re: swingONE
Thanks Khalaad, I just wanted to make sure that if I set a far stop that way, it didn't affect any of the EA logic for strategy closures (early close and the like).
FR
FR