Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (1) Thread Tools Display Modes
  #41 (permalink)  
Old 12-07-2006, 02:11 AM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Support and Resistance

I don't know if it's a win or a loss but...

I am conceding the battle for the day. I can't make this work exactly as I envisioned where it would maintain the highest sloped line as the values rolled down the chart. This makes for some interesting whipsaw action as the indicators crest peaks and before they reestablish themselves. By running three instances of this a short, mid, and long range it gives occasionally a picture perfect snapshot of the three phases. However until I can figure out how to eliminate the whipsaw motion as values move out of range for each instance I don't know that it will do me any good as an automated indicator. It would need alot more work I think. Beyond my level of programming skill at present.

That however doesn't mean that we can't perhaps learn to benefit from it, using our own discretion. I can see the chart, and if it's not drawn a line exactly where I think it should be I can still draw it manually.

It's kinda interesting to watch it move across the data.

I apologize for not being able to work the bugs out of it more. I'm just a novice programmer. If you find any value in it please let me know. Please forward it to anyone you think might be able to offer insight on improving it too. It's still full of bugs.

This is actually got all everything turned off except the part the draws the lines on the chart. I'm not at all sure how to use this information yet.
Attached Files
File Type: mq4 Support and Resistance.mq4 (14.3 KB, 70 views)

Last edited by Aaragorn; 12-07-2006 at 02:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #42 (permalink)  
Old 12-07-2006, 03:32 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Creative thinkers wanted...

I have this version displaying support and resistance values and slopes along with averages.

What I want is people willing to carefully observe the test and see if we can deduce what might be appropriate filter rules using these support and resistance data which is now available. Rules which can both reduce drawdown and boost gains. any thing that uses the relationship of support and/or resistance and the slope of the various lines or their values.
Attached Files
File Type: mq4 Divergence Trader Version 8 SR.mq4 (40.7 KB, 103 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #43 (permalink)  
Old 12-07-2006, 04:05 PM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
What is "scalping" by the way? and is the EA above give good results? and with what settings?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #44 (permalink)  
Old 12-07-2006, 11:00 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
For those of you who really dig spreadsheets here is some numbers to crunch...

I improved the data dump code from in what's posted above...

I have attached some data from a test run of the program over about 4000 trades.
Two files one shows the test result which interestingly enough shows the system trading in the mid 80% win range on both short and long positions. That's better than a lot of systems I've tested so far. Kudos for win/loss ratios there without any tweaking and that is without really making use of the support/resistance data either. That is only based on the Logic already in the program which is keeping trades within a divergence range.

I ran this test only to collect the data on the support and resistance factors to see what the data itself might tell us about where winning and losing positions occur most within each data variable sampled.

Therefore I also have a data set in .txt file which tracks each variable of the 3 slopes an sup/res levels for each entry point of each trade along with the account equity at that point in time.

Together with the test printout we can see which trades were actually win or loss including those which closed at s/l or t/p.

I am doing what I can to analyze this data but I though I would share it with you in case anyone else is a data junkie like I am and wants to make your own analyais of what the data does and doesn't say. It may be possible to derive effective filter rules from this data with the current settings. That is my hope.

Happy analysis. Let me know what you find and we can see if it matches what I find from it.
Attached Files
File Type: zip Diverg8 SR.zip (160.1 KB, 122 views)
File Type: zip divergenceEA.zip (246.3 KB, 126 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #45 (permalink)  
Old 12-08-2006, 10:58 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,159
matrixebiz is on a distinguished road
Quote:
Originally Posted by Aaragorn
Creative thinkers wanted...

I have this version displaying support and resistance values and slopes along with averages.

What I want is people willing to carefully observe the test and see if we can deduce what might be appropriate filter rules using these support and resistance data which is now available. Rules which can both reduce drawdown and boost gains. any thing that uses the relationship of support and/or resistance and the slope of the various lines or their values.
Had this EA going all night and NO trades. How often does it trade?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #46 (permalink)  
Old 12-08-2006, 05:09 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Quote:
Originally Posted by matrixebiz
Had this EA going all night and NO trades. How often does it trade?
What does the backtester tell you? I meant observe in backtest. I don't really know. It trades when it's within the range of it's filters. I have a whole bunch of data now that I don't know how to interpret.

Last edited by Aaragorn; 12-08-2006 at 05:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #47 (permalink)  
Old 12-08-2006, 08:53 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Ok well...after some fiddling with possible filter combinations I've seen this work at least this well for the short side of the market only. I have not done more than this or done anything much to tailor filters for the long side.

What this does tell me is that it's possible to use the support and resistance to actual improve it.

Knowing this I want to see if I can enhance the CT program before I do any more with this. Feel free to do as you will with any of this always at your own discretion.

this tester report is from 2001.01.01 to present.
Attached Images
File Type: gif Diverg8 SR Shortsideonly.gif (7.1 KB, 280 views)
Attached Files
File Type: mq4 Divergence Trader Version 8 SR.mq4 (43.3 KB, 110 views)
File Type: zip Diverg8 SR Shortsideonly.zip (213.1 KB, 96 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #48 (permalink)  
Old 12-13-2006, 08:51 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
how do I code to return the highest high of the ATR for the previous 20 periods?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #49 (permalink)  
Old 12-14-2006, 04:02 AM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Quote:
Originally Posted by Aaragorn
how do I code to return the highest high of the ATR for the previous 20 periods?
http://www.forex-tsd.com/71605-post11.html thanks asmdev!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #50 (permalink)  
Old 12-15-2006, 02:41 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
here's one I cooked up this week. Called BasicTemplate, i like the idea of using the slope of the MA in connection with a highest high and/or lowest low for entry points.

I don't know what settings might give the best results but it's clear that the "inside slope" setting is critical. happy testing. please post whatever you discover about this back on the thread.

Also here are some EA's from InvestorMe that he and I have been working on together recently...

Looking for the tipping point on any of these, the small change that will make the big difference.

As always suggestions for upgrades or filters are welcome.
Attached Files
File Type: mq4 Basic Template.mq4 (32.1 KB, 164 views)
File Type: mq4 SuperScalper_v1.mq4 (12.0 KB, 184 views)
File Type: mq4 TrendRider-v3.1EURUSD.mq4 (4.5 KB, 89 views)
File Type: mq4 TrendRider-v3.2EURUSD.mq4 (18.3 KB, 119 views)
File Type: mq4 TrendRider-v3.2EURUSDreverseweighted.mq4 (18.3 KB, 99 views)

Last edited by Aaragorn; 12-15-2006 at 04:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/4724-aaragorns-ea-workbench.html
Posted By For Type Date
Fxovereasy System - Page 114 - StrategyBuilderFX This thread Refback 06-21-2007 06:04 PM


All times are GMT. The time now is 10:36 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.