You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I don't mind pasting it but it is exactly the code from the web site.. the only change I made was removing the underscore from the iCustom function.
If you'd like I an e-mail you my expert..
d
[quote]
Yes, please....
I still have no action. The result is still zero. I will probably have to do a bit more research on my side.
One last question from me: Did you set up your "Tester" under MetaTrader as follows:
[img][/img]
Did you set up your "Tester" under MetaTrader as follows:
[img][/img]
I didn't set anything and took the defaults. I'm not sure what settings you are referring...
Have you tried changing the Model from control point to tick... ??? That is the only thing I changed to get it to run....
Good Luck
d
the only way it would run was tick by tick which takes a very very long time to finish so I ended it before it finished..
No wait a minute :)
There is no way to run it tick by tick - it trades at the end of bar:
Also, the timeframe is 1 hour:
Also also :) I have no idea how it will perform. I have only tested it on HISTORY. Open prices only mode is enough, and fast enough to test and to optimize.
It is being on probation for about a week on my Demo, and so far produced only 1 trade, so don't expect it to start loosing money :) immediately. When I have enough of the REAL trades to post, I'll post.
Also also also :))) read author's disclaimer. It is an example, not a graal. Too bad :(
>>> Let me try it from the very beginning <<<
1. Copying an expert from the article. Saving it as test_expert.mq4. Compiling (F5): success.
2. Copying an indicator. Saving (in indicators directory) as test_ind.mq4. Compiling: success.
3. OOPS. Renaming the indicator in the expert code, as it is not forex_nn_ind anymore :)
4. Testing. Settings: EURUSD, H1, Open prices only, Recalculate checked. Results: 0 trades. OK, I think I got it. I know what the problem is. I'll put it in the next post, to keep it readable.
The reason there are no trades, is in Expert propetries dialog. Properties are not set! They are all zeros.
Take a look at the expert.
If we are NOT testing (real time trading), the properties are initiated to "optimal values".
If we are TESTING - they are NOT. You need to do it by hand. So, to continue the prev. post:
5. Setting expert properties to:
dBuyLevel = 0.21;
dSellLevel = 0.9;
dStopLoss = 200 * Point;
dTrailingStop = 200 * Point;
(and to optimize, you will have to set a range for each variable as well)
Results of this test (as is, from the article, not optimized):
Bars in test 17770
Ticks modelled 35440
Modelling quality n/a
Initial deposit 1000.00
Total net profit 2098.85
Gross profit 6758.65
Gross loss -4659.80
Profit factor 1.45
Expected payoff 32.29
Absolute drawdown 0.00
Maximal drawdown (%) 1188.55 (27.7%)
Total trades 65
Short positions (won %) 2 (50.00%)
Long positions (won %) 63 (44.44%)
Profit trades (% of total) 29 (44.62%)
Loss trades (% of total) 36 (55.38%)
Largest
profit trade 802.00
loss trade -204.90
Average
profit trade 233.06
loss trade -129.44
Maximum
consecutive wins (profit in money) 6 (1330.35)
consecutive losses (loss in money) 5 (-628.25)
Maximal
consecutive profit (count of wins) 1330.35 (6)
consecutive loss (count of losses) -652.10 (4)
Average
consecutive wins 2
consecutive losses 2
Generally (I used different dates range) - same as promiced in article.
Wow, that was long :)
Thanks, Quark .... you saved me some time.... I was wondering about those settings and had planned to investigate them further this weekend :-). Thanks again!
Thanks, Quark .... you saved me some time.... I was wondering about those settings and had planned to investigate them further this weekend :-). Thanks again!
You are welcome :)
Thanks, Quark .... you saved me some time.... I was wondering about those settings and had planned to investigate them further this weekend :-). Thanks again!
You are welcome :)
OPPS.. I noticed that right away and had changed my parms.. That's the reason my expert was trading.. Sorry I forgot I had changed them..
d