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 Thread Tools Display Modes
  #21 (permalink)  
Old 04-13-2006, 04:33 PM
Member
 
Join Date: Mar 2006
Posts: 28
fix_man is on a distinguished road
Quote:
Originally Posted by jorgka
Here is the update & fixed the error.

Jorgka
Doesnt it require some indicator for this EA called iCustom(NULL, 1, "RSTL", 0);
=iCustom(NULL, 1, "SATL", Close, 0, 1);???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 04-14-2006, 12:20 AM
Senior Member
 
Join Date: Jan 2006
Location: Australia
Posts: 112
jorgka is on a distinguished road
Sorry, Late one last night & posted the wrong damm expert. DOH

Here it is again
Attached Files
File Type: mq4 StepStochCross.mq4 (6.7 KB, 206 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 04-14-2006, 12:25 AM
Senior Member
 
Join Date: Jan 2006
Location: Australia
Posts: 112
jorgka is on a distinguished road
Spepstochcross

Just a quick backtest
Attached Images
File Type: gif TesterGraph.gif (6.1 KB, 268 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 04-17-2006, 11:39 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,011
iGoR is an unknown quantity at this point
Quote:
Originally Posted by jorgka
Just a quick backtest
Hi Jorgka,

Tnx for the effort and this EA.
But I don't see any settings how one can optimize the parameters. Standard it uses 1.0 but in most situations one can see that this is not the ideal parameter. On 30minute charts experience learnes that a +/- 1.4-1.6 does a better job. So is it possible to add the parameter of the stepmatoc so they can be optimized ?..

TNX a lott is advance...iGoR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 04-17-2006, 06:13 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,011
iGoR is an unknown quantity at this point
Hi Jorgka,

I don't think that the EA works correct. It gives only 15 trades when one tryes to backtest your default settings on a 30min cable without any stop. There should be hundreds of trades. If you look to the indicator over 2 years period, there are 100's of crossings

greetings iGoR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 04-17-2006, 06:33 PM
huhenyo's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 112
huhenyo is on a distinguished road
settings

Hi all,
Sorry I haven't added much to this thread since I started it, but I would suggest to Jorgka to review the paramaters that I explained in the beginning of this thread. If you use 1.0 the EA will not be profitable, but if 1.9 is used, the EA will be very profitable. There will be losses, but the gains are enormous. All the EA has to do is buy or sell once a cross is confirmed on the 30min chart of Cable, USD/CHF, USD/JPY, and EUR/JPY. If you can program the EA to sell or buy twice as many shares as are currently in the position, this will allow the one position to close while opening the next position for the same amount but in the opposite direction.
The beauty of the EA is that you don't need a stoploss because there will always be another cross that will end the current position. Believe me, with this EA you don't need a stop loss. Now be careful in programming the close/open position as explained above because it is possible the the previous position may not close when selling or buying twice the amount of the open position. I've seen it happen where it just opens a completely new position for twice the amount of the previous position without closeing the previous position. For example lets say that you have a long position for 1 standard lot. The next cross comes and so the EA sells 2 standard lots. This should sell all of the first standard lot, closing that position. There will be 1 short lot left over which is the new position in the opposite direction. That is the ideal. I've seen it happen where instead of just ending up with 1 short lost you might still have the 1 long lot open and 2 short lots. That is what we want to avoid.
Another problem that must be dealt with is that of making sure that the EA only executes when the lines have completely crossed and not when they are crossing because you will get a lot of opens and closing of positions while it crosses. The EA really doesn't need to be more complicated that what I've put here. The only added feature that is needed is one that could increase the # of lots as the account grows, but once that is in there and the EA is programmed correctly, it really doesn't need to be complicated anymore. It will work if programmed right. Like I've said before, I've manually backtested this strategy, and the results were awesome. I think the key is making sure the EA does exactly what we want it to.

Thanks for your help,
Huhenyo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 04-18-2006, 05:40 AM
Senior Member
 
Join Date: Jan 2006
Location: Australia
Posts: 112
jorgka is on a distinguished road
Details of the EA

I'll try & answer some questions here & bring some clarity.

double diCustom0=iCustom(NULL, 30, "StepMA_Stoch_v1", 10, 1.8, 0, 0, 0); double diCustom1=iCustom(NULL, 30, "StepMA_Stoch_v1", 10, 1.8, 0, 1, 0);
double diCustom2=iCustom(NULL, 30, "StepMA_Stoch_v1", 10, 1.8, 0, 0, 1);
double diCustom3=iCustom(NULL, 30, "StepMA_Stoch_v1", 10, 1.8, 0, 1, 1);

OK As you can see there are 4 double dicustom commands.

dicustom1, dicustom2, dicustom3 & dicustom4.

I'll break it down for you guys as simple as possible.

Where NULL, 30, this is the value for the timeframe. EG 30 = 30 mins or if you change it too NULL, 15, this them would call a 15 timeframe.

"StepMA_Stoch_v1" is the indicator that the Expert calls upon from the MT indicator Set.

Values, 10, 1.8, 10 these are the StepMA_Stoch_v1 input parameters, MUST BE IN ORDER. So Igor can change these from "StepMA_Stoch_v1", 10, 1.4, 0 if he likes.

The last remaining two all the values in the expert refer to Values. Where value 0 is the Yellow Line & value 1 is the Blue line. Why you ask is Value 0 (yellow) not value 1 & Blue (value 1) not value 2, well this is because in the StepStoch indicator it defines value 0 as Yellow & value 1 as blue. & the last field is value 0 for Current Bar & value 1 is 1 Bar Back.

OK So thats the indicator Set.

Now the Buy Sell parameters

lFlagBuyOpen = (diCustom3>=diCustom2) && (diCustom0>diCustom1);
lFlagSellOpen = (diCustom2>=diCustom3) && (diCustom1>diCustom0);
lFlagBuyClose = (diCustom2>=diCustom3) && (diCustom1>diCustom0);
lFlagSellClose = (diCustom3>=diCustom2) && (diCustom0>diCustom1);

to Buy (Go long) Dicustom3 must be Less or equal is dicustom2

Meaing one bar back the Yellow line must be less or equal to Blue Line

&

Dicustom0 must be greater than Dicustom1

Meaining the Yellow Line must be more not equal but more than the blue line on the current Bar, if all this line's up in the IFlagBuyOpen string then we have a trade to go long.

You'l notice Iflagsellclose & Iflagbuyopen as the same, cause when going short on a currency (sell) we would like to exit out of a trade the same as if we are going to buy. therefore Iflagsellopen & iflagbuyclose have also the same parameters.

I know this sounds confusing for some & others won't be a problem but this is how you identify a cross, for buying & Selling trades based on cross of indicators.

Igor,

Never rely on MT4 back tests.

Also if you need to change the parameters open the EA & Dicustom1 to 4, the value 1.8 & change it too 1.4 or 1.6, whatever suits you.

Huhenyo

As I told you, the EA will open & close on the Cross buy & selling. useing the parameters given in the first post.

I will add Money manager based on % of the account, will make the default 2%.

Will post update when you guys are satisfied.

Cheers

Jorgka
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 04-18-2006, 04:30 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,011
iGoR is an unknown quantity at this point
Quote:
Originally Posted by jorgka
I'll try & answer some questions here & bring some clarity.

Where NULL, 30, this is the value for the timeframe. EG 30 = 30 mins or if you change it too NULL, 15, this them would call a 15 timeframe.

"StepMA_Stoch_v1" is the indicator that the Expert calls upon from the MT indicator Set.

Values, 10, 1.8, 10 these are the StepMA_Stoch_v1 input parameters, MUST BE IN ORDER. So Igor can change these from "StepMA_Stoch_v1", 10, 1.4, 0 if he likes.
Hi Jorgka,

That I had already figured out. I did the testing on a 30min. chart and I did severall backtest everytime changing the value from 1.1 up to 1.8. But like I said over a 2 year period it gave not more then 15trades per test...so indeed the backtesting is absolutly not reliable as I found out with other simple strategys.

greetings..iGoR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 04-20-2006, 07:34 PM
huhenyo's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 112
huhenyo is on a distinguished road
Backtesting

iGoR,
I found that if you use the every tick option in the back tester you will get a lot more trades. In just a one month backtest there were about 15 trades on $/Yen, & $/CHF.

Jorgka,
Hey, for the most part the EA makes the trades accurately. The second setting on the indicator needs to be 1.9 instead of 1.8. It makes a big difference. I went back and check the trades that the ea made and most of them were correct, but there was one trade that was bogus and the indicator wasn't even close to crossing. Do you know what might have happened? I'll attach a screenshot so you can see. I also say that there was a cross that didn't get traded. Did you put in the code to not trade on a cross after a 30 pip move? If so, I really don't think it is necessary to have that code in there.
Thanks for you work so far. I really think the ea has potential.
Attached Images
File Type: jpg badtrade.JPG (191.9 KB, 233 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 04-20-2006, 09:32 PM
huhenyo's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 112
huhenyo is on a distinguished road
results and false trades

Okay, I changed the settings just a little bit so that PeriodWATR is 20 and Kwatr is 1.9. I ran the tester using the setting that evaluates every tick, the chart is GBP/USD. I then went back and reevaluated every trade. The EA did everything correct until it came to trade #24 - #28 (see picture). I don't know why it makes the false trades like that. I've also attached the result of just over one month on GBP/USD; they are very promissing as long as we can figure out how to avoid false trades. Without those 2 false trades the EA would have generated about a 60% return in one month trading one lot. Not bad, huh?

Thanks everyone for your interest and help.

Huhenyo.
Attached Images
File Type: jpg false trades.JPG (234.7 KB, 189 views)
File Type: jpg results.JPG (184.1 KB, 179 views)
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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SIMPLE-MACD-EA : An extremely simple EA based on 2 channels of MACD. Try it! investor_me Expert Advisors - Metatrader 4 31 07-30-2008 09:59 AM
My Simple EA Pepbullish Expert Advisors - Metatrader 4 5 02-10-2007 05:11 AM
Need some simple help with an EA... Gavner Metatrader 4 1 05-07-2006 06:06 AM
Request SIMPLE EA using StepMA_Stoch_V1 stu Expert Advisors - Metatrader 4 3 04-19-2006 03:18 AM


All times are GMT. The time now is 09:08 PM.



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