| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
Quote:
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 |
|
||||
|
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. |
|
||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |